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

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

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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
11 const char kTestCacheGuid[] = "test-guid"; 11 const char kTestCacheGuid[] = "test-guid";
12 12
13 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {} 13 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {}
14 SyncBackendHostMock::~SyncBackendHostMock() {} 14 SyncBackendHostMock::~SyncBackendHostMock() {}
15 15
16 void SyncBackendHostMock::Initialize( 16 void SyncBackendHostMock::Initialize(
17 SyncFrontend* frontend, 17 sync_driver::SyncFrontend* frontend,
18 scoped_ptr<base::Thread> sync_thread, 18 scoped_ptr<base::Thread> sync_thread,
19 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, 19 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler,
20 const GURL& service_url, 20 const GURL& service_url,
21 const syncer::SyncCredentials& credentials, 21 const syncer::SyncCredentials& credentials,
22 bool delete_sync_data_folder, 22 bool delete_sync_data_folder,
23 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, 23 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory,
24 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, 24 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler,
25 syncer::ReportUnrecoverableErrorFunction 25 syncer::ReportUnrecoverableErrorFunction
26 report_unrecoverable_error_function, 26 report_unrecoverable_error_function,
27 syncer::NetworkResources* network_resources) { 27 syncer::NetworkResources* network_resources) {
(...skipping 30 matching lines...) Expand all
58 syncer::ConfigureReason reason, 58 syncer::ConfigureReason reason,
59 const DataTypeConfigStateMap& config_state_map, 59 const DataTypeConfigStateMap& config_state_map,
60 const base::Callback<void(syncer::ModelTypeSet, 60 const base::Callback<void(syncer::ModelTypeSet,
61 syncer::ModelTypeSet)>& ready_task, 61 syncer::ModelTypeSet)>& ready_task,
62 const base::Callback<void()>& retry_callback) {} 62 const base::Callback<void()>& retry_callback) {}
63 63
64 void SyncBackendHostMock::EnableEncryptEverything() {} 64 void SyncBackendHostMock::EnableEncryptEverything() {}
65 65
66 void SyncBackendHostMock::ActivateDataType( 66 void SyncBackendHostMock::ActivateDataType(
67 syncer::ModelType type, syncer::ModelSafeGroup group, 67 syncer::ModelType type, syncer::ModelSafeGroup group,
68 ChangeProcessor* change_processor) {} 68 sync_driver::ChangeProcessor* change_processor) {}
69 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} 69 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {}
70 70
71 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { 71 syncer::UserShare* SyncBackendHostMock::GetUserShare() const {
72 return NULL; 72 return NULL;
73 } 73 }
74 74
75 scoped_ptr<syncer::SyncContextProxy> 75 scoped_ptr<syncer::SyncContextProxy>
76 SyncBackendHostMock::GetSyncContextProxy() { 76 SyncBackendHostMock::GetSyncContextProxy() {
77 return scoped_ptr<syncer::SyncContextProxy>(); 77 return scoped_ptr<syncer::SyncContextProxy>();
78 } 78 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 syncer::ModelTypeSet types, 130 syncer::ModelTypeSet types,
131 base::Callback<void(const std::vector<syncer::ModelType>& type, 131 base::Callback<void(const std::vector<syncer::ModelType>& type,
132 ScopedVector<base::ListValue>) > callback) {} 132 ScopedVector<base::ListValue>) > callback) {}
133 133
134 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 134 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
135 fail_initial_download_ = should_fail; 135 fail_initial_download_ = should_fail;
136 } 136 }
137 137
138 } // namespace browser_sync 138 } // namespace browser_sync
139 139
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.h ('k') | chrome/browser/sync/glue/sync_backend_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698