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

Unified Diff: mojo/public/cpp/system/tests/core_unittest.cc

Issue 345463003: Mojo: MojoWaitFlags -> MojoHandleSignals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/system/core.h ('k') | mojo/public/cpp/utility/lib/run_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/system/tests/core_unittest.cc
diff --git a/mojo/public/cpp/system/tests/core_unittest.cc b/mojo/public/cpp/system/tests/core_unittest.cc
index acaee23b6307983289bbb4d4609331c93d19c3bc..9cb93078834da6c87f4285ee3dc22820e7581e27 100644
--- a/mojo/public/cpp/system/tests/core_unittest.cc
+++ b/mojo/public/cpp/system/tests/core_unittest.cc
@@ -103,10 +103,10 @@ TEST(CoreCppTest, Basic) {
std::vector<Handle> wh;
wh.push_back(h.get());
- std::vector<MojoWaitFlags> wf;
- wf.push_back(MOJO_WAIT_FLAG_EVERYTHING);
+ std::vector<MojoHandleSignals> sigs;
+ sigs.push_back(MOJO_WAIT_FLAG_EVERYTHING);
EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
- WaitMany(wh, wf, MOJO_DEADLINE_INDEFINITE));
+ WaitMany(wh, sigs, MOJO_DEADLINE_INDEFINITE));
}
// |MakeScopedHandle| (just compilation tests):
@@ -167,10 +167,10 @@ TEST(CoreCppTest, Basic) {
std::vector<Handle> wh;
wh.push_back(h0.get());
wh.push_back(h1.get());
- std::vector<MojoWaitFlags> wf;
- wf.push_back(MOJO_WAIT_FLAG_READABLE);
- wf.push_back(MOJO_WAIT_FLAG_WRITABLE);
- EXPECT_EQ(1, WaitMany(wh, wf, 1000));
+ std::vector<MojoHandleSignals> sigs;
+ sigs.push_back(MOJO_WAIT_FLAG_READABLE);
+ sigs.push_back(MOJO_WAIT_FLAG_WRITABLE);
+ EXPECT_EQ(1, WaitMany(wh, sigs, 1000));
// Test closing |h1| explicitly.
Close(h1.Pass());
« no previous file with comments | « mojo/public/cpp/system/core.h ('k') | mojo/public/cpp/utility/lib/run_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698