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

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

Issue 2890383003: Bootstrapping: Send meaningful error code/message from Slave to Master (Closed)
Patch Set: Address achuith@'s comments. Created 3 years, 6 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
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 "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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 void FakeHostPairingController::OnEnrollmentStatusChanged( 136 void FakeHostPairingController::OnEnrollmentStatusChanged(
137 EnrollmentStatus enrollment_status) { 137 EnrollmentStatus enrollment_status) {
138 } 138 }
139 139
140 void FakeHostPairingController::SetPermanentId( 140 void FakeHostPairingController::SetPermanentId(
141 const std::string& permanent_id) { 141 const std::string& permanent_id) {
142 } 142 }
143 143
144 void FakeHostPairingController::SetErrorCodeAndMessage(
145 int error_code,
146 const std::string& error_message) {}
147
144 void FakeHostPairingController::Reset() { 148 void FakeHostPairingController::Reset() {
145 } 149 }
146 150
147 void FakeHostPairingController::PairingStageChanged(Stage new_stage) { 151 void FakeHostPairingController::PairingStageChanged(Stage new_stage) {
148 switch (new_stage) { 152 switch (new_stage) {
149 case STAGE_WAITING_FOR_CONTROLLER: { 153 case STAGE_WAITING_FOR_CONTROLLER: {
150 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION); 154 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION);
151 break; 155 break;
152 } 156 }
153 case STAGE_WAITING_FOR_CODE_CONFIRMATION: { 157 case STAGE_WAITING_FOR_CODE_CONFIRMATION: {
(...skipping 23 matching lines...) Expand all
177 } 181 }
178 case STAGE_ENROLLMENT_SUCCESS: { 182 case STAGE_ENROLLMENT_SUCCESS: {
179 ChangeStageLater(STAGE_FINISHED); 183 ChangeStageLater(STAGE_FINISHED);
180 break; 184 break;
181 } 185 }
182 default: { break; } 186 default: { break; }
183 } 187 }
184 } 188 }
185 189
186 } // namespace pairing_chromeos 190 } // namespace pairing_chromeos
OLDNEW
« no previous file with comments | « components/pairing/fake_host_pairing_controller.h ('k') | components/pairing/host_pairing_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698