OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ | 5 #ifndef COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ |
6 #define CHROMEOS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ | 6 #define COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "chromeos/chromeos_export.h" | 14 #include "components/pairing/controller_pairing_controller.h" |
15 #include "chromeos/pairing/controller_pairing_controller.h" | 15 #include "components/pairing/pairing_export.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class CHROMEOS_EXPORT FakeControllerPairingController | 19 class PAIRING_EXPORT FakeControllerPairingController |
20 : public ControllerPairingController, | 20 : public ControllerPairingController, |
21 public ControllerPairingController::Observer { | 21 public ControllerPairingController::Observer { |
22 public: | 22 public: |
23 typedef ControllerPairingController::Observer Observer; | 23 typedef ControllerPairingController::Observer Observer; |
24 | 24 |
25 enum DiscoveryEventType { DEVICE_FOUND, DEVICE_LOST, NOTHING_FOUND }; | 25 enum DiscoveryEventType { DEVICE_FOUND, DEVICE_LOST, NOTHING_FOUND }; |
26 | 26 |
27 typedef std::pair<DiscoveryEventType, std::string> DiscoveryEvent; | 27 typedef std::pair<DiscoveryEventType, std::string> DiscoveryEvent; |
28 typedef std::vector<DiscoveryEvent> DiscoveryScenario; | 28 typedef std::vector<DiscoveryEvent> DiscoveryScenario; |
29 | 29 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 bool should_fail_on_connecting_; | 101 bool should_fail_on_connecting_; |
102 Stage connection_lost_begin_; | 102 Stage connection_lost_begin_; |
103 Stage connection_lost_end_; | 103 Stage connection_lost_end_; |
104 bool enrollment_should_fail_; | 104 bool enrollment_should_fail_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(FakeControllerPairingController); | 106 DISALLOW_COPY_AND_ASSIGN(FakeControllerPairingController); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace chromeos | 109 } // namespace chromeos |
110 | 110 |
111 #endif // CHROMEOS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ | 111 #endif // COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ |
OLD | NEW |