Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Issue 474773003: [gcc 4.8] Use EXPECT_FALSE instead of EXPECT_EQ for comparing false (Closed)

Created:
6 years, 4 months ago by vivekg_samsung
Modified:
6 years, 4 months ago
Reviewers:
rkc, vivekg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use EXPECT_FALSE instead of EXPECT_EQ for comparing false Using EXPECT_EQ(false, condition_expr) assertion gets the following error with gcc 4.8.x toolchain on linux when building unit test: error: converting ‘false’ to pointer type for argument 1 of ‘char testing:: internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Werror=conversion-null] It is a mysterious problem occurred in gtest. Only EXPECT_EQ(false, condition_expr) cause the compile error, while EXPECT_EQ(true, condition_expr) can work well. BUG=139326 TBR=rkc@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289586

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M components/copresence/handlers/audio/audio_directive_handler_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
vivekg
PTAL, thank you!
6 years, 4 months ago (2014-08-14 04:17:39 UTC) #1
vivekg
The CQ bit was checked by vivekg@chromium.org
6 years, 4 months ago (2014-08-14 07:59:50 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/474773003/1
6 years, 4 months ago (2014-08-14 08:02:41 UTC) #3
rkc
lgtm, the change itself is probably a slight improvement; though I am worried that this ...
6 years, 4 months ago (2014-08-14 10:51:19 UTC) #4
vivekg
On 2014/08/14 10:51:19, Rahul Chaturvedi wrote: > lgtm, the change itself is probably a slight ...
6 years, 4 months ago (2014-08-14 10:52:46 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 15:12:08 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (1) as 289586

Powered by Google App Engine
This is Rietveld 408576698