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

Unified Diff: mojo/public/cpp/test_support/lib/test_utils.cc

Issue 2744943002: Mojo: Move waiting APIs to public library (Closed)
Patch Set: . Created 3 years, 9 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/wait_set.cc ('k') | mojo/public/js/connector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/test_support/lib/test_utils.cc
diff --git a/mojo/public/cpp/test_support/lib/test_utils.cc b/mojo/public/cpp/test_support/lib/test_utils.cc
index 92288c49de70fbd2993f362299fbaca454725578..7fe6f02788ea2a5762a3ba71b010ff42241d6800 100644
--- a/mojo/public/cpp/test_support/lib/test_utils.cc
+++ b/mojo/public/cpp/test_support/lib/test_utils.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "mojo/public/cpp/system/core.h"
+#include "mojo/public/cpp/system/wait.h"
#include "mojo/public/cpp/test_support/test_support.h"
namespace mojo {
@@ -41,8 +42,7 @@ bool ReadTextMessage(const MessagePipeHandle& handle, std::string* text) {
assert(false); // Looping endlessly!?
return false;
}
- rv = Wait(handle, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE,
- nullptr);
+ rv = Wait(handle, MOJO_HANDLE_SIGNAL_READABLE);
if (rv != MOJO_RESULT_OK)
return false;
did_wait = true;
« no previous file with comments | « mojo/public/cpp/system/wait_set.cc ('k') | mojo/public/js/connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698