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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Posts a method to update the invalidator state on the sync thread. | 63 // Posts a method to update the invalidator state on the sync thread. |
64 void UpdateInvalidatorState(InvalidatorState state); | 64 void UpdateInvalidatorState(InvalidatorState state); |
65 | 65 |
66 // Block until the sync thread has finished processing any pending messages. | 66 // Block until the sync thread has finished processing any pending messages. |
67 void WaitForSyncThread(); | 67 void WaitForSyncThread(); |
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 base::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 scoped_ptr<HttpPostProviderFactory> post_factory, | 78 scoped_ptr<HttpPostProviderFactory> post_factory, |
79 const std::vector<ModelSafeWorker*>& workers, | 79 const std::vector<ModelSafeWorker*>& workers, |
80 ExtensionsActivityMonitor* extensions_activity_monitor, | 80 ExtensionsActivityMonitor* extensions_activity_monitor, |
81 ChangeDelegate* change_delegate, | 81 ChangeDelegate* change_delegate, |
82 const SyncCredentials& credentials, | 82 const SyncCredentials& credentials, |
83 scoped_ptr<Invalidator> invalidator, | 83 scoped_ptr<Invalidator> invalidator, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 157 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
158 | 158 |
159 TestUserShare test_user_share_; | 159 TestUserShare test_user_share_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 161 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace syncer | 164 } // namespace syncer |
165 | 165 |
166 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 166 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |