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

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

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 #include "chromeos/pairing/fake_controller_pairing_controller.h" 5 #include "components/pairing/fake_controller_pairing_controller.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/rand_util.h" 12 #include "base/rand_util.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 16
17 namespace chromeos { 17 namespace pairing_chromeos {
18 18
19 FakeControllerPairingController::FakeControllerPairingController( 19 FakeControllerPairingController::FakeControllerPairingController(
20 const std::string& config) 20 const std::string& config)
21 : current_stage_(STAGE_NONE), 21 : current_stage_(STAGE_NONE),
22 should_fail_on_connecting_(false), 22 should_fail_on_connecting_(false),
23 connection_lost_begin_(STAGE_NONE), 23 connection_lost_begin_(STAGE_NONE),
24 connection_lost_end_(STAGE_NONE), 24 connection_lost_end_(STAGE_NONE),
25 enrollment_should_fail_(false) { 25 enrollment_should_fail_(false) {
26 ApplyConfig(config); 26 ApplyConfig(config);
27 AddObserver(this); 27 AddObserver(this);
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 connection_lost_begin_ = STAGE_NONE; 325 connection_lost_begin_ = STAGE_NONE;
326 next_stage = STAGE_HOST_CONNECTION_LOST; 326 next_stage = STAGE_HOST_CONNECTION_LOST;
327 } 327 }
328 if (next_stage != STAGE_NONE) 328 if (next_stage != STAGE_NONE)
329 ChangeStageLater(next_stage); 329 ChangeStageLater(next_stage);
330 } 330 }
331 331
332 void FakeControllerPairingController::DiscoveredDevicesListChanged() { 332 void FakeControllerPairingController::DiscoveredDevicesListChanged() {
333 } 333 }
334 334
335 } // namespace chromeos 335 } // namespace pairing_chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698