| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual void SaveChanges() OVERRIDE; | 119 virtual void SaveChanges() OVERRIDE; |
| 120 virtual void ShutdownOnSyncThread() OVERRIDE; | 120 virtual void ShutdownOnSyncThread() OVERRIDE; |
| 121 virtual UserShare* GetUserShare() OVERRIDE; | 121 virtual UserShare* GetUserShare() OVERRIDE; |
| 122 virtual syncer::SyncCore* GetSyncCore() OVERRIDE; | 122 virtual syncer::SyncCore* GetSyncCore() OVERRIDE; |
| 123 virtual const std::string cache_guid() OVERRIDE; | 123 virtual const std::string cache_guid() OVERRIDE; |
| 124 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 124 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
| 125 virtual bool HasUnsyncedItems() OVERRIDE; | 125 virtual bool HasUnsyncedItems() OVERRIDE; |
| 126 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; | 126 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; |
| 127 virtual ScopedVector<syncer::ProtocolEvent> | 127 virtual ScopedVector<syncer::ProtocolEvent> |
| 128 GetBufferedProtocolEvents() OVERRIDE; | 128 GetBufferedProtocolEvents() OVERRIDE; |
| 129 virtual scoped_ptr<base::ListValue> GetAllNodesForType( |
| 130 syncer::ModelType type) OVERRIDE; |
| 129 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; | 131 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; |
| 130 | 132 |
| 131 private: | 133 private: |
| 132 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; | 134 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; |
| 133 | 135 |
| 134 ObserverList<SyncManager::Observer> observers_; | 136 ObserverList<SyncManager::Observer> observers_; |
| 135 | 137 |
| 136 // Faked directory state. | 138 // Faked directory state. |
| 137 ModelTypeSet initial_sync_ended_types_; | 139 ModelTypeSet initial_sync_ended_types_; |
| 138 ModelTypeSet progress_marker_types_; | 140 ModelTypeSet progress_marker_types_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 160 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 162 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
| 161 | 163 |
| 162 TestUserShare test_user_share_; | 164 TestUserShare test_user_share_; |
| 163 | 165 |
| 164 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 166 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 } // namespace syncer | 169 } // namespace syncer |
| 168 | 170 |
| 169 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 171 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |