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

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

Issue 217183003: Add non-blocking sync code to ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 6 years, 8 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
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698