Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 294123004: Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
16 15
17 namespace base { 16 namespace base {
18 class SequencedTaskRunner; 17 class SequencedTaskRunner;
19 } 18 }
20 19
21 namespace syncer { 20 namespace syncer {
22 21
23 class FakeSyncEncryptionHandler; 22 class FakeSyncEncryptionHandler;
24 23
25 class FakeSyncManager : public SyncManager { 24 class FakeSyncManager : public SyncManager {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // The types that should fail configuration attempts. These types will not 149 // The types that should fail configuration attempts. These types will not
151 // have their progress markers or initial_sync_ended bits set. 150 // have their progress markers or initial_sync_ended bits set.
152 ModelTypeSet configure_fail_types_; 151 ModelTypeSet configure_fail_types_;
153 // The set of types that have been cleaned up. 152 // The set of types that have been cleaned up.
154 ModelTypeSet cleaned_types_; 153 ModelTypeSet cleaned_types_;
155 // The set of types that have been downloaded. 154 // The set of types that have been downloaded.
156 ModelTypeSet downloaded_types_; 155 ModelTypeSet downloaded_types_;
157 // The set of types that have been enabled. 156 // The set of types that have been enabled.
158 ModelTypeSet enabled_types_; 157 ModelTypeSet enabled_types_;
159 158
160 // Faked invalidator state.
161 InvalidatorRegistrar registrar_;
162
163 // The types for which a refresh was most recently requested. 159 // The types for which a refresh was most recently requested.
164 ModelTypeSet last_refresh_request_types_; 160 ModelTypeSet last_refresh_request_types_;
165 161
166 // The most recent configure reason. 162 // The most recent configure reason.
167 ConfigureReason last_configure_reason_; 163 ConfigureReason last_configure_reason_;
168 164
169 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; 165 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
170 166
171 TestUserShare test_user_share_; 167 TestUserShare test_user_share_;
172 168
173 NullSyncCoreProxy null_sync_core_proxy_; 169 NullSyncCoreProxy null_sync_core_proxy_;
174 170
175 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 171 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
176 }; 172 };
177 173
178 } // namespace syncer 174 } // namespace syncer
179 175
180 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 176 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/invalidator_state.cc ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698