| 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 79b1fd0540b9e9c5086a374effd0a26cf02c759c..762c249741071f0f2d6cff5e965b168c46224875 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/environment/environment.h"
|
| @@ -18,37 +17,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) {}
|
|
|