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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Posts a method to enable notifications on the sync thread. | 60 // Posts a method to enable notifications on the sync thread. |
61 void EnableNotifications(); | 61 void EnableNotifications(); |
62 | 62 |
63 // Posts a method to disable notifications on the sync thread. | 63 // Posts a method to disable notifications on the sync thread. |
64 void DisableNotifications(NotificationsDisabledReason reason); | 64 void DisableNotifications(NotificationsDisabledReason reason); |
65 | 65 |
66 // SyncManager implementation. | 66 // SyncManager implementation. |
67 // Note: we treat whatever message loop this is called from as the sync | 67 // Note: we treat whatever message loop this is called from as the sync |
68 // loop for purposes of callbacks. | 68 // loop for purposes of callbacks. |
69 virtual bool Init( | 69 virtual void Init( |
70 const FilePath& database_location, | 70 const FilePath& database_location, |
71 const WeakHandle<JsEventHandler>& event_handler, | 71 const WeakHandle<JsEventHandler>& event_handler, |
72 const std::string& sync_server_and_path, | 72 const std::string& sync_server_and_path, |
73 int sync_server_port, | 73 int sync_server_port, |
74 bool use_ssl, | 74 bool use_ssl, |
75 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 75 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
76 scoped_ptr<HttpPostProviderFactory> post_factory, | 76 scoped_ptr<HttpPostProviderFactory> post_factory, |
77 const std::vector<ModelSafeWorker*>& workers, | 77 const std::vector<ModelSafeWorker*>& workers, |
78 ExtensionsActivityMonitor* extensions_activity_monitor, | 78 ExtensionsActivityMonitor* extensions_activity_monitor, |
79 ChangeDelegate* change_delegate, | 79 ChangeDelegate* change_delegate, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 // Faked notifier state. | 152 // Faked notifier state. |
153 SyncNotifierHelper notifier_helper_; | 153 SyncNotifierHelper notifier_helper_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace syncer | 158 } // namespace syncer |
159 | 159 |
160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |