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

Unified Diff: base/synchronization/waitable_event_watcher_unittest.cc

Issue 2368423002: Make WaitableEventWatcher TaskScheduler-friendly. (Closed)
Patch Set: add missing include Created 4 years, 2 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/synchronization/waitable_event_watcher_unittest.cc
diff --git a/base/synchronization/waitable_event_watcher_unittest.cc b/base/synchronization/waitable_event_watcher_unittest.cc
index 94e5ff42a8388dc8bf7082c7cf3e65e0ba599477..fcb4257d6df218b5a14b81f954fbf7f7b73201b6 100644
--- a/base/synchronization/waitable_event_watcher_unittest.cc
+++ b/base/synchronization/waitable_event_watcher_unittest.cc
@@ -52,16 +52,11 @@ void RunTest_BasicSignal(MessageLoop::Type message_loop_type) {
WaitableEvent::InitialState::NOT_SIGNALED);
WaitableEventWatcher watcher;
- EXPECT_TRUE(watcher.GetWatchedEvent() == NULL);
-
watcher.StartWatching(&event, Bind(&QuitWhenSignaled));
- EXPECT_EQ(&event, watcher.GetWatchedEvent());
event.Signal();
RunLoop().Run();
-
- EXPECT_TRUE(watcher.GetWatchedEvent() == NULL);
}
void RunTest_BasicCancel(MessageLoop::Type message_loop_type) {
« no previous file with comments | « base/synchronization/waitable_event_watcher_posix.cc ('k') | base/synchronization/waitable_event_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698