OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ | 5 #ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ |
6 #define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ | 6 #define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "components/arc/arc_bridge_service.h" | 12 #include "components/arc/arc_bridge_service.h" |
| 13 #include "components/arc/test/fake_bluetooth_instance.h" |
13 | 14 |
14 namespace arc { | 15 namespace arc { |
15 | 16 |
16 class FakeArcBridgeService : public ArcBridgeService { | 17 class FakeArcBridgeService : public ArcBridgeService { |
17 public: | 18 public: |
18 FakeArcBridgeService(); | 19 FakeArcBridgeService(); |
19 ~FakeArcBridgeService() override; | 20 ~FakeArcBridgeService() override; |
20 | 21 |
21 // arc::ArcBridgeService | 22 // arc::ArcBridgeService |
22 void SetDetectedAvailability(bool availability) override; | 23 void SetDetectedAvailability(bool availability) override; |
23 void HandleStartup() override; | 24 void HandleStartup() override; |
24 void Shutdown() override; | 25 void Shutdown() override; |
| 26 mojom::BluetoothInstance* bluetooth_instance() override; |
| 27 int32_t bluetooth_version() const override; |
25 | 28 |
26 void SetReady(); | 29 void SetReady(); |
27 | 30 |
28 void SetStopped(); | 31 void SetStopped(); |
29 | 32 |
30 bool HasObserver(const Observer* observer); | 33 bool HasObserver(const Observer* observer); |
31 | 34 |
| 35 void set_bluetooth_version(int32_t version) { bluetooth_version_ = version; } |
| 36 |
32 private: | 37 private: |
| 38 std::unique_ptr<FakeBluetoothInstance> bluetooth_instance_; |
| 39 int32_t bluetooth_version_; |
| 40 |
33 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeService); | 41 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeService); |
34 }; | 42 }; |
35 | 43 |
36 } // namespace arc | 44 } // namespace arc |
37 | 45 |
38 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ | 46 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ |
OLD | NEW |