class SyncBackendHostMock : public SyncBackendHost {
public:
SyncBackendHostMock();
- virtual ~SyncBackendHostMock();
+ ~SyncBackendHostMock() override;
- virtual void Initialize(
- SyncFrontend* frontend,
+ void Initialize(
+ sync_driver::SyncFrontend* frontend,
scoped_ptr<base::Thread> sync_thread,
const syncer::WeakHandle<syncer::JsEventHandler>& event_handler,
const GURL& service_url,
scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler,
syncer::ReportUnrecoverableErrorFunction
report_unrecoverable_error_function,
- syncer::NetworkResources* network_resources) OVERRIDE;
+ syncer::NetworkResources* network_resources) override;
- virtual void UpdateCredentials(
- const syncer::SyncCredentials& credentials) OVERRIDE;
+ void UpdateCredentials(const syncer::SyncCredentials& credentials) override;
- virtual void StartSyncingWithServer() OVERRIDE;
+ void StartSyncingWithServer() override;
- virtual void SetEncryptionPassphrase(
- const std::string& passphrase,
- bool is_explicit) OVERRIDE;
+ void SetEncryptionPassphrase(const std::string& passphrase,
+ bool is_explicit) override;
- virtual bool SetDecryptionPassphrase(
- const std::string& passphrase) OVERRIDE;
+ bool SetDecryptionPassphrase(const std::string& passphrase) override;
- virtual void StopSyncingForShutdown() OVERRIDE;
+ void StopSyncingForShutdown() override;
- virtual scoped_ptr<base::Thread> Shutdown(ShutdownOption option) OVERRIDE;
+ scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) override;
- virtual void UnregisterInvalidationIds() OVERRIDE;
+ void UnregisterInvalidationIds() override;
- virtual void ConfigureDataTypes(
+ void ConfigureDataTypes(
syncer::ConfigureReason reason,
const DataTypeConfigStateMap& config_state_map,
- const base::Callback<void(syncer::ModelTypeSet,
- syncer::ModelTypeSet)>& ready_task,
- const base::Callback<void()>& retry_callback) OVERRIDE;
+ const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>&
+ ready_task,
+ const base::Callback<void()>& retry_callback) override;
- virtual void EnableEncryptEverything() OVERRIDE;
+ void EnableEncryptEverything() override;
- virtual void ActivateDataType(
- syncer::ModelType type, syncer::ModelSafeGroup group,
- ChangeProcessor* change_processor) OVERRIDE;
- virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE;
+ void ActivateDataType(
+ syncer::ModelType type,
+ syncer::ModelSafeGroup group,
+ sync_driver::ChangeProcessor* change_processor) override;
+ void DeactivateDataType(syncer::ModelType type) override;
- virtual syncer::UserShare* GetUserShare() const OVERRIDE;
+ syncer::UserShare* GetUserShare() const override;
- virtual Status GetDetailedStatus() OVERRIDE;
+ scoped_ptr<syncer::SyncContextProxy> GetSyncContextProxy() override;
- virtual syncer::sessions::SyncSessionSnapshot
- GetLastSessionSnapshot() const OVERRIDE;
+ Status GetDetailedStatus() override;
- virtual bool HasUnsyncedItems() const OVERRIDE;
+ syncer::sessions::SyncSessionSnapshot GetLastSessionSnapshot() const override;
- virtual bool IsNigoriEnabled() const OVERRIDE;
+ bool HasUnsyncedItems() const override;
- virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE;
+ bool IsNigoriEnabled() const override;
- virtual base::Time GetExplicitPassphraseTime() const OVERRIDE;
+ syncer::PassphraseType GetPassphraseType() const override;
- virtual bool IsCryptographerReady(
- const syncer::BaseTransaction* trans) const OVERRIDE;
+ base::Time GetExplicitPassphraseTime() const override;
- virtual void GetModelSafeRoutingInfo(
- syncer::ModelSafeRoutingInfo* out) const OVERRIDE;
+ bool IsCryptographerReady(
+ const syncer::BaseTransaction* trans) const override;
- virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE;
+ void GetModelSafeRoutingInfo(
+ syncer::ModelSafeRoutingInfo* out) const override;
- virtual void SetForwardProtocolEvents(bool enabled) OVERRIDE;
+ void FlushDirectory() const override;
- virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE;
+ void RequestBufferedProtocolEventsAndEnableForwarding() override;
+ void DisableProtocolEventForwarding() override;
+
+ void EnableDirectoryTypeDebugInfoForwarding() override;
+ void DisableDirectoryTypeDebugInfoForwarding() override;
+
+ void GetAllNodesForTypes(
+ syncer::ModelTypeSet types,
+ base::Callback<void(const std::vector<syncer::ModelType>& type,
+ ScopedVector<base::ListValue>)> callback) override;
+
+ base::MessageLoop* GetSyncLoopForTesting() override;
void set_fail_initial_download(bool should_fail);