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, | |
41 std::unique_ptr<SyncManagerFactory> sync_manager_factory, | 39 std::unique_ptr<SyncManagerFactory> sync_manager_factory, |
42 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, | 40 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, |
43 const base::Closure& report_unrecoverable_error_function, | 41 const base::Closure& report_unrecoverable_error_function, |
44 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, | 42 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, |
45 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) | 43 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) |
46 override; | 44 override; |
47 | 45 |
48 void TriggerRefresh(const ModelTypeSet& types) override; | 46 void TriggerRefresh(const ModelTypeSet& types) override; |
49 | 47 |
50 void UpdateCredentials(const SyncCredentials& credentials) override; | 48 void UpdateCredentials(const SyncCredentials& credentials) override; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 114 |
117 void set_fail_initial_download(bool should_fail); | 115 void set_fail_initial_download(bool should_fail); |
118 | 116 |
119 private: | 117 private: |
120 bool fail_initial_download_; | 118 bool fail_initial_download_; |
121 }; | 119 }; |
122 | 120 |
123 } // namespace syncer | 121 } // namespace syncer |
124 | 122 |
125 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 123 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |