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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.cc

Issue 217183003: Add non-blocking sync code to ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/sync/glue/sync_backend_host_mock.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h"
6 6
7 #include "components/sync_driver/sync_frontend.h" 7 #include "components/sync_driver/sync_frontend.h"
8 8
9 namespace browser_sync { 9 namespace browser_sync {
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 void SyncBackendHostMock::StopSyncingForShutdown() {} 46 void SyncBackendHostMock::StopSyncingForShutdown() {}
47 47
48 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown(ShutdownOption option) { 48 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown(ShutdownOption option) {
49 return scoped_ptr<base::Thread>(); 49 return scoped_ptr<base::Thread>();
50 } 50 }
51 51
52 void SyncBackendHostMock::UnregisterInvalidationIds() {} 52 void SyncBackendHostMock::UnregisterInvalidationIds() {}
53 53
54 void SyncBackendHostMock::SetPreferredNonBlockingTypes(
55 syncer::ModelTypeSet types) {}
56
54 void SyncBackendHostMock::ConfigureDataTypes( 57 void SyncBackendHostMock::ConfigureDataTypes(
55 syncer::ConfigureReason reason, 58 syncer::ConfigureReason reason,
56 const DataTypeConfigStateMap& config_state_map, 59 const DataTypeConfigStateMap& config_state_map,
57 const base::Callback<void(syncer::ModelTypeSet, 60 const base::Callback<void(syncer::ModelTypeSet,
58 syncer::ModelTypeSet)>& ready_task, 61 syncer::ModelTypeSet)>& ready_task,
59 const base::Callback<void()>& retry_callback) {} 62 const base::Callback<void()>& retry_callback) {}
60 63
61 void SyncBackendHostMock::EnableEncryptEverything() {} 64 void SyncBackendHostMock::EnableEncryptEverything() {}
62 65
63 void SyncBackendHostMock::ActivateDataType( 66 void SyncBackendHostMock::ActivateDataType(
64 syncer::ModelType type, syncer::ModelSafeGroup group, 67 syncer::ModelType type, syncer::ModelSafeGroup group,
65 ChangeProcessor* change_processor) {} 68 ChangeProcessor* change_processor) {}
66 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} 69 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {}
67 70
68 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { 71 syncer::UserShare* SyncBackendHostMock::GetUserShare() const {
69 return NULL; 72 return NULL;
70 } 73 }
71 74
75 syncer::SyncCoreProxy SyncBackendHostMock::GetSyncCoreProxy() {
76 return syncer::SyncCoreProxy::GetInvalidSyncCoreProxyForTest();
77 }
78
72 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() { 79 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() {
73 return SyncBackendHost::Status(); 80 return SyncBackendHost::Status();
74 } 81 }
75 82
76 syncer::sessions::SyncSessionSnapshot 83 syncer::sessions::SyncSessionSnapshot
77 SyncBackendHostMock::GetLastSessionSnapshot() const { 84 SyncBackendHostMock::GetLastSessionSnapshot() const {
78 return syncer::sessions::SyncSessionSnapshot(); 85 return syncer::sessions::SyncSessionSnapshot();
79 } 86 }
80 87
81 bool SyncBackendHostMock::HasUnsyncedItems() const { 88 bool SyncBackendHostMock::HasUnsyncedItems() const {
(...skipping 29 matching lines...) Expand all
111 } 118 }
112 119
113 void SyncBackendHostMock::SetForwardProtocolEvents(bool enabled) {} 120 void SyncBackendHostMock::SetForwardProtocolEvents(bool enabled) {}
114 121
115 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 122 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
116 fail_initial_download_ = should_fail; 123 fail_initial_download_ = should_fail;
117 } 124 }
118 125
119 } // namespace browser_sync 126 } // namespace browser_sync
120 127
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698