| 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_host_pairing_controller.h" | 5 #include "components/pairing/fake_host_pairing_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 | 134 |
| 135 void FakeHostPairingController::OnEnrollmentStatusChanged( | 135 void FakeHostPairingController::OnEnrollmentStatusChanged( |
| 136 EnrollmentStatus enrollment_status) { | 136 EnrollmentStatus enrollment_status) { |
| 137 } | 137 } |
| 138 | 138 |
| 139 void FakeHostPairingController::SetPermanentId( | 139 void FakeHostPairingController::SetPermanentId( |
| 140 const std::string& permanent_id) { | 140 const std::string& permanent_id) { |
| 141 } | 141 } |
| 142 | 142 |
| 143 void FakeHostPairingController::Reset() { |
| 144 } |
| 145 |
| 143 void FakeHostPairingController::PairingStageChanged(Stage new_stage) { | 146 void FakeHostPairingController::PairingStageChanged(Stage new_stage) { |
| 144 switch (new_stage) { | 147 switch (new_stage) { |
| 145 case STAGE_WAITING_FOR_CONTROLLER: { | 148 case STAGE_WAITING_FOR_CONTROLLER: { |
| 146 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION); | 149 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION); |
| 147 break; | 150 break; |
| 148 } | 151 } |
| 149 case STAGE_WAITING_FOR_CODE_CONFIRMATION: { | 152 case STAGE_WAITING_FOR_CODE_CONFIRMATION: { |
| 150 ChangeStageLater(STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE); | 153 ChangeStageLater(STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE); |
| 151 break; | 154 break; |
| 152 } | 155 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 173 } | 176 } |
| 174 case STAGE_ENROLLMENT_SUCCESS: { | 177 case STAGE_ENROLLMENT_SUCCESS: { |
| 175 ChangeStageLater(STAGE_FINISHED); | 178 ChangeStageLater(STAGE_FINISHED); |
| 176 break; | 179 break; |
| 177 } | 180 } |
| 178 default: { break; } | 181 default: { break; } |
| 179 } | 182 } |
| 180 } | 183 } |
| 181 | 184 |
| 182 } // namespace pairing_chromeos | 185 } // namespace pairing_chromeos |
| OLD | NEW |