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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 void FakeSyncManager::ShutdownOnSyncThread() { | 212 void FakeSyncManager::ShutdownOnSyncThread() { |
213 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 213 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
214 test_user_share_.TearDown(); | 214 test_user_share_.TearDown(); |
215 } | 215 } |
216 | 216 |
217 UserShare* FakeSyncManager::GetUserShare() { | 217 UserShare* FakeSyncManager::GetUserShare() { |
218 return test_user_share_.user_share(); | 218 return test_user_share_.user_share(); |
219 } | 219 } |
220 | 220 |
221 syncer::SyncCore* FakeSyncManager::GetSyncCore() { | 221 base::WeakPtr<syncer::SyncCore> FakeSyncManager::GetSyncCore() { |
222 return NULL; | 222 return base::WeakPtr<syncer::SyncCore>(); |
223 } | 223 } |
224 | 224 |
225 const std::string FakeSyncManager::cache_guid() { | 225 const std::string FakeSyncManager::cache_guid() { |
226 return test_user_share_.user_share()->directory->cache_guid(); | 226 return test_user_share_.user_share()->directory->cache_guid(); |
227 } | 227 } |
228 | 228 |
229 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { | 229 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { |
230 return false; | 230 return false; |
231 } | 231 } |
232 | 232 |
(...skipping 24 matching lines...) Expand all Loading... |
257 return last_refresh_request_types_; | 257 return last_refresh_request_types_; |
258 } | 258 } |
259 | 259 |
260 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { | 260 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { |
261 // Do nothing. | 261 // Do nothing. |
262 } | 262 } |
263 | 263 |
264 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } | 264 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } |
265 | 265 |
266 } // namespace syncer | 266 } // namespace syncer |
OLD | NEW |