| 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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // SyncManager implementation. | 69 // SyncManager implementation. |
| 70 // Note: we treat whatever message loop this is called from as the sync | 70 // Note: we treat whatever message loop this is called from as the sync |
| 71 // loop for purposes of callbacks. | 71 // loop for purposes of callbacks. |
| 72 virtual void Init( | 72 virtual void Init( |
| 73 const FilePath& database_location, | 73 const FilePath& database_location, |
| 74 const WeakHandle<JsEventHandler>& event_handler, | 74 const WeakHandle<JsEventHandler>& event_handler, |
| 75 const std::string& sync_server_and_path, | 75 const std::string& sync_server_and_path, |
| 76 int sync_server_port, | 76 int sync_server_port, |
| 77 bool use_ssl, | 77 bool use_ssl, |
| 78 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | |
| 79 scoped_ptr<HttpPostProviderFactory> post_factory, | 78 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 80 const std::vector<ModelSafeWorker*>& workers, | 79 const std::vector<ModelSafeWorker*>& workers, |
| 81 ExtensionsActivityMonitor* extensions_activity_monitor, | 80 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 82 ChangeDelegate* change_delegate, | 81 ChangeDelegate* change_delegate, |
| 83 const SyncCredentials& credentials, | 82 const SyncCredentials& credentials, |
| 84 scoped_ptr<Invalidator> invalidator, | 83 scoped_ptr<Invalidator> invalidator, |
| 85 const std::string& restored_key_for_bootstrapping, | 84 const std::string& restored_key_for_bootstrapping, |
| 86 const std::string& restored_keystore_key_for_bootstrapping, | 85 const std::string& restored_keystore_key_for_bootstrapping, |
| 87 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 86 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 88 Encryptor* encryptor, | 87 Encryptor* encryptor, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 InvalidatorRegistrar registrar_; | 151 InvalidatorRegistrar registrar_; |
| 153 | 152 |
| 154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 153 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
| 155 | 154 |
| 156 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 157 }; | 156 }; |
| 158 | 157 |
| 159 } // namespace syncer | 158 } // namespace syncer |
| 160 | 159 |
| 161 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |