| 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 <map> | 7 #include <map> | 
| 8 #include <vector> | 8 #include <vector> | 
| 9 | 9 | 
| 10 #include "base/bind.h" | 10 #include "base/bind.h" | 
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 115 | 115 | 
| 116 std::string FakeHostPairingController::GetConfirmationCode() { | 116 std::string FakeHostPairingController::GetConfirmationCode() { | 
| 117   CHECK(current_stage_ == STAGE_WAITING_FOR_CODE_CONFIRMATION); | 117   CHECK(current_stage_ == STAGE_WAITING_FOR_CODE_CONFIRMATION); | 
| 118   return confirmation_code_; | 118   return confirmation_code_; | 
| 119 } | 119 } | 
| 120 | 120 | 
| 121 std::string FakeHostPairingController::GetEnrollmentDomain() { | 121 std::string FakeHostPairingController::GetEnrollmentDomain() { | 
| 122   return enrollment_domain_; | 122   return enrollment_domain_; | 
| 123 } | 123 } | 
| 124 | 124 | 
|  | 125 void FakeHostPairingController::OnNetworkConnectivityChanged( | 
|  | 126     Connectivity connectivity_status) { | 
|  | 127 } | 
|  | 128 | 
| 125 void FakeHostPairingController::OnUpdateStatusChanged( | 129 void FakeHostPairingController::OnUpdateStatusChanged( | 
| 126     UpdateStatus update_status) { | 130     UpdateStatus update_status) { | 
| 127 } | 131 } | 
| 128 | 132 | 
| 129 void FakeHostPairingController::OnEnrollmentStatusChanged( | 133 void FakeHostPairingController::OnEnrollmentStatusChanged( | 
| 130     EnrollmentStatus enrollment_status) { | 134     EnrollmentStatus enrollment_status) { | 
| 131 } | 135 } | 
| 132 | 136 | 
| 133 void FakeHostPairingController::SetPermanentId( | 137 void FakeHostPairingController::SetPermanentId( | 
| 134     const std::string& permanent_id) { | 138     const std::string& permanent_id) { | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 167     } | 171     } | 
| 168     case STAGE_ENROLLMENT_SUCCESS: { | 172     case STAGE_ENROLLMENT_SUCCESS: { | 
| 169       ChangeStageLater(STAGE_FINISHED); | 173       ChangeStageLater(STAGE_FINISHED); | 
| 170       break; | 174       break; | 
| 171     } | 175     } | 
| 172     default: { break; } | 176     default: { break; } | 
| 173   } | 177   } | 
| 174 } | 178 } | 
| 175 | 179 | 
| 176 }  // namespace pairing_chromeos | 180 }  // namespace pairing_chromeos | 
| OLD | NEW | 
|---|