Skip to content

Commit

Permalink
Fix youtube unittest in debug build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston committed Feb 11, 2020
1 parent ad7e175 commit 1503efd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1503efd

Please sign in to comment.