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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/tests/router_unittest.cc

Issue 1406073004: Change mojo_public_bindings_unittests to use chromium environment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: third_party/mojo/src/mojo/public/cpp/bindings/tests/router_unittest.cc
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/tests/router_unittest.cc b/third_party/mojo/src/mojo/public/cpp/bindings/tests/router_unittest.cc
index e6dcb5dc22503835ddc84c79c5d6e09c2e6748b2..c9c9f01813af766a56cf2baa8c7bcce2015b79d3 100644
--- a/third_party/mojo/src/mojo/public/cpp/bindings/tests/router_unittest.cc
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/tests/router_unittest.cc
@@ -5,12 +5,12 @@
#include <stdlib.h>
#include <string.h>
+#include "base/message_loop/message_loop.h"
+#include "mojo/message_pump/message_pump_mojo.h"
#include "mojo/public/cpp/bindings/lib/message_builder.h"
#include "mojo/public/cpp/bindings/lib/router.h"
#include "mojo/public/cpp/bindings/tests/message_queue.h"
-#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/macros.h"
-#include "mojo/public/cpp/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -125,7 +125,7 @@ class LazyResponseGenerator : public ResponseGenerator {
class RouterTest : public testing::Test {
public:
- RouterTest() {}
+ RouterTest() : loop_(common::MessagePumpMojo::Create()) {}
void SetUp() override {
CreateMessagePipe(nullptr, &handle0_, &handle1_);
@@ -140,8 +140,7 @@ class RouterTest : public testing::Test {
ScopedMessagePipeHandle handle1_;
private:
- Environment env_;
- RunLoop loop_;
+ base::MessageLoop loop_;
};
TEST_F(RouterTest, BasicRequestResponse) {

Powered by Google App Engine
This is Rietveld 408576698