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

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

Issue 1081413003: [Sync] Have configuration specify which datatypes are ready to sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix components_unittests Created 5 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void SyncBackendHostMock::StopSyncingForShutdown() {} 49 void SyncBackendHostMock::StopSyncingForShutdown() {}
50 50
51 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown( 51 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown(
52 syncer::ShutdownReason reason) { 52 syncer::ShutdownReason reason) {
53 return scoped_ptr<base::Thread>(); 53 return scoped_ptr<base::Thread>();
54 } 54 }
55 55
56 void SyncBackendHostMock::UnregisterInvalidationIds() {} 56 void SyncBackendHostMock::UnregisterInvalidationIds() {}
57 57
58 void SyncBackendHostMock::ConfigureDataTypes( 58 syncer::ModelTypeSet SyncBackendHostMock::ConfigureDataTypes(
59 syncer::ConfigureReason reason, 59 syncer::ConfigureReason reason,
60 const DataTypeConfigStateMap& config_state_map, 60 const DataTypeConfigStateMap& config_state_map,
61 const base::Callback<void(syncer::ModelTypeSet, 61 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>&
62 syncer::ModelTypeSet)>& ready_task, 62 ready_task,
63 const base::Callback<void()>& retry_callback) {} 63 const base::Callback<void()>& retry_callback) {
64 return syncer::ModelTypeSet();
65 }
64 66
65 void SyncBackendHostMock::EnableEncryptEverything() {} 67 void SyncBackendHostMock::EnableEncryptEverything() {}
66 68
67 void SyncBackendHostMock::ActivateDataType( 69 void SyncBackendHostMock::ActivateDataType(
68 syncer::ModelType type, syncer::ModelSafeGroup group, 70 syncer::ModelType type, syncer::ModelSafeGroup group,
69 sync_driver::ChangeProcessor* change_processor) {} 71 sync_driver::ChangeProcessor* change_processor) {}
70 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} 72 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {}
71 73
72 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { 74 syncer::UserShare* SyncBackendHostMock::GetUserShare() const {
73 return NULL; 75 return NULL;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 syncer::ModelTypeSet types, 131 syncer::ModelTypeSet types,
130 base::Callback<void(const std::vector<syncer::ModelType>& type, 132 base::Callback<void(const std::vector<syncer::ModelType>& type,
131 ScopedVector<base::ListValue>) > callback) {} 133 ScopedVector<base::ListValue>) > callback) {}
132 134
133 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 135 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
134 fail_initial_download_ = should_fail; 136 fail_initial_download_ = should_fail;
135 } 137 }
136 138
137 } // namespace browser_sync 139 } // namespace browser_sync
138 140
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.h ('k') | components/sync_driver/backend_data_type_configurer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698