From 1503efd68d9fa74362b212b6fa350e5ed2fbcb82 Mon Sep 17 00:00:00 2001 From: Jonathan Kingston Date: Tue, 11 Feb 2020 18:17:01 +0000 Subject: [PATCH] Fix youtube unittest in debug build. Fixes: https://github.com/brave/brave-browser/issues/4342 --- .../src/bat/ledger/internal/media/youtube_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/media/youtube_unittest.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/media/youtube_unittest.cc index a77b647ae7ad..01f8eba94edf 100644 --- a/vendor/bat-native-ledger/src/bat/ledger/internal/media/youtube_unittest.cc +++ b/vendor/bat-native-ledger/src/bat/ledger/internal/media/youtube_unittest.cc @@ -468,7 +468,7 @@ TEST(MediaYouTubeTest, GetVideoUrl) { // null case std::string media_id; std::string url; -#if defined(OFFICIAL_BUILD) || defined(NDEBUG) +#if !DCHECK_IS_ON() url = YouTube::GetVideoUrl(media_id); EXPECT_EQ(url, media_url); #else @@ -500,7 +500,7 @@ TEST(MediaYouTubeTest, GetChannelUrl) { // null case std::string channel_id; std::string url; -#if defined(OFFICIAL_BUILD) || defined(NDEBUG) +#if !DCHECK_IS_ON() url = YouTube::GetChannelUrl(channel_id); EXPECT_EQ(url, channel_url); #else