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

Unified Diff: content/browser/renderer_host/media/video_capture_manager_unittest.cc

Issue 1909263002: Replace safe-bool idiom with explicit WeakPtr::operator bool() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit-test for comparison operators Created 4 years, 6 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: content/browser/renderer_host/media/video_capture_manager_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_manager_unittest.cc b/content/browser/renderer_host/media/video_capture_manager_unittest.cc
index d5e3789c05401b326f54da12bc0b0fbaa0ce1545..5785e487891d009fb539b4272fce42e541cd93c9 100644
--- a/content/browser/renderer_host/media/video_capture_manager_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_manager_unittest.cc
@@ -105,7 +105,7 @@ class VideoCaptureManagerTest : public testing::Test {
ASSERT_TRUE(0 == controllers_.count(id));
controllers_[id] = controller.get();
} else {
- ASSERT_TRUE(NULL == controller);
+ ASSERT_FALSE(controller);
}
quit_closure.Run();
}

Powered by Google App Engine
This is Rietveld 408576698