| 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 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 FakeSyncEngine(); | 26 FakeSyncEngine(); |
| 27 ~FakeSyncEngine() override; | 27 ~FakeSyncEngine() override; |
| 28 | 28 |
| 29 void Initialize(InitParams params) override; | 29 void Initialize(InitParams params) override; |
| 30 | 30 |
| 31 void TriggerRefresh(const ModelTypeSet& types) override; | 31 void TriggerRefresh(const ModelTypeSet& types) override; |
| 32 | 32 |
| 33 void UpdateCredentials(const SyncCredentials& credentials) override; | 33 void UpdateCredentials(const SyncCredentials& credentials) override; |
| 34 | 34 |
| 35 void StartConfiguration() override; | |
| 36 | |
| 37 void StartSyncingWithServer() override; | 35 void StartSyncingWithServer() override; |
| 38 | 36 |
| 39 void SetEncryptionPassphrase(const std::string& passphrase, | 37 void SetEncryptionPassphrase(const std::string& passphrase, |
| 40 bool is_explicit) override; | 38 bool is_explicit) override; |
| 41 | 39 |
| 42 bool SetDecryptionPassphrase(const std::string& passphrase) override; | 40 bool SetDecryptionPassphrase(const std::string& passphrase) override; |
| 43 | 41 |
| 44 void StopSyncingForShutdown() override; | 42 void StopSyncingForShutdown() override; |
| 45 | 43 |
| 46 void Shutdown(ShutdownReason reason) override; | 44 void Shutdown(ShutdownReason reason) override; |
| 47 | 45 |
| 48 void ConfigureDataTypes(ConfigureParams params) override; | 46 void ConfigureDataTypes(ConfigureParams params) override; |
| 49 | 47 |
| 50 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override; | |
| 51 | |
| 52 void UnregisterDirectoryDataType(ModelType type) override; | |
| 53 | |
| 54 void EnableEncryptEverything() override; | 48 void EnableEncryptEverything() override; |
| 55 | 49 |
| 56 void ActivateDirectoryDataType(ModelType type, | 50 void ActivateDirectoryDataType(ModelType type, |
| 57 ModelSafeGroup group, | 51 ModelSafeGroup group, |
| 58 ChangeProcessor* change_processor) override; | 52 ChangeProcessor* change_processor) override; |
| 59 void DeactivateDirectoryDataType(ModelType type) override; | 53 void DeactivateDirectoryDataType(ModelType type) override; |
| 60 | 54 |
| 61 void ActivateNonBlockingDataType(ModelType type, | 55 void ActivateNonBlockingDataType(ModelType type, |
| 62 std::unique_ptr<ActivationContext>) override; | 56 std::unique_ptr<ActivationContext>) override; |
| 63 void DeactivateNonBlockingDataType(ModelType type) override; | 57 void DeactivateNonBlockingDataType(ModelType type) override; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |