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

Side by Side Diff: components/pairing/fake_controller_pairing_controller.h

Issue 387163002: Move Chrome OS pairing interface to chrome/browser/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leave chromeos/pairing intact for try jobs Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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"
16 15
17 namespace chromeos { 16 namespace pairing_chromeos {
18 17
19 class CHROMEOS_EXPORT FakeControllerPairingController 18 class FakeControllerPairingController
20 : public ControllerPairingController, 19 : public ControllerPairingController,
21 public ControllerPairingController::Observer { 20 public ControllerPairingController::Observer {
22 public: 21 public:
23 typedef ControllerPairingController::Observer Observer; 22 typedef ControllerPairingController::Observer Observer;
24 23
25 enum DiscoveryEventType { DEVICE_FOUND, DEVICE_LOST, NOTHING_FOUND }; 24 enum DiscoveryEventType { DEVICE_FOUND, DEVICE_LOST, NOTHING_FOUND };
26 25
27 typedef std::pair<DiscoveryEventType, std::string> DiscoveryEvent; 26 typedef std::pair<DiscoveryEventType, std::string> DiscoveryEvent;
28 typedef std::vector<DiscoveryEvent> DiscoveryScenario; 27 typedef std::vector<DiscoveryEvent> DiscoveryScenario;
29 28
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 std::set<std::string> discovered_devices_; 98 std::set<std::string> discovered_devices_;
100 std::string choosen_device_; 99 std::string choosen_device_;
101 bool should_fail_on_connecting_; 100 bool should_fail_on_connecting_;
102 Stage connection_lost_begin_; 101 Stage connection_lost_begin_;
103 Stage connection_lost_end_; 102 Stage connection_lost_end_;
104 bool enrollment_should_fail_; 103 bool enrollment_should_fail_;
105 104
106 DISALLOW_COPY_AND_ASSIGN(FakeControllerPairingController); 105 DISALLOW_COPY_AND_ASSIGN(FakeControllerPairingController);
107 }; 106 };
108 107
109 } // namespace chromeos 108 } // namespace pairing_chromeos
110 109
111 #endif // CHROMEOS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ 110 #endif // COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698