summaryrefslogtreecommitdiffstats
path: root/components/arc/test/fake_arc_bridge_bootstrap.h
blob: feb7d6cd0ed90b68545d59b47937a5a2d45366f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_BOOTSTRAP_H_
#define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_BOOTSTRAP_H_

#include "base/macros.h"
#include "components/arc/arc_bridge_bootstrap.h"

namespace arc {

class FakeArcBridgeInstance;

// A fake ArcBridgeBootstrap that creates a local connection.
class FakeArcBridgeBootstrap : public ArcBridgeBootstrap {
 public:
  explicit FakeArcBridgeBootstrap(FakeArcBridgeInstance* instance);
  ~FakeArcBridgeBootstrap() override {}

  // ArcBridgeBootstrap:
  void Start() override;
  void Stop() override;

 private:
  // Owned by the caller.
  FakeArcBridgeInstance* instance_;

  DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeBootstrap);
};

} // namespace arc

#endif  // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_BOOTSTRAP_H_