| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ExtensionsActivity* extensions_activity, | 85 ExtensionsActivity* extensions_activity, |
| 86 ChangeDelegate* change_delegate, | 86 ChangeDelegate* change_delegate, |
| 87 const SyncCredentials& credentials, | 87 const SyncCredentials& credentials, |
| 88 const std::string& invalidator_client_id, | 88 const std::string& invalidator_client_id, |
| 89 const std::string& restored_key_for_bootstrapping, | 89 const std::string& restored_key_for_bootstrapping, |
| 90 const std::string& restored_keystore_key_for_bootstrapping, | 90 const std::string& restored_keystore_key_for_bootstrapping, |
| 91 InternalComponentsFactory* internal_components_factory, | 91 InternalComponentsFactory* internal_components_factory, |
| 92 Encryptor* encryptor, | 92 Encryptor* encryptor, |
| 93 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | 93 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, |
| 94 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, | 94 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, |
| 95 bool use_oauth2_token) OVERRIDE; | 95 bool use_oauth2_token, |
| 96 CancelationSignal* cancelation_signal) OVERRIDE; |
| 96 virtual void ThrowUnrecoverableError() OVERRIDE; | 97 virtual void ThrowUnrecoverableError() OVERRIDE; |
| 97 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; | 98 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; |
| 98 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 99 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 99 ModelTypeSet types) OVERRIDE; | 100 ModelTypeSet types) OVERRIDE; |
| 100 virtual bool PurgePartiallySyncedTypes() OVERRIDE; | 101 virtual bool PurgePartiallySyncedTypes() OVERRIDE; |
| 101 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; | 102 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; |
| 102 virtual void StartSyncingNormally( | 103 virtual void StartSyncingNormally( |
| 103 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 104 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
| 104 virtual void ConfigureSyncer( | 105 virtual void ConfigureSyncer( |
| 105 ConfigureReason reason, | 106 ConfigureReason reason, |
| 106 ModelTypeSet to_download, | 107 ModelTypeSet to_download, |
| 107 ModelTypeSet to_purge, | 108 ModelTypeSet to_purge, |
| 108 ModelTypeSet to_journal, | 109 ModelTypeSet to_journal, |
| 109 ModelTypeSet to_unapply, | 110 ModelTypeSet to_unapply, |
| 110 const ModelSafeRoutingInfo& new_routing_info, | 111 const ModelSafeRoutingInfo& new_routing_info, |
| 111 const base::Closure& ready_task, | 112 const base::Closure& ready_task, |
| 112 const base::Closure& retry_task) OVERRIDE; | 113 const base::Closure& retry_task) OVERRIDE; |
| 113 virtual void AddObserver(Observer* observer) OVERRIDE; | 114 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 114 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 115 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| 115 virtual SyncStatus GetDetailedStatus() const OVERRIDE; | 116 virtual SyncStatus GetDetailedStatus() const OVERRIDE; |
| 116 virtual void SaveChanges() OVERRIDE; | 117 virtual void SaveChanges() OVERRIDE; |
| 117 virtual void StopSyncingForShutdown() OVERRIDE; | |
| 118 virtual void ShutdownOnSyncThread() OVERRIDE; | 118 virtual void ShutdownOnSyncThread() OVERRIDE; |
| 119 virtual UserShare* GetUserShare() OVERRIDE; | 119 virtual UserShare* GetUserShare() OVERRIDE; |
| 120 virtual const std::string cache_guid() OVERRIDE; | 120 virtual const std::string cache_guid() OVERRIDE; |
| 121 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 121 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
| 122 virtual bool HasUnsyncedItems() OVERRIDE; | 122 virtual bool HasUnsyncedItems() OVERRIDE; |
| 123 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; | 123 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; |
| 124 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; | 124 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; | 127 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 155 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 155 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
| 156 | 156 |
| 157 TestUserShare test_user_share_; | 157 TestUserShare test_user_share_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 159 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace syncer | 162 } // namespace syncer |
| 163 | 163 |
| 164 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 164 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |