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 "sync/internal_api/public/sync_manager.h" | 10 #include "sync/internal_api/public/sync_manager.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 int sync_server_port, | 60 int sync_server_port, |
61 bool use_ssl, | 61 bool use_ssl, |
62 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 62 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
63 scoped_ptr<HttpPostProviderFactory> post_factory, | 63 scoped_ptr<HttpPostProviderFactory> post_factory, |
64 const std::vector<ModelSafeWorker*>& workers, | 64 const std::vector<ModelSafeWorker*>& workers, |
65 ExtensionsActivityMonitor* extensions_activity_monitor, | 65 ExtensionsActivityMonitor* extensions_activity_monitor, |
66 ChangeDelegate* change_delegate, | 66 ChangeDelegate* change_delegate, |
67 const SyncCredentials& credentials, | 67 const SyncCredentials& credentials, |
68 scoped_ptr<SyncNotifier> sync_notifier, | 68 scoped_ptr<SyncNotifier> sync_notifier, |
69 const std::string& restored_key_for_bootstrapping, | 69 const std::string& restored_key_for_bootstrapping, |
| 70 const std::string& restored_keystore_key_for_bootstrapping, |
70 bool keystore_encryption_enabled, | 71 bool keystore_encryption_enabled, |
71 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 72 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
72 Encryptor* encryptor, | 73 Encryptor* encryptor, |
73 UnrecoverableErrorHandler* unrecoverable_error_handler, | 74 UnrecoverableErrorHandler* unrecoverable_error_handler, |
74 ReportUnrecoverableErrorFunction | 75 ReportUnrecoverableErrorFunction |
75 report_unrecoverable_error_function) OVERRIDE; | 76 report_unrecoverable_error_function) OVERRIDE; |
76 virtual void ThrowUnrecoverableError() OVERRIDE; | 77 virtual void ThrowUnrecoverableError() OVERRIDE; |
77 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; | 78 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; |
78 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 79 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
79 ModelTypeSet types) OVERRIDE; | 80 ModelTypeSet types) OVERRIDE; |
80 virtual bool PurgePartiallySyncedTypes() OVERRIDE; | 81 virtual bool PurgePartiallySyncedTypes() OVERRIDE; |
81 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; | 82 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; |
82 virtual void UpdateEnabledTypes(const ModelTypeSet& types) OVERRIDE; | 83 virtual void UpdateEnabledTypes(const ModelTypeSet& types) OVERRIDE; |
83 virtual void StartSyncingNormally( | 84 virtual void StartSyncingNormally( |
84 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 85 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
85 virtual void SetEncryptionPassphrase(const std::string& passphrase, | 86 virtual void SetEncryptionPassphrase(const std::string& passphrase, |
86 bool is_explicit) OVERRIDE; | 87 bool is_explicit) OVERRIDE; |
87 virtual void SetDecryptionPassphrase(const std::string& passphrase) OVERRIDE; | 88 virtual void SetDecryptionPassphrase(const std::string& passphrase) OVERRIDE; |
88 virtual void ConfigureSyncer( | 89 virtual void ConfigureSyncer( |
89 ConfigureReason reason, | 90 ConfigureReason reason, |
90 const ModelTypeSet& types_to_config, | 91 const ModelTypeSet& types_to_config, |
91 const ModelSafeRoutingInfo& new_routing_info, | 92 const ModelSafeRoutingInfo& new_routing_info, |
92 const base::Closure& ready_task, | 93 const base::Closure& ready_task, |
93 const base::Closure& retry_task) OVERRIDE; | 94 const base::Closure& retry_task) OVERRIDE; |
94 virtual void AddObserver(Observer* observer) OVERRIDE; | 95 virtual void AddObserver(Observer* observer) OVERRIDE; |
95 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 96 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
96 virtual SyncStatus GetDetailedStatus() const OVERRIDE; | 97 virtual SyncStatus GetDetailedStatus() const OVERRIDE; |
97 virtual bool IsUsingExplicitPassphrase() OVERRIDE; | 98 virtual bool IsUsingExplicitPassphrase() OVERRIDE; |
| 99 virtual bool GetKeystoreKeyBootstrapToken(std::string* token) OVERRIDE; |
98 virtual void SaveChanges() OVERRIDE; | 100 virtual void SaveChanges() OVERRIDE; |
99 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; | 101 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; |
100 virtual void ShutdownOnSyncThread() OVERRIDE; | 102 virtual void ShutdownOnSyncThread() OVERRIDE; |
101 virtual UserShare* GetUserShare() OVERRIDE; | 103 virtual UserShare* GetUserShare() OVERRIDE; |
102 virtual void RefreshNigori(const std::string& chrome_version, | 104 virtual void RefreshNigori(const std::string& chrome_version, |
103 const base::Closure& done_callback) OVERRIDE; | 105 const base::Closure& done_callback) OVERRIDE; |
104 virtual void EnableEncryptEverything() OVERRIDE; | 106 virtual void EnableEncryptEverything() OVERRIDE; |
105 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 107 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
106 virtual bool HasUnsyncedItems() OVERRIDE; | 108 virtual bool HasUnsyncedItems() OVERRIDE; |
107 | 109 |
(...skipping 17 matching lines...) Expand all Loading... |
125 | 127 |
126 // For StopSyncingForShutdown's callback. | 128 // For StopSyncingForShutdown's callback. |
127 MessageLoop* sync_loop_; | 129 MessageLoop* sync_loop_; |
128 | 130 |
129 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 131 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace syncer | 134 } // namespace syncer |
133 | 135 |
134 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 136 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |