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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 syncer::TypeDebugInfoObserver* observer) override; | 112 syncer::TypeDebugInfoObserver* observer) override; |
113 void UnregisterDirectoryTypeDebugInfoObserver( | 113 void UnregisterDirectoryTypeDebugInfoObserver( |
114 syncer::TypeDebugInfoObserver* observer) override; | 114 syncer::TypeDebugInfoObserver* observer) override; |
115 bool HasDirectoryTypeDebugInfoObserver( | 115 bool HasDirectoryTypeDebugInfoObserver( |
116 syncer::TypeDebugInfoObserver* observer) override; | 116 syncer::TypeDebugInfoObserver* observer) override; |
117 void RequestEmitDebugInfo() override; | 117 void RequestEmitDebugInfo() override; |
118 | 118 |
119 private: | 119 private: |
120 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; | 120 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; |
121 | 121 |
122 ObserverList<SyncManager::Observer> observers_; | 122 base::ObserverList<SyncManager::Observer> observers_; |
123 | 123 |
124 // Faked directory state. | 124 // Faked directory state. |
125 ModelTypeSet initial_sync_ended_types_; | 125 ModelTypeSet initial_sync_ended_types_; |
126 ModelTypeSet progress_marker_types_; | 126 ModelTypeSet progress_marker_types_; |
127 | 127 |
128 // Test specific state. | 128 // Test specific state. |
129 // The types that should fail configuration attempts. These types will not | 129 // The types that should fail configuration attempts. These types will not |
130 // have their progress markers or initial_sync_ended bits set. | 130 // have their progress markers or initial_sync_ended bits set. |
131 ModelTypeSet configure_fail_types_; | 131 ModelTypeSet configure_fail_types_; |
132 // The set of types that have been cleaned up. | 132 // The set of types that have been cleaned up. |
(...skipping 14 matching lines...) Expand all Loading... |
147 TestUserShare test_user_share_; | 147 TestUserShare test_user_share_; |
148 | 148 |
149 NullSyncContextProxy null_sync_context_proxy_; | 149 NullSyncContextProxy null_sync_context_proxy_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 151 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace syncer | 154 } // namespace syncer |
155 | 155 |
156 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 156 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |