| 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 10 matching lines...) Expand all  Loading... | 
| 21     const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, | 21     const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, | 
| 22     const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 22     const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 
| 23     const GURL& service_url, | 23     const GURL& service_url, | 
| 24     const std::string& sync_user_agent, | 24     const std::string& sync_user_agent, | 
| 25     const syncer::SyncCredentials& credentials, | 25     const syncer::SyncCredentials& credentials, | 
| 26     bool delete_sync_data_folder, | 26     bool delete_sync_data_folder, | 
| 27     scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 27     scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 
| 28     const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& | 28     const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& | 
| 29         unrecoverable_error_handler, | 29         unrecoverable_error_handler, | 
| 30     const base::Closure& report_unrecoverable_error_function, | 30     const base::Closure& report_unrecoverable_error_function, | 
| 31     syncer::NetworkResources* network_resources, | 31     const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, | 
| 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) {} | 40 void SyncBackendHostMock::TriggerRefresh(const syncer::ModelTypeSet& types) {} | 
| 41 | 41 | 
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 147 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 147 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 
| 148   fail_initial_download_ = should_fail; | 148   fail_initial_download_ = should_fail; | 
| 149 } | 149 } | 
| 150 | 150 | 
| 151 void SyncBackendHostMock::ClearServerData( | 151 void SyncBackendHostMock::ClearServerData( | 
| 152     const syncer::SyncManager::ClearServerDataCallback& callback) { | 152     const syncer::SyncManager::ClearServerDataCallback& callback) { | 
| 153   callback.Run(); | 153   callback.Run(); | 
| 154 } | 154 } | 
| 155 | 155 | 
| 156 }  // namespace browser_sync | 156 }  // namespace browser_sync | 
| OLD | NEW | 
|---|