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 #include "components/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" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 void FakeControllerPairingController::SetConfirmationCodeIsCorrect( | 198 void FakeControllerPairingController::SetConfirmationCodeIsCorrect( |
199 bool correct) { | 199 bool correct) { |
200 CHECK(current_stage_ == STAGE_WAITING_FOR_CODE_CONFIRMATION); | 200 CHECK(current_stage_ == STAGE_WAITING_FOR_CODE_CONFIRMATION); |
201 if (correct) | 201 if (correct) |
202 ChangeStage(STAGE_HOST_UPDATE_IN_PROGRESS); | 202 ChangeStage(STAGE_HOST_UPDATE_IN_PROGRESS); |
203 else | 203 else |
204 ChangeStage(STAGE_DEVICES_DISCOVERY); | 204 ChangeStage(STAGE_DEVICES_DISCOVERY); |
205 } | 205 } |
206 | 206 |
| 207 void FakeControllerPairingController::SetHostNetwork( |
| 208 const std::string& onc_spec) {} |
| 209 |
207 void FakeControllerPairingController::SetHostConfiguration( | 210 void FakeControllerPairingController::SetHostConfiguration( |
208 bool accepted_eula, | 211 bool accepted_eula, |
209 const std::string& lang, | 212 const std::string& lang, |
210 const std::string& timezone, | 213 const std::string& timezone, |
211 bool send_reports, | 214 bool send_reports, |
212 const std::string& keyboard_layout) { | 215 const std::string& keyboard_layout) { |
213 } | 216 } |
214 | 217 |
215 void FakeControllerPairingController::OnAuthenticationDone( | 218 void FakeControllerPairingController::OnAuthenticationDone( |
216 const std::string& domain, | 219 const std::string& domain, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 next_stage = STAGE_HOST_CONNECTION_LOST; | 336 next_stage = STAGE_HOST_CONNECTION_LOST; |
334 } | 337 } |
335 if (next_stage != STAGE_NONE) | 338 if (next_stage != STAGE_NONE) |
336 ChangeStageLater(next_stage); | 339 ChangeStageLater(next_stage); |
337 } | 340 } |
338 | 341 |
339 void FakeControllerPairingController::DiscoveredDevicesListChanged() { | 342 void FakeControllerPairingController::DiscoveredDevicesListChanged() { |
340 } | 343 } |
341 | 344 |
342 } // namespace pairing_chromeos | 345 } // namespace pairing_chromeos |
OLD | NEW |