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

Unified Diff: base/waitable_event_watcher_unittest.cc

Issue 202057: Replace EXPECT_EQ(NULL, foo) with EXPECT_TRUE(NULL == foo).... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/waitable_event_watcher_unittest.cc
===================================================================
--- base/waitable_event_watcher_unittest.cc (revision 27387)
+++ base/waitable_event_watcher_unittest.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -38,7 +38,7 @@
WaitableEvent event(true, false);
WaitableEventWatcher watcher;
- EXPECT_EQ(NULL, watcher.GetWatchedEvent());
+ EXPECT_TRUE(watcher.GetWatchedEvent() == NULL);
QuitDelegate delegate;
watcher.StartWatching(&event, &delegate);
@@ -48,7 +48,7 @@
MessageLoop::current()->Run();
- EXPECT_EQ(NULL, watcher.GetWatchedEvent());
+ EXPECT_TRUE(watcher.GetWatchedEvent() == NULL);
}
void RunTest_BasicCancel(MessageLoop::Type message_loop_type) {

Powered by Google App Engine
This is Rietveld 408576698