Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_base.cc ('k') | sync/internal_api/test/null_sync_context_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698