| 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 COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ |
| 6 #define COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ | 6 #define COMPONENTS_SYNC_CORE_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void ShutdownOnSyncThread(ShutdownReason reason) override; | 99 void ShutdownOnSyncThread(ShutdownReason reason) override; |
| 100 UserShare* GetUserShare() override; | 100 UserShare* GetUserShare() override; |
| 101 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy() | 101 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy() |
| 102 override; | 102 override; |
| 103 const std::string cache_guid() override; | 103 const std::string cache_guid() override; |
| 104 bool ReceivedExperiment(Experiments* experiments) override; | 104 bool ReceivedExperiment(Experiments* experiments) override; |
| 105 bool HasUnsyncedItems() override; | 105 bool HasUnsyncedItems() override; |
| 106 SyncEncryptionHandler* GetEncryptionHandler() override; | 106 SyncEncryptionHandler* GetEncryptionHandler() override; |
| 107 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents() | 107 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents() |
| 108 override; | 108 override; |
| 109 std::unique_ptr<base::ListValue> GetAllNodesForType( | |
| 110 syncer::ModelType type) override; | |
| 111 void RefreshTypes(ModelTypeSet types) override; | 109 void RefreshTypes(ModelTypeSet types) override; |
| 112 void RegisterDirectoryTypeDebugInfoObserver( | 110 void RegisterDirectoryTypeDebugInfoObserver( |
| 113 syncer::TypeDebugInfoObserver* observer) override; | 111 syncer::TypeDebugInfoObserver* observer) override; |
| 114 void UnregisterDirectoryTypeDebugInfoObserver( | 112 void UnregisterDirectoryTypeDebugInfoObserver( |
| 115 syncer::TypeDebugInfoObserver* observer) override; | 113 syncer::TypeDebugInfoObserver* observer) override; |
| 116 bool HasDirectoryTypeDebugInfoObserver( | 114 bool HasDirectoryTypeDebugInfoObserver( |
| 117 syncer::TypeDebugInfoObserver* observer) override; | 115 syncer::TypeDebugInfoObserver* observer) override; |
| 118 void RequestEmitDebugInfo() override; | 116 void RequestEmitDebugInfo() override; |
| 119 void ClearServerData(const ClearServerDataCallback& callback) override; | 117 void ClearServerData(const ClearServerDataCallback& callback) override; |
| 120 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; | 118 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 151 | 149 |
| 152 // Number of invalidations received since startup. | 150 // Number of invalidations received since startup. |
| 153 int num_invalidations_received_; | 151 int num_invalidations_received_; |
| 154 | 152 |
| 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 153 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 156 }; | 154 }; |
| 157 | 155 |
| 158 } // namespace syncer | 156 } // namespace syncer |
| 159 | 157 |
| 160 #endif // COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ | 158 #endif // COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |