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

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: Fix compile and chrome/ usage 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 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {} 11 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {}
12 SyncBackendHostMock::~SyncBackendHostMock() {} 12 SyncBackendHostMock::~SyncBackendHostMock() {}
13 13
14 void SyncBackendHostMock::Initialize( 14 void SyncBackendHostMock::Initialize(
15 SyncFrontend* frontend, 15 sync_driver::SyncFrontend* frontend,
16 scoped_ptr<base::Thread> sync_thread, 16 scoped_ptr<base::Thread> sync_thread,
17 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, 17 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler,
18 const GURL& service_url, 18 const GURL& service_url,
19 const syncer::SyncCredentials& credentials, 19 const syncer::SyncCredentials& credentials,
20 bool delete_sync_data_folder, 20 bool delete_sync_data_folder,
21 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, 21 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory,
22 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, 22 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler,
23 syncer::ReportUnrecoverableErrorFunction 23 syncer::ReportUnrecoverableErrorFunction
24 report_unrecoverable_error_function, 24 report_unrecoverable_error_function,
25 syncer::NetworkResources* network_resources) { 25 syncer::NetworkResources* network_resources) {
(...skipping 29 matching lines...) Expand all
55 syncer::ConfigureReason reason, 55 syncer::ConfigureReason reason,
56 const DataTypeConfigStateMap& config_state_map, 56 const DataTypeConfigStateMap& config_state_map,
57 const base::Callback<void(syncer::ModelTypeSet, 57 const base::Callback<void(syncer::ModelTypeSet,
58 syncer::ModelTypeSet)>& ready_task, 58 syncer::ModelTypeSet)>& ready_task,
59 const base::Callback<void()>& retry_callback) {} 59 const base::Callback<void()>& retry_callback) {}
60 60
61 void SyncBackendHostMock::EnableEncryptEverything() {} 61 void SyncBackendHostMock::EnableEncryptEverything() {}
62 62
63 void SyncBackendHostMock::ActivateDataType( 63 void SyncBackendHostMock::ActivateDataType(
64 syncer::ModelType type, syncer::ModelSafeGroup group, 64 syncer::ModelType type, syncer::ModelSafeGroup group,
65 ChangeProcessor* change_processor) {} 65 sync_driver::ChangeProcessor* change_processor) {}
66 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} 66 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {}
67 67
68 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { 68 syncer::UserShare* SyncBackendHostMock::GetUserShare() const {
69 return NULL; 69 return NULL;
70 } 70 }
71 71
72 scoped_ptr<syncer::SyncContextProxy> 72 scoped_ptr<syncer::SyncContextProxy>
73 SyncBackendHostMock::GetSyncContextProxy() { 73 SyncBackendHostMock::GetSyncContextProxy() {
74 return scoped_ptr<syncer::SyncContextProxy>(); 74 return scoped_ptr<syncer::SyncContextProxy>();
75 } 75 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 syncer::ModelTypeSet types, 127 syncer::ModelTypeSet types,
128 base::Callback<void(const std::vector<syncer::ModelType>& type, 128 base::Callback<void(const std::vector<syncer::ModelType>& type,
129 ScopedVector<base::ListValue>) > callback) {} 129 ScopedVector<base::ListValue>) > callback) {}
130 130
131 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 131 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
132 fail_initial_download_ = should_fail; 132 fail_initial_download_ = should_fail;
133 } 133 }
134 134
135 } // namespace browser_sync 135 } // namespace browser_sync
136 136
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698