|
Replace EXPECT_EQ(NULL, foo) with EXPECT_TRUE(foo == NULL).
Using NULL as an argument to EXPECT_EQ or ASSERT_EQ is problematic,
because it passes NULL to a template function expecting a const int &,
which can trigger a NULL used as int warning.
An alternative would be EXPECT_FALSE(foo), but some people find that
confusing.
Another alternative would be to make EXPECT_NULL and EXPECT_NOT_NULL
which take templated T*.
Ran tests on Linux. Passed except for ConditionVariableTest.LargeFastTaskTest,
which also fails without patch.
BUG=none
TEST=app_unittests & base_unittests & media_unittests
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+59 lines, -62 lines) |
Patch |
 |
M |
base/field_trial_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/waitable_event_watcher_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/weak_ptr_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/resolve_proxy_msg_helper_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/property_bag_unittest.cc
|
View
|
1
2
3
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/audio/linux/alsa_output_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/base/host_cache_unittest.cc
|
View
|
1
2
3
|
7 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_auth_cache_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/ftp/ftp_auth_cache_unittest.cc
|
View
|
1
2
3
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_transaction_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -5 lines |
1 comment
|
Download
|
 |
M |
net/proxy/single_threaded_proxy_resolver_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|