| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Note: we treat whatever message loop this is called from as the sync | 54 // Note: we treat whatever message loop this is called from as the sync |
| 55 // loop for purposes of callbacks. | 55 // loop for purposes of callbacks. |
| 56 virtual bool Init( | 56 virtual bool Init( |
| 57 const FilePath& database_location, | 57 const FilePath& database_location, |
| 58 const WeakHandle<JsEventHandler>& event_handler, | 58 const WeakHandle<JsEventHandler>& event_handler, |
| 59 const std::string& sync_server_and_path, | 59 const std::string& sync_server_and_path, |
| 60 int sync_server_port, | 60 int sync_server_port, |
| 61 bool use_ssl, | 61 bool use_ssl, |
| 62 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 62 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 63 scoped_ptr<HttpPostProviderFactory> post_factory, | 63 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 64 const ModelSafeRoutingInfo& model_safe_routing_info, | |
| 65 const std::vector<ModelSafeWorker*>& workers, | 64 const std::vector<ModelSafeWorker*>& workers, |
| 66 ExtensionsActivityMonitor* extensions_activity_monitor, | 65 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 67 ChangeDelegate* change_delegate, | 66 ChangeDelegate* change_delegate, |
| 68 const SyncCredentials& credentials, | 67 const SyncCredentials& credentials, |
| 69 scoped_ptr<SyncNotifier> sync_notifier, | 68 scoped_ptr<SyncNotifier> sync_notifier, |
| 70 const std::string& restored_key_for_bootstrapping, | 69 const std::string& restored_key_for_bootstrapping, |
| 71 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 70 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 72 Encryptor* encryptor, | 71 Encryptor* encryptor, |
| 73 UnrecoverableErrorHandler* unrecoverable_error_handler, | 72 UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 74 ReportUnrecoverableErrorFunction | 73 ReportUnrecoverableErrorFunction |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 124 |
| 126 // For StopSyncingForShutdown's callback. | 125 // For StopSyncingForShutdown's callback. |
| 127 MessageLoop* sync_loop_; | 126 MessageLoop* sync_loop_; |
| 128 | 127 |
| 129 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 128 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace syncer | 131 } // namespace syncer |
| 133 | 132 |
| 134 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 133 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |