| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ENGINE_FAKE_SYNC_ENGINE_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ | 6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 void UpdateCredentials(const SyncCredentials& credentials) override; | 33 void UpdateCredentials(const SyncCredentials& credentials) override; |
| 34 | 34 |
| 35 void StartConfiguration() override; | 35 void StartConfiguration() override; |
| 36 | 36 |
| 37 void StartSyncingWithServer() override; | 37 void StartSyncingWithServer() override; |
| 38 | 38 |
| 39 void SetEncryptionPassphrase(const std::string& passphrase, | 39 void SetEncryptionPassphrase(const std::string& passphrase, |
| 40 bool is_explicit) override; | 40 bool is_explicit) override; |
| 41 | 41 |
| 42 bool SetDecryptionPassphrase(const std::string& passphrase) override; | 42 void SetDecryptionPassphrase(const std::string& passphrase) override; |
| 43 | 43 |
| 44 void StopSyncingForShutdown() override; | 44 void StopSyncingForShutdown() override; |
| 45 | 45 |
| 46 void Shutdown(ShutdownReason reason) override; | 46 void Shutdown(ShutdownReason reason) override; |
| 47 | 47 |
| 48 void ConfigureDataTypes(ConfigureParams params) override; | 48 void ConfigureDataTypes(ConfigureParams params) override; |
| 49 | 49 |
| 50 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override; | 50 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override; |
| 51 | 51 |
| 52 void UnregisterDirectoryDataType(ModelType type) override; | 52 void UnregisterDirectoryDataType(ModelType type) override; |
| 53 | 53 |
| 54 void EnableEncryptEverything() override; | 54 void EnableEncryptEverything() override; |
| 55 | 55 |
| 56 void ActivateDirectoryDataType(ModelType type, | 56 void ActivateDirectoryDataType(ModelType type, |
| 57 ModelSafeGroup group, | 57 ModelSafeGroup group, |
| 58 ChangeProcessor* change_processor) override; | 58 ChangeProcessor* change_processor) override; |
| 59 void DeactivateDirectoryDataType(ModelType type) override; | 59 void DeactivateDirectoryDataType(ModelType type) override; |
| 60 | 60 |
| 61 void ActivateNonBlockingDataType(ModelType type, | 61 void ActivateNonBlockingDataType(ModelType type, |
| 62 std::unique_ptr<ActivationContext>) override; | 62 std::unique_ptr<ActivationContext>) override; |
| 63 void DeactivateNonBlockingDataType(ModelType type) override; | 63 void DeactivateNonBlockingDataType(ModelType type) override; |
| 64 | 64 |
| 65 UserShare* GetUserShare() const override; | 65 UserShare* GetUserShare() const override; |
| 66 | 66 |
| 67 Status GetDetailedStatus() override; | 67 Status GetDetailedStatus() override; |
| 68 | 68 |
| 69 bool HasUnsyncedItems() const override; | 69 bool HasUnsyncedItems() const override; |
| 70 | 70 |
| 71 bool IsNigoriEnabled() const override; | |
| 72 | |
| 73 PassphraseType GetPassphraseType() const override; | |
| 74 | |
| 75 base::Time GetExplicitPassphraseTime() const override; | |
| 76 | |
| 77 bool IsCryptographerReady(const BaseTransaction* trans) const override; | 71 bool IsCryptographerReady(const BaseTransaction* trans) const override; |
| 78 | 72 |
| 79 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) const override; | 73 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) const override; |
| 80 | 74 |
| 81 void FlushDirectory() const override; | 75 void FlushDirectory() const override; |
| 82 | 76 |
| 83 void RequestBufferedProtocolEventsAndEnableForwarding() override; | 77 void RequestBufferedProtocolEventsAndEnableForwarding() override; |
| 84 void DisableProtocolEventForwarding() override; | 78 void DisableProtocolEventForwarding() override; |
| 85 | 79 |
| 86 void EnableDirectoryTypeDebugInfoForwarding() override; | 80 void EnableDirectoryTypeDebugInfoForwarding() override; |
| 87 void DisableDirectoryTypeDebugInfoForwarding() override; | 81 void DisableDirectoryTypeDebugInfoForwarding() override; |
| 88 | 82 |
| 89 void RefreshTypesForTest(ModelTypeSet types) override; | 83 void RefreshTypesForTest(ModelTypeSet types) override; |
| 90 | 84 |
| 91 void ClearServerData( | 85 void ClearServerData( |
| 92 const SyncManager::ClearServerDataCallback& callback) override; | 86 const SyncManager::ClearServerDataCallback& callback) override; |
| 93 | 87 |
| 94 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; | 88 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; |
| 95 | 89 |
| 96 void set_fail_initial_download(bool should_fail); | 90 void set_fail_initial_download(bool should_fail); |
| 97 | 91 |
| 98 private: | 92 private: |
| 99 bool fail_initial_download_; | 93 bool fail_initial_download_; |
| 100 }; | 94 }; |
| 101 | 95 |
| 102 } // namespace syncer | 96 } // namespace syncer |
| 103 | 97 |
| 104 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ | 98 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ |
| OLD | NEW |