Index: third_party/mojo/src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc |
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc b/third_party/mojo/src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc |
index f936361d05bcc1dbd9b70f80dc5b3be07dd60693..8487d0a94fd1a880f458b769473b8d893b73ee36 100644 |
--- a/third_party/mojo/src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc |
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc |
@@ -2,11 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/message_loop/message_loop.h" |
+#include "mojo/message_pump/message_pump_mojo.h" |
#include "mojo/public/cpp/bindings/binding.h" |
#include "mojo/public/cpp/bindings/strong_binding.h" |
-#include "mojo/public/cpp/environment/environment.h" |
#include "mojo/public/cpp/test_support/test_utils.h" |
-#include "mojo/public/cpp/utility/run_loop.h" |
#include "mojo/public/interfaces/bindings/tests/sample_factory.mojom.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -137,13 +137,14 @@ class SampleFactoryImpl : public sample::Factory { |
class HandlePassingTest : public testing::Test { |
public: |
+ HandlePassingTest() : loop_(common::MessagePumpMojo::Create()) {} |
+ |
void TearDown() override { PumpMessages(); } |
void PumpMessages() { loop_.RunUntilIdle(); } |
private: |
- Environment env_; |
- RunLoop loop_; |
+ base::MessageLoop loop_; |
}; |
struct DoStuffCallback { |