| OLD | NEW |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 syncer::ConfigureReason reason, | 63 syncer::ConfigureReason reason, |
| 64 const DataTypeConfigStateMap& config_state_map, | 64 const DataTypeConfigStateMap& config_state_map, |
| 65 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& | 65 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& |
| 66 ready_task, | 66 ready_task, |
| 67 const base::Callback<void()>& retry_callback) { | 67 const base::Callback<void()>& retry_callback) { |
| 68 return syncer::ModelTypeSet(); | 68 return syncer::ModelTypeSet(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SyncBackendHostMock::EnableEncryptEverything() {} | 71 void SyncBackendHostMock::EnableEncryptEverything() {} |
| 72 | 72 |
| 73 void SyncBackendHostMock::ActivateDataType( | 73 void SyncBackendHostMock::ActivateDirectoryDataType( |
| 74 syncer::ModelType type, syncer::ModelSafeGroup group, | 74 syncer::ModelType type, |
| 75 syncer::ModelSafeGroup group, |
| 75 sync_driver::ChangeProcessor* change_processor) {} | 76 sync_driver::ChangeProcessor* change_processor) {} |
| 76 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} | 77 void SyncBackendHostMock::DeactivateDirectoryDataType(syncer::ModelType type) {} |
| 78 |
| 79 void SyncBackendHostMock::ActivateNonBlockingDataType( |
| 80 syncer::ModelType type, |
| 81 scoped_ptr<syncer_v2::ActivationContext> activation_context) {} |
| 82 |
| 83 void SyncBackendHostMock::DeactivateNonBlockingDataType( |
| 84 syncer::ModelType type) {} |
| 77 | 85 |
| 78 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { | 86 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { |
| 79 return NULL; | 87 return NULL; |
| 80 } | 88 } |
| 81 | 89 |
| 82 scoped_ptr<syncer_v2::SyncContextProxy> | 90 scoped_ptr<syncer_v2::SyncContextProxy> |
| 83 SyncBackendHostMock::GetSyncContextProxy() { | 91 SyncBackendHostMock::GetSyncContextProxy() { |
| 84 return scoped_ptr<syncer_v2::SyncContextProxy>(); | 92 return scoped_ptr<syncer_v2::SyncContextProxy>(); |
| 85 } | 93 } |
| 86 | 94 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 149 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { |
| 142 fail_initial_download_ = should_fail; | 150 fail_initial_download_ = should_fail; |
| 143 } | 151 } |
| 144 | 152 |
| 145 void SyncBackendHostMock::ClearServerData( | 153 void SyncBackendHostMock::ClearServerData( |
| 146 const syncer::SyncManager::ClearServerDataCallback& callback) { | 154 const syncer::SyncManager::ClearServerDataCallback& callback) { |
| 147 callback.Run(); | 155 callback.Run(); |
| 148 } | 156 } |
| 149 | 157 |
| 150 } // namespace browser_sync | 158 } // namespace browser_sync |
| OLD | NEW |