| 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/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 SyncStatus FakeSyncManager::GetDetailedStatus() const { | 196 SyncStatus FakeSyncManager::GetDetailedStatus() const { |
| 197 NOTIMPLEMENTED(); | 197 NOTIMPLEMENTED(); |
| 198 return SyncStatus(); | 198 return SyncStatus(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void FakeSyncManager::SaveChanges() { | 201 void FakeSyncManager::SaveChanges() { |
| 202 // Do nothing. | 202 // Do nothing. |
| 203 } | 203 } |
| 204 | 204 |
| 205 void FakeSyncManager::ShutdownOnSyncThread() { | 205 void FakeSyncManager::ShutdownOnSyncThread(ShutdownReason reason) { |
| 206 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 206 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 207 test_user_share_.TearDown(); | 207 test_user_share_.TearDown(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 UserShare* FakeSyncManager::GetUserShare() { | 210 UserShare* FakeSyncManager::GetUserShare() { |
| 211 return test_user_share_.user_share(); | 211 return test_user_share_.user_share(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 syncer::SyncContextProxy* FakeSyncManager::GetSyncContextProxy() { | 214 syncer::SyncContextProxy* FakeSyncManager::GetSyncContextProxy() { |
| 215 return &null_sync_context_proxy_; | 215 return &null_sync_context_proxy_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { | 268 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { |
| 269 return last_refresh_request_types_; | 269 return last_refresh_request_types_; |
| 270 } | 270 } |
| 271 | 271 |
| 272 void FakeSyncManager::SetInvalidatorEnabled(bool invalidator_enabled) { | 272 void FakeSyncManager::SetInvalidatorEnabled(bool invalidator_enabled) { |
| 273 // Do nothing. | 273 // Do nothing. |
| 274 } | 274 } |
| 275 | 275 |
| 276 } // namespace syncer | 276 } // namespace syncer |
| OLD | NEW |