| 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 #include "sync/internal_api/public/activation_context.h" | 8 #include "sync/internal_api/public/activation_context.h" |
| 9 | 9 |
| 10 namespace browser_sync { | 10 namespace browser_sync { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const base::Closure& report_unrecoverable_error_function, | 30 const base::Closure& report_unrecoverable_error_function, |
| 31 syncer::NetworkResources* network_resources, | 31 syncer::NetworkResources* network_resources, |
| 32 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) { | 32 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) { |
| 33 frontend->OnBackendInitialized( | 33 frontend->OnBackendInitialized( |
| 34 syncer::WeakHandle<syncer::JsBackend>(), | 34 syncer::WeakHandle<syncer::JsBackend>(), |
| 35 syncer::WeakHandle<syncer::DataTypeDebugInfoListener>(), | 35 syncer::WeakHandle<syncer::DataTypeDebugInfoListener>(), |
| 36 kTestCacheGuid, | 36 kTestCacheGuid, |
| 37 !fail_initial_download_); | 37 !fail_initial_download_); |
| 38 } | 38 } |
| 39 | 39 |
| 40 void SyncBackendHostMock::TriggerRefresh(const syncer::ModelTypeSet& types) {} |
| 41 |
| 40 void SyncBackendHostMock::UpdateCredentials( | 42 void SyncBackendHostMock::UpdateCredentials( |
| 41 const syncer::SyncCredentials& credentials) {} | 43 const syncer::SyncCredentials& credentials) {} |
| 42 | 44 |
| 43 void SyncBackendHostMock::StartSyncingWithServer() {} | 45 void SyncBackendHostMock::StartSyncingWithServer() {} |
| 44 | 46 |
| 45 void SyncBackendHostMock::SetEncryptionPassphrase( | 47 void SyncBackendHostMock::SetEncryptionPassphrase( |
| 46 const std::string& passphrase, | 48 const std::string& passphrase, |
| 47 bool is_explicit) {} | 49 bool is_explicit) {} |
| 48 | 50 |
| 49 bool SyncBackendHostMock::SetDecryptionPassphrase( | 51 bool SyncBackendHostMock::SetDecryptionPassphrase( |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 147 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { |
| 146 fail_initial_download_ = should_fail; | 148 fail_initial_download_ = should_fail; |
| 147 } | 149 } |
| 148 | 150 |
| 149 void SyncBackendHostMock::ClearServerData( | 151 void SyncBackendHostMock::ClearServerData( |
| 150 const syncer::SyncManager::ClearServerDataCallback& callback) { | 152 const syncer::SyncManager::ClearServerDataCallback& callback) { |
| 151 callback.Run(); | 153 callback.Run(); |
| 152 } | 154 } |
| 153 | 155 |
| 154 } // namespace browser_sync | 156 } // namespace browser_sync |
| OLD | NEW |