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" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "sync/internal_api/public/sync_manager.h" | 12 #include "sync/internal_api/public/sync_manager.h" |
13 #include "sync/internal_api/public/test/null_sync_core_proxy.h" | 13 #include "sync/internal_api/public/test/null_sync_core_proxy.h" |
14 #include "sync/internal_api/public/test/test_user_share.h" | 14 #include "sync/internal_api/public/test/test_user_share.h" |
| 15 #include "sync/notifier/invalidator_registrar.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
18 } | 19 } |
19 | 20 |
20 namespace syncer { | 21 namespace syncer { |
21 | 22 |
22 class FakeSyncEncryptionHandler; | 23 class FakeSyncEncryptionHandler; |
23 | 24 |
24 class FakeSyncManager : public SyncManager { | 25 class FakeSyncManager : public SyncManager { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // The types that should fail configuration attempts. These types will not | 150 // The types that should fail configuration attempts. These types will not |
150 // have their progress markers or initial_sync_ended bits set. | 151 // have their progress markers or initial_sync_ended bits set. |
151 ModelTypeSet configure_fail_types_; | 152 ModelTypeSet configure_fail_types_; |
152 // The set of types that have been cleaned up. | 153 // The set of types that have been cleaned up. |
153 ModelTypeSet cleaned_types_; | 154 ModelTypeSet cleaned_types_; |
154 // The set of types that have been downloaded. | 155 // The set of types that have been downloaded. |
155 ModelTypeSet downloaded_types_; | 156 ModelTypeSet downloaded_types_; |
156 // The set of types that have been enabled. | 157 // The set of types that have been enabled. |
157 ModelTypeSet enabled_types_; | 158 ModelTypeSet enabled_types_; |
158 | 159 |
| 160 // Faked invalidator state. |
| 161 InvalidatorRegistrar registrar_; |
| 162 |
159 // The types for which a refresh was most recently requested. | 163 // The types for which a refresh was most recently requested. |
160 ModelTypeSet last_refresh_request_types_; | 164 ModelTypeSet last_refresh_request_types_; |
161 | 165 |
162 // The most recent configure reason. | 166 // The most recent configure reason. |
163 ConfigureReason last_configure_reason_; | 167 ConfigureReason last_configure_reason_; |
164 | 168 |
165 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 169 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
166 | 170 |
167 TestUserShare test_user_share_; | 171 TestUserShare test_user_share_; |
168 | 172 |
169 NullSyncCoreProxy null_sync_core_proxy_; | 173 NullSyncCoreProxy null_sync_core_proxy_; |
170 | 174 |
171 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 175 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
172 }; | 176 }; |
173 | 177 |
174 } // namespace syncer | 178 } // namespace syncer |
175 | 179 |
176 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 180 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |