| 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 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, | 32 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, |
| 33 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 33 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
| 34 const GURL& service_url, | 34 const GURL& service_url, |
| 35 const std::string& sync_user_agent, | 35 const std::string& sync_user_agent, |
| 36 const syncer::SyncCredentials& credentials, | 36 const syncer::SyncCredentials& credentials, |
| 37 bool delete_sync_data_folder, | 37 bool delete_sync_data_folder, |
| 38 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 38 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, |
| 39 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& | 39 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& |
| 40 unrecoverable_error_handler, | 40 unrecoverable_error_handler, |
| 41 const base::Closure& report_unrecoverable_error_function, | 41 const base::Closure& report_unrecoverable_error_function, |
| 42 syncer::NetworkResources* network_resources, | 42 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, |
| 43 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) | 43 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) |
| 44 override; | 44 override; |
| 45 | 45 |
| 46 void TriggerRefresh(const syncer::ModelTypeSet& types) override; | 46 void TriggerRefresh(const syncer::ModelTypeSet& types) override; |
| 47 | 47 |
| 48 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; | 48 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; |
| 49 | 49 |
| 50 void StartSyncingWithServer() override; | 50 void StartSyncingWithServer() override; |
| 51 | 51 |
| 52 void SetEncryptionPassphrase(const std::string& passphrase, | 52 void SetEncryptionPassphrase(const std::string& passphrase, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 void set_fail_initial_download(bool should_fail); | 123 void set_fail_initial_download(bool should_fail); |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 bool fail_initial_download_; | 126 bool fail_initial_download_; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace browser_sync | 129 } // namespace browser_sync |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 131 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| OLD | NEW |