| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 void FakeSyncManager::ShutdownOnSyncThread() { | 208 void FakeSyncManager::ShutdownOnSyncThread() { |
| 209 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 209 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 210 test_user_share_.TearDown(); | 210 test_user_share_.TearDown(); |
| 211 } | 211 } |
| 212 | 212 |
| 213 UserShare* FakeSyncManager::GetUserShare() { | 213 UserShare* FakeSyncManager::GetUserShare() { |
| 214 return test_user_share_.user_share(); | 214 return test_user_share_.user_share(); |
| 215 } | 215 } |
| 216 | 216 |
| 217 syncer::SyncCoreProxy* FakeSyncManager::GetSyncCoreProxy() { | 217 syncer::SyncContextProxy* FakeSyncManager::GetSyncContextProxy() { |
| 218 return &null_sync_core_proxy_; | 218 return &null_sync_context_proxy_; |
| 219 } | 219 } |
| 220 | 220 |
| 221 const std::string FakeSyncManager::cache_guid() { | 221 const std::string FakeSyncManager::cache_guid() { |
| 222 return test_user_share_.user_share()->directory->cache_guid(); | 222 return test_user_share_.user_share()->directory->cache_guid(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { | 225 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { |
| 226 return false; | 226 return false; |
| 227 } | 227 } |
| 228 | 228 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 return last_refresh_request_types_; | 271 return last_refresh_request_types_; |
| 272 } | 272 } |
| 273 | 273 |
| 274 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { | 274 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { |
| 275 // Do nothing. | 275 // Do nothing. |
| 276 } | 276 } |
| 277 | 277 |
| 278 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } | 278 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } |
| 279 | 279 |
| 280 } // namespace syncer | 280 } // namespace syncer |
| OLD | NEW |