| Index: components/arc/arc_bridge_service_unittest.cc
|
| diff --git a/components/arc/arc_bridge_service_unittest.cc b/components/arc/arc_bridge_service_unittest.cc
|
| index c753f239c7dcf6e277174e8258dc2fb0135772d5..e3eae5973310572cc5f8aad40fe9cd2ee45fa07c 100644
|
| --- a/components/arc/arc_bridge_service_unittest.cc
|
| +++ b/components/arc/arc_bridge_service_unittest.cc
|
| @@ -2,14 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include <utility>
|
| -
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/macros.h"
|
| #include "base/run_loop.h"
|
| #include "chromeos/dbus/dbus_thread_manager.h"
|
| #include "components/arc/arc_bridge_service_impl.h"
|
| +#include "components/arc/test/fake_arc_bridge_bootstrap.h"
|
| #include "components/arc/test/fake_arc_bridge_instance.h"
|
| #include "ipc/mojo/scoped_ipc_support.h"
|
| #include "mojo/public/cpp/system/message_pipe.h"
|
| @@ -17,37 +16,6 @@
|
|
|
| namespace arc {
|
|
|
| -namespace {
|
| -
|
| -// A fake ArcBridgeBootstrap that creates a local connection.
|
| -class FakeArcBridgeBootstrap : public ArcBridgeBootstrap {
|
| - public:
|
| - explicit FakeArcBridgeBootstrap(FakeArcBridgeInstance* instance)
|
| - : instance_(instance) {}
|
| - ~FakeArcBridgeBootstrap() override {}
|
| -
|
| - void Start() override {
|
| - DCHECK(delegate_);
|
| - ArcBridgeInstancePtr instance;
|
| - instance_->Bind(mojo::GetProxy(&instance));
|
| - delegate_->OnConnectionEstablished(std::move(instance));
|
| - }
|
| -
|
| - void Stop() override {
|
| - DCHECK(delegate_);
|
| - instance_->Unbind();
|
| - delegate_->OnStopped();
|
| - }
|
| -
|
| - private:
|
| - // Owned by the caller.
|
| - FakeArcBridgeInstance* instance_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeBootstrap);
|
| -};
|
| -
|
| -} // namespace
|
| -
|
| class ArcBridgeTest : public testing::Test, public ArcBridgeService::Observer {
|
| public:
|
| ArcBridgeTest() : ready_(false) {}
|
|
|