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

Unified Diff: mojo/public/tests/bindings/remote_ptr_unittest.cc

Issue 134253004: Mojo: AsyncWaiter and mojo/public/environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 11 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: mojo/public/tests/bindings/remote_ptr_unittest.cc
diff --git a/mojo/public/tests/bindings/remote_ptr_unittest.cc b/mojo/public/tests/bindings/remote_ptr_unittest.cc
index d990bcebb024e660da723880e335ac443f87116c..f4f3b2387a8590dc5674fac43ce1c37689065c03 100644
--- a/mojo/public/tests/bindings/remote_ptr_unittest.cc
+++ b/mojo/public/tests/bindings/remote_ptr_unittest.cc
@@ -3,7 +3,8 @@
// found in the LICENSE file.
#include "mojo/public/bindings/lib/remote_ptr.h"
-#include "mojo/public/tests/bindings/simple_bindings_support.h"
+#include "mojo/public/environment/environment.h"
+#include "mojo/public/utility/run_loop.h"
#include "mojom/math_calculator.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -89,7 +90,7 @@ class RemotePtrTest : public testing::Test {
}
void PumpMessages() {
- bindings_support_.Process();
+ loop_.RunUntilIdle();
}
protected:
@@ -97,7 +98,8 @@ class RemotePtrTest : public testing::Test {
ScopedMessagePipeHandle pipe1_;
private:
- SimpleBindingsSupport bindings_support_;
+ Environment env_;
+ RunLoop loop_;
};
TEST_F(RemotePtrTest, EndToEnd) {

Powered by Google App Engine
This is Rietveld 408576698