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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // SyncManager implementation. | 74 // SyncManager implementation. |
75 // Note: we treat whatever message loop this is called from as the sync | 75 // Note: we treat whatever message loop this is called from as the sync |
76 // loop for purposes of callbacks. | 76 // loop for purposes of callbacks. |
77 virtual void Init( | 77 virtual void Init( |
78 const base::FilePath& database_location, | 78 const base::FilePath& database_location, |
79 const WeakHandle<JsEventHandler>& event_handler, | 79 const WeakHandle<JsEventHandler>& event_handler, |
80 const std::string& sync_server_and_path, | 80 const std::string& sync_server_and_path, |
81 int sync_server_port, | 81 int sync_server_port, |
82 bool use_ssl, | 82 bool use_ssl, |
83 scoped_ptr<HttpPostProviderFactory> post_factory, | 83 scoped_ptr<HttpPostProviderFactory> post_factory, |
84 const std::vector<ModelSafeWorker*>& workers, | 84 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, |
85 ExtensionsActivity* extensions_activity, | 85 ExtensionsActivity* extensions_activity, |
86 ChangeDelegate* change_delegate, | 86 ChangeDelegate* change_delegate, |
87 const SyncCredentials& credentials, | 87 const SyncCredentials& credentials, |
88 const std::string& invalidator_client_id, | 88 const std::string& invalidator_client_id, |
89 const std::string& restored_key_for_bootstrapping, | 89 const std::string& restored_key_for_bootstrapping, |
90 const std::string& restored_keystore_key_for_bootstrapping, | 90 const std::string& restored_keystore_key_for_bootstrapping, |
91 InternalComponentsFactory* internal_components_factory, | 91 InternalComponentsFactory* internal_components_factory, |
92 Encryptor* encryptor, | 92 Encryptor* encryptor, |
93 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | 93 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, |
94 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, | 94 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
155 | 155 |
156 TestUserShare test_user_share_; | 156 TestUserShare test_user_share_; |
157 | 157 |
158 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 158 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
159 }; | 159 }; |
160 | 160 |
161 } // namespace syncer | 161 } // namespace syncer |
162 | 162 |
163 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 163 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |