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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 void Initialize( | 29 void Initialize( |
30 SyncFrontend* frontend, | 30 SyncFrontend* frontend, |
31 std::unique_ptr<base::Thread> sync_thread, | 31 std::unique_ptr<base::Thread> sync_thread, |
32 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 32 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
33 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, | 33 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, |
34 const WeakHandle<JsEventHandler>& event_handler, | 34 const WeakHandle<JsEventHandler>& event_handler, |
35 const GURL& service_url, | 35 const GURL& service_url, |
36 const std::string& sync_user_agent, | 36 const std::string& sync_user_agent, |
37 const SyncCredentials& credentials, | 37 const SyncCredentials& credentials, |
38 bool delete_sync_data_folder, | 38 bool delete_sync_data_folder, |
| 39 bool enable_local_sync_backend, |
| 40 const base::FilePath& local_sync_backend_folder, |
39 std::unique_ptr<SyncManagerFactory> sync_manager_factory, | 41 std::unique_ptr<SyncManagerFactory> sync_manager_factory, |
40 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, | 42 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, |
41 const base::Closure& report_unrecoverable_error_function, | 43 const base::Closure& report_unrecoverable_error_function, |
42 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, | 44 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, |
43 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) | 45 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) |
44 override; | 46 override; |
45 | 47 |
46 void TriggerRefresh(const ModelTypeSet& types) override; | 48 void TriggerRefresh(const ModelTypeSet& types) override; |
47 | 49 |
48 void UpdateCredentials(const SyncCredentials& credentials) override; | 50 void UpdateCredentials(const SyncCredentials& credentials) override; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 116 |
115 void set_fail_initial_download(bool should_fail); | 117 void set_fail_initial_download(bool should_fail); |
116 | 118 |
117 private: | 119 private: |
118 bool fail_initial_download_; | 120 bool fail_initial_download_; |
119 }; | 121 }; |
120 | 122 |
121 } // namespace syncer | 123 } // namespace syncer |
122 | 124 |
123 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 125 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |