| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 void FakeSyncManager::ShutdownOnSyncThread() { | 258 void FakeSyncManager::ShutdownOnSyncThread() { |
| 259 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 259 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 260 } | 260 } |
| 261 | 261 |
| 262 UserShare* FakeSyncManager::GetUserShare() { | 262 UserShare* FakeSyncManager::GetUserShare() { |
| 263 NOTIMPLEMENTED(); | 263 NOTIMPLEMENTED(); |
| 264 return NULL; | 264 return NULL; |
| 265 } | 265 } |
| 266 | 266 |
| 267 void FakeSyncManager::RefreshNigori(const std::string& chrome_version, | 267 void FakeSyncManager::InitialProcessMetadata( |
| 268 const base::Closure& done_callback) { | 268 const std::string& chrome_version, |
| 269 const base::Closure& done_callback) { |
| 269 done_callback.Run(); | 270 done_callback.Run(); |
| 270 } | 271 } |
| 271 | 272 |
| 272 void FakeSyncManager::EnableEncryptEverything() { | 273 void FakeSyncManager::EnableEncryptEverything() { |
| 273 NOTIMPLEMENTED(); | 274 NOTIMPLEMENTED(); |
| 274 } | 275 } |
| 275 | 276 |
| 276 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { | 277 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { |
| 277 return false; | 278 return false; |
| 278 } | 279 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 294 registrar_.EmitOnNotificationsEnabled(); | 295 registrar_.EmitOnNotificationsEnabled(); |
| 295 } | 296 } |
| 296 | 297 |
| 297 void FakeSyncManager::DisableNotificationsOnSyncThread( | 298 void FakeSyncManager::DisableNotificationsOnSyncThread( |
| 298 NotificationsDisabledReason reason) { | 299 NotificationsDisabledReason reason) { |
| 299 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 300 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 300 registrar_.EmitOnNotificationsDisabled(reason); | 301 registrar_.EmitOnNotificationsDisabled(reason); |
| 301 } | 302 } |
| 302 | 303 |
| 303 } // namespace syncer | 304 } // namespace syncer |
| OLD | NEW |