| 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" |
| 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_context_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 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace syncer { | 20 namespace syncer { |
| 21 | 21 |
| 22 class FakeSyncEncryptionHandler; | 22 class FakeSyncEncryptionHandler; |
| 23 | 23 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 ModelTypeSet to_unapply, | 111 ModelTypeSet to_unapply, |
| 112 const ModelSafeRoutingInfo& new_routing_info, | 112 const ModelSafeRoutingInfo& new_routing_info, |
| 113 const base::Closure& ready_task, | 113 const base::Closure& ready_task, |
| 114 const base::Closure& retry_task) OVERRIDE; | 114 const base::Closure& retry_task) OVERRIDE; |
| 115 virtual void AddObserver(Observer* observer) OVERRIDE; | 115 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 116 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 116 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| 117 virtual SyncStatus GetDetailedStatus() const OVERRIDE; | 117 virtual SyncStatus GetDetailedStatus() const OVERRIDE; |
| 118 virtual void SaveChanges() OVERRIDE; | 118 virtual void SaveChanges() OVERRIDE; |
| 119 virtual void ShutdownOnSyncThread() OVERRIDE; | 119 virtual void ShutdownOnSyncThread() OVERRIDE; |
| 120 virtual UserShare* GetUserShare() OVERRIDE; | 120 virtual UserShare* GetUserShare() OVERRIDE; |
| 121 virtual syncer::SyncCoreProxy* GetSyncCoreProxy() OVERRIDE; | 121 virtual syncer::SyncContextProxy* GetSyncContextProxy() OVERRIDE; |
| 122 virtual const std::string cache_guid() OVERRIDE; | 122 virtual const std::string cache_guid() OVERRIDE; |
| 123 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 123 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
| 124 virtual bool HasUnsyncedItems() OVERRIDE; | 124 virtual bool HasUnsyncedItems() OVERRIDE; |
| 125 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; | 125 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; |
| 126 virtual ScopedVector<syncer::ProtocolEvent> | 126 virtual ScopedVector<syncer::ProtocolEvent> |
| 127 GetBufferedProtocolEvents() OVERRIDE; | 127 GetBufferedProtocolEvents() OVERRIDE; |
| 128 virtual scoped_ptr<base::ListValue> GetAllNodesForType( | 128 virtual scoped_ptr<base::ListValue> GetAllNodesForType( |
| 129 syncer::ModelType type) OVERRIDE; | 129 syncer::ModelType type) OVERRIDE; |
| 130 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; | 130 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; |
| 131 virtual void RegisterDirectoryTypeDebugInfoObserver( | 131 virtual void RegisterDirectoryTypeDebugInfoObserver( |
| (...skipping 27 matching lines...) Expand all Loading... |
| 159 // The types for which a refresh was most recently requested. | 159 // The types for which a refresh was most recently requested. |
| 160 ModelTypeSet last_refresh_request_types_; | 160 ModelTypeSet last_refresh_request_types_; |
| 161 | 161 |
| 162 // The most recent configure reason. | 162 // The most recent configure reason. |
| 163 ConfigureReason last_configure_reason_; | 163 ConfigureReason last_configure_reason_; |
| 164 | 164 |
| 165 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 165 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
| 166 | 166 |
| 167 TestUserShare test_user_share_; | 167 TestUserShare test_user_share_; |
| 168 | 168 |
| 169 NullSyncCoreProxy null_sync_core_proxy_; | 169 NullSyncContextProxy null_sync_context_proxy_; |
| 170 | 170 |
| 171 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 171 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace syncer | 174 } // namespace syncer |
| 175 | 175 |
| 176 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 176 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |