Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: components/arc/test/fake_arc_bridge_service.h

Issue 1701063003: Refactor ArcBridgeService detection and initialization to a separate class ArcServiceLauncher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13
14 namespace arc { 14 namespace arc {
15 15
16 class FakeArcBridgeService : public ArcBridgeService { 16 class FakeArcBridgeService : public ArcBridgeService {
17 public: 17 public:
18 FakeArcBridgeService(); 18 FakeArcBridgeService();
19 ~FakeArcBridgeService() override; 19 ~FakeArcBridgeService() override;
20 20
21 // arc::ArcBridgeService 21 // arc::ArcBridgeService
22 void DetectAvailability() override; 22 void SetDetectedAvailability(bool availability) override;
23 void HandleStartup() override; 23 void HandleStartup() override;
24 void Shutdown() override; 24 void Shutdown() override;
25 25
26 void SetReady(); 26 void SetReady();
27 27
28 void SetStopped(); 28 void SetStopped();
29 29
30 bool HasObserver(const Observer* observer); 30 bool HasObserver(const Observer* observer);
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeService); 33 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeService);
34 }; 34 };
35 35
36 } // namespace arc 36 } // namespace arc
37 37
38 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ 38 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/arc/arc_bridge_service_impl.cc ('k') | components/arc/test/fake_arc_bridge_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698