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

Unified Diff: mojo/public/cpp/environment/tests/async_waiter_unittest.cc

Issue 336313007: Mojo: Rename MOJO_WAIT_FLAG_... -> MOJO_HANDLE_SIGNAL_.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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
« no previous file with comments | « mojo/public/cpp/bindings/lib/sync_dispatcher.cc ('k') | mojo/public/cpp/system/tests/core_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/environment/tests/async_waiter_unittest.cc
diff --git a/mojo/public/cpp/environment/tests/async_waiter_unittest.cc b/mojo/public/cpp/environment/tests/async_waiter_unittest.cc
index a71f7697171dca5dac02bd00b6e0e2a0cf8dbc0b..0abeb957f68de8a6d6a2bd7097d343676a414989 100644
--- a/mojo/public/cpp/environment/tests/async_waiter_unittest.cc
+++ b/mojo/public/cpp/environment/tests/async_waiter_unittest.cc
@@ -72,7 +72,7 @@ TEST_F(AsyncWaiterTest, CallbackNotified) {
EXPECT_TRUE(test::WriteTextMessage(test_pipe.handle1.get(), std::string()));
CallAsyncWait(test_pipe.handle0.get(),
- MOJO_WAIT_FLAG_READABLE,
+ MOJO_HANDLE_SIGNAL_READABLE,
&callback);
RunLoop::current()->Run();
EXPECT_EQ(1, callback.result_count());
@@ -88,8 +88,12 @@ TEST_F(AsyncWaiterTest, TwoCallbacksNotified) {
EXPECT_TRUE(test::WriteTextMessage(test_pipe1.handle1.get(), std::string()));
EXPECT_TRUE(test::WriteTextMessage(test_pipe2.handle1.get(), std::string()));
- CallAsyncWait(test_pipe1.handle0.get(), MOJO_WAIT_FLAG_READABLE, &callback1);
- CallAsyncWait(test_pipe2.handle0.get(), MOJO_WAIT_FLAG_READABLE, &callback2);
+ CallAsyncWait(test_pipe1.handle0.get(),
+ MOJO_HANDLE_SIGNAL_READABLE,
+ &callback1);
+ CallAsyncWait(test_pipe2.handle0.get(),
+ MOJO_HANDLE_SIGNAL_READABLE,
+ &callback2);
RunLoop::current()->Run();
EXPECT_EQ(1, callback1.result_count());
@@ -106,7 +110,7 @@ TEST_F(AsyncWaiterTest, CancelCallback) {
CallCancelWait(
CallAsyncWait(test_pipe.handle0.get(),
- MOJO_WAIT_FLAG_READABLE,
+ MOJO_HANDLE_SIGNAL_READABLE,
&callback));
RunLoop::current()->Run();
EXPECT_EQ(0, callback.result_count());
« no previous file with comments | « mojo/public/cpp/bindings/lib/sync_dispatcher.cc ('k') | mojo/public/cpp/system/tests/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698