| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "sync/internal_api/public/sync_manager.h" | 10 #include "sync/internal_api/public/sync_manager.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Note: we treat whatever message loop this is called from as the sync | 49 // Note: we treat whatever message loop this is called from as the sync |
| 50 // loop for purposes of callbacks. | 50 // loop for purposes of callbacks. |
| 51 virtual bool Init( | 51 virtual bool Init( |
| 52 const FilePath& database_location, | 52 const FilePath& database_location, |
| 53 const WeakHandle<JsEventHandler>& event_handler, | 53 const WeakHandle<JsEventHandler>& event_handler, |
| 54 const std::string& sync_server_and_path, | 54 const std::string& sync_server_and_path, |
| 55 int sync_server_port, | 55 int sync_server_port, |
| 56 bool use_ssl, | 56 bool use_ssl, |
| 57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 58 scoped_ptr<HttpPostProviderFactory> post_factory, | 58 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 59 const ModelSafeRoutingInfo& model_safe_routing_info, | |
| 60 const std::vector<ModelSafeWorker*>& workers, | 59 const std::vector<ModelSafeWorker*>& workers, |
| 61 ExtensionsActivityMonitor* extensions_activity_monitor, | 60 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 62 ChangeDelegate* change_delegate, | 61 ChangeDelegate* change_delegate, |
| 63 const SyncCredentials& credentials, | 62 const SyncCredentials& credentials, |
| 64 scoped_ptr<SyncNotifier> sync_notifier, | 63 scoped_ptr<SyncNotifier> sync_notifier, |
| 65 const std::string& restored_key_for_bootstrapping, | 64 const std::string& restored_key_for_bootstrapping, |
| 66 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 65 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 67 Encryptor* encryptor, | 66 Encryptor* encryptor, |
| 68 UnrecoverableErrorHandler* unrecoverable_error_handler, | 67 UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 69 ReportUnrecoverableErrorFunction | 68 ReportUnrecoverableErrorFunction |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 117 |
| 119 // For StopSyncingForShutdown's callback. | 118 // For StopSyncingForShutdown's callback. |
| 120 MessageLoop* sync_loop_; | 119 MessageLoop* sync_loop_; |
| 121 | 120 |
| 122 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 121 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace syncer | 124 } // namespace syncer |
| 126 | 125 |
| 127 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 126 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |