| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/internal_api/public/test/fake_sync_manager.h" | 5 #include "sync/internal_api/public/test/fake_sync_manager.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 void FakeSyncManager::RemoveObserver(Observer* observer) { | 223 void FakeSyncManager::RemoveObserver(Observer* observer) { |
| 224 observers_.RemoveObserver(observer); | 224 observers_.RemoveObserver(observer); |
| 225 } | 225 } |
| 226 | 226 |
| 227 SyncStatus FakeSyncManager::GetDetailedStatus() const { | 227 SyncStatus FakeSyncManager::GetDetailedStatus() const { |
| 228 NOTIMPLEMENTED(); | 228 NOTIMPLEMENTED(); |
| 229 return SyncStatus(); | 229 return SyncStatus(); |
| 230 } | 230 } |
| 231 | 231 |
| 232 bool FakeSyncManager::GetKeystoreKeyBootstrapToken(std::string* token) { | |
| 233 return false; | |
| 234 } | |
| 235 | |
| 236 void FakeSyncManager::SaveChanges() { | 232 void FakeSyncManager::SaveChanges() { |
| 237 // Do nothing. | 233 // Do nothing. |
| 238 } | 234 } |
| 239 | 235 |
| 240 void FakeSyncManager::StopSyncingForShutdown(const base::Closure& callback) { | 236 void FakeSyncManager::StopSyncingForShutdown(const base::Closure& callback) { |
| 241 if (!sync_task_runner_->PostTask(FROM_HERE, callback)) { | 237 if (!sync_task_runner_->PostTask(FROM_HERE, callback)) { |
| 242 NOTREACHED(); | 238 NOTREACHED(); |
| 243 } | 239 } |
| 244 } | 240 } |
| 245 | 241 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 276 registrar_.EmitOnNotificationsEnabled(); | 272 registrar_.EmitOnNotificationsEnabled(); |
| 277 } | 273 } |
| 278 | 274 |
| 279 void FakeSyncManager::DisableNotificationsOnSyncThread( | 275 void FakeSyncManager::DisableNotificationsOnSyncThread( |
| 280 NotificationsDisabledReason reason) { | 276 NotificationsDisabledReason reason) { |
| 281 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 277 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 282 registrar_.EmitOnNotificationsDisabled(reason); | 278 registrar_.EmitOnNotificationsDisabled(reason); |
| 283 } | 279 } |
| 284 | 280 |
| 285 } // namespace syncer | 281 } // namespace syncer |
| OLD | NEW |