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

Unified Diff: base/win/object_watcher_unittest.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/win/object_watcher_unittest.cc
diff --git a/base/win/object_watcher_unittest.cc b/base/win/object_watcher_unittest.cc
index 7e83e2a83c416d994e486c817971eb02e4e63b36..9f57e34a66a3d610d2de76c0bcb0ecbd18eb610c 100644
--- a/base/win/object_watcher_unittest.cc
+++ b/base/win/object_watcher_unittest.cc
@@ -42,7 +42,7 @@ void RunTest_BasicSignal(MessageLoop::Type message_loop_type) {
base::win::ScopedHandle event(CreateEvent(NULL, TRUE, FALSE, NULL));
QuitDelegate delegate;
- bool ok = watcher.StartWatching(event.Get(), &delegate);
+ bool ok = watcher.StartWatching(event.Get(), &delegate, false);
EXPECT_TRUE(ok);
EXPECT_TRUE(watcher.IsWatching());
EXPECT_EQ(event.Get(), watcher.GetWatchedObject());
@@ -63,7 +63,7 @@ void RunTest_BasicCancel(MessageLoop::Type message_loop_type) {
base::win::ScopedHandle event(CreateEvent(NULL, TRUE, FALSE, NULL));
QuitDelegate delegate;
- bool ok = watcher.StartWatching(event.Get(), &delegate);
+ bool ok = watcher.StartWatching(event.Get(), &delegate, false);
EXPECT_TRUE(ok);
watcher.StopWatching();
@@ -80,7 +80,7 @@ void RunTest_CancelAfterSet(MessageLoop::Type message_loop_type) {
// A manual-reset event that is not yet signaled.
base::win::ScopedHandle event(CreateEvent(NULL, TRUE, FALSE, NULL));
- bool ok = watcher.StartWatching(event.Get(), &delegate);
+ bool ok = watcher.StartWatching(event.Get(), &delegate, false);
EXPECT_TRUE(ok);
SetEvent(event.Get());
@@ -105,7 +105,7 @@ void RunTest_SignalBeforeWatch(MessageLoop::Type message_loop_type) {
base::win::ScopedHandle event(CreateEvent(NULL, TRUE, TRUE, NULL));
QuitDelegate delegate;
- bool ok = watcher.StartWatching(event.Get(), &delegate);
+ bool ok = watcher.StartWatching(event.Get(), &delegate, false);
EXPECT_TRUE(ok);
MessageLoop::current()->Run();
@@ -125,7 +125,7 @@ void RunTest_OutlivesMessageLoop(MessageLoop::Type message_loop_type) {
MessageLoop message_loop(message_loop_type);
QuitDelegate delegate;
- watcher.StartWatching(event.Get(), &delegate);
+ watcher.StartWatching(event.Get(), &delegate, false);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698