| Index: mojo/message_pump/handle_watcher_unittest.cc
|
| diff --git a/mojo/common/handle_watcher_unittest.cc b/mojo/message_pump/handle_watcher_unittest.cc
|
| similarity index 98%
|
| rename from mojo/common/handle_watcher_unittest.cc
|
| rename to mojo/message_pump/handle_watcher_unittest.cc
|
| index 41d5ffbe52bd8744769f04c82e2b82e69075665e..54deb07a53e685687b31995733c8ab6e66f970cc 100644
|
| --- a/mojo/common/handle_watcher_unittest.cc
|
| +++ b/mojo/message_pump/handle_watcher_unittest.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "mojo/common/handle_watcher.h"
|
| +#include "mojo/message_pump/handle_watcher.h"
|
|
|
| #include <string>
|
|
|
| @@ -13,11 +13,11 @@
|
| #include "base/run_loop.h"
|
| #include "base/test/simple_test_tick_clock.h"
|
| #include "base/threading/thread.h"
|
| -#include "mojo/common/message_pump_mojo.h"
|
| -#include "mojo/common/time_helper.h"
|
| +#include "mojo/message_pump/message_pump_mojo.h"
|
| +#include "mojo/message_pump/time_helper.h"
|
| +#include "mojo/public/cpp/system/message_pipe.h"
|
| +#include "mojo/public/cpp/test_support/test_utils.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| -#include "third_party/mojo/src/mojo/public/cpp/system/core.h"
|
| -#include "third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h"
|
|
|
| namespace mojo {
|
| namespace common {
|
| @@ -54,7 +54,7 @@ scoped_ptr<base::MessageLoop> CreateMessageLoop(MessageLoopConfig config) {
|
| loop.reset(new base::MessageLoop());
|
| else
|
| loop.reset(new base::MessageLoop(MessagePumpMojo::Create()));
|
| - return loop.Pass();
|
| + return loop;
|
| }
|
|
|
| // Helper class to manage the callback and running the message loop waiting for
|
| @@ -121,7 +121,7 @@ class CallbackHelper {
|
| class HandleWatcherTest : public testing::TestWithParam<MessageLoopConfig> {
|
| public:
|
| HandleWatcherTest() : message_loop_(CreateMessageLoop(GetParam())) {}
|
| - virtual ~HandleWatcherTest() {
|
| + ~HandleWatcherTest() override {
|
| test::SetTickClockForTest(NULL);
|
| }
|
|
|
|
|