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

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

Issue 1368683003: USS SyncContextProxy / data type activation refactoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback Created 5 years, 2 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 #include "sync/internal_api/public/activation_context.h"
8 9
9 namespace browser_sync { 10 namespace browser_sync {
10 11
11 const char kTestCacheGuid[] = "test-guid"; 12 const char kTestCacheGuid[] = "test-guid";
12 13
13 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {} 14 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {}
14 SyncBackendHostMock::~SyncBackendHostMock() {} 15 SyncBackendHostMock::~SyncBackendHostMock() {}
15 16
16 void SyncBackendHostMock::Initialize( 17 void SyncBackendHostMock::Initialize(
17 sync_driver::SyncFrontend* frontend, 18 sync_driver::SyncFrontend* frontend,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 syncer::ConfigureReason reason, 64 syncer::ConfigureReason reason,
64 const DataTypeConfigStateMap& config_state_map, 65 const DataTypeConfigStateMap& config_state_map,
65 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& 66 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>&
66 ready_task, 67 ready_task,
67 const base::Callback<void()>& retry_callback) { 68 const base::Callback<void()>& retry_callback) {
68 return syncer::ModelTypeSet(); 69 return syncer::ModelTypeSet();
69 } 70 }
70 71
71 void SyncBackendHostMock::EnableEncryptEverything() {} 72 void SyncBackendHostMock::EnableEncryptEverything() {}
72 73
73 void SyncBackendHostMock::ActivateDataType( 74 void SyncBackendHostMock::ActivateDirectoryDataType(
74 syncer::ModelType type, syncer::ModelSafeGroup group, 75 syncer::ModelType type,
76 syncer::ModelSafeGroup group,
75 sync_driver::ChangeProcessor* change_processor) {} 77 sync_driver::ChangeProcessor* change_processor) {}
76 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} 78 void SyncBackendHostMock::DeactivateDirectoryDataType(syncer::ModelType type) {}
79
80 void SyncBackendHostMock::ActivateNonBlockingDataType(
81 syncer::ModelType type,
82 scoped_ptr<syncer_v2::ActivationContext> activation_context) {}
83
84 void SyncBackendHostMock::DeactivateNonBlockingDataType(
85 syncer::ModelType type) {}
77 86
78 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { 87 syncer::UserShare* SyncBackendHostMock::GetUserShare() const {
79 return NULL; 88 return NULL;
80 } 89 }
81 90
82 scoped_ptr<syncer_v2::SyncContextProxy> 91 scoped_ptr<syncer_v2::SyncContextProxy>
83 SyncBackendHostMock::GetSyncContextProxy() { 92 SyncBackendHostMock::GetSyncContextProxy() {
84 return scoped_ptr<syncer_v2::SyncContextProxy>(); 93 return scoped_ptr<syncer_v2::SyncContextProxy>();
85 } 94 }
86 95
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 150 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
142 fail_initial_download_ = should_fail; 151 fail_initial_download_ = should_fail;
143 } 152 }
144 153
145 void SyncBackendHostMock::ClearServerData( 154 void SyncBackendHostMock::ClearServerData(
146 const syncer::SyncManager::ClearServerDataCallback& callback) { 155 const syncer::SyncManager::ClearServerDataCallback& callback) {
147 callback.Run(); 156 callback.Run();
148 } 157 }
149 158
150 } // namespace browser_sync 159 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.h ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698