| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 syncer::ModelType type) override; | 109 syncer::ModelType type) override; |
| 110 void RefreshTypes(ModelTypeSet types) override; | 110 void RefreshTypes(ModelTypeSet types) override; |
| 111 void RegisterDirectoryTypeDebugInfoObserver( | 111 void RegisterDirectoryTypeDebugInfoObserver( |
| 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 void ClearServerData(const ClearServerDataCallback& callback) override; | 118 void ClearServerData(const ClearServerDataCallback& callback) override; |
| 119 void OnCookieJarChanged(bool account_mismatch) override; |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; | 122 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; |
| 122 | 123 |
| 123 base::ObserverList<SyncManager::Observer> observers_; | 124 base::ObserverList<SyncManager::Observer> observers_; |
| 124 | 125 |
| 125 // Faked directory state. | 126 // Faked directory state. |
| 126 ModelTypeSet initial_sync_ended_types_; | 127 ModelTypeSet initial_sync_ended_types_; |
| 127 ModelTypeSet progress_marker_types_; | 128 ModelTypeSet progress_marker_types_; |
| 128 | 129 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 151 | 152 |
| 152 // Number of invalidations received since startup. | 153 // Number of invalidations received since startup. |
| 153 int num_invalidations_received_; | 154 int num_invalidations_received_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 156 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace syncer | 159 } // namespace syncer |
| 159 | 160 |
| 160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 161 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |