| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 107 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
| 108 virtual void ConfigureSyncer( | 108 virtual void ConfigureSyncer( |
| 109 ConfigureReason reason, | 109 ConfigureReason reason, |
| 110 const ModelTypeSet& types_to_config, | 110 const ModelTypeSet& types_to_config, |
| 111 const ModelSafeRoutingInfo& new_routing_info, | 111 const ModelSafeRoutingInfo& new_routing_info, |
| 112 const base::Closure& ready_task, | 112 const base::Closure& ready_task, |
| 113 const base::Closure& retry_task) OVERRIDE; | 113 const base::Closure& retry_task) OVERRIDE; |
| 114 virtual void AddObserver(Observer* observer) OVERRIDE; | 114 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 115 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 115 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| 116 virtual SyncStatus GetDetailedStatus() const OVERRIDE; | 116 virtual SyncStatus GetDetailedStatus() const OVERRIDE; |
| 117 virtual bool GetKeystoreKeyBootstrapToken(std::string* token) OVERRIDE; | |
| 118 virtual void SaveChanges() OVERRIDE; | 117 virtual void SaveChanges() OVERRIDE; |
| 119 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; | 118 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; |
| 120 virtual void ShutdownOnSyncThread() OVERRIDE; | 119 virtual void ShutdownOnSyncThread() OVERRIDE; |
| 121 virtual UserShare* GetUserShare() OVERRIDE; | 120 virtual UserShare* GetUserShare() OVERRIDE; |
| 122 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 121 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
| 123 virtual bool HasUnsyncedItems() OVERRIDE; | 122 virtual bool HasUnsyncedItems() OVERRIDE; |
| 124 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; | 123 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 void InvalidateOnSyncThread( | 126 void InvalidateOnSyncThread( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 153 InvalidatorRegistrar registrar_; | 152 InvalidatorRegistrar registrar_; |
| 154 | 153 |
| 155 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
| 156 | 155 |
| 157 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 156 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 } // namespace syncer | 159 } // namespace syncer |
| 161 | 160 |
| 162 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 161 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |