X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fsync%2Finternal_api%2Fpublic%2Ftest%2Ffake_sync_manager.h;h=edad9b906f52f97efe2e3728d4dda4af4640e16d;hb=refs%2Fchanges%2F05%2F32605%2F1;hp=c8f9f83686f684150b20c3449f3a77132e8d5ebf;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/sync/internal_api/public/test/fake_sync_manager.h b/src/sync/internal_api/public/test/fake_sync_manager.h index c8f9f83..edad9b9 100644 --- a/src/sync/internal_api/public/test/fake_sync_manager.h +++ b/src/sync/internal_api/public/test/fake_sync_manager.h @@ -40,7 +40,7 @@ class FakeSyncManager : public SyncManager { FakeSyncManager(ModelTypeSet initial_sync_ended_types, ModelTypeSet progress_marker_types, ModelTypeSet configure_fail_types); - virtual ~FakeSyncManager(); + ~FakeSyncManager() override; // Returns those types that have been cleaned (purged from the directory) // since the last call to GetAndResetCleanedTypes(), or since startup if never @@ -64,12 +64,12 @@ class FakeSyncManager : public SyncManager { ConfigureReason GetAndResetConfigureReason(); // Posts a method to invalidate the given IDs on the sync thread. - virtual void OnIncomingInvalidation( + void OnIncomingInvalidation( syncer::ModelType type, - scoped_ptr interface) OVERRIDE; + scoped_ptr interface) override; // Posts a method to update the invalidator state on the sync thread. - virtual void SetInvalidatorEnabled(bool invalidator_enabled) OVERRIDE; + void SetInvalidatorEnabled(bool invalidator_enabled) override; // Block until the sync thread has finished processing any pending messages. void WaitForSyncThread(); @@ -77,46 +77,43 @@ class FakeSyncManager : public SyncManager { // SyncManager implementation. // Note: we treat whatever message loop this is called from as the sync // loop for purposes of callbacks. - virtual void Init(InitArgs* args) OVERRIDE; - virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; - virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( - ModelTypeSet types) OVERRIDE; - virtual bool PurgePartiallySyncedTypes() OVERRIDE; - virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; - virtual void StartSyncingNormally( - const ModelSafeRoutingInfo& routing_info) OVERRIDE; - virtual void ConfigureSyncer( - ConfigureReason reason, - ModelTypeSet to_download, - ModelTypeSet to_purge, - ModelTypeSet to_journal, - ModelTypeSet to_unapply, - const ModelSafeRoutingInfo& new_routing_info, - const base::Closure& ready_task, - const base::Closure& retry_task) OVERRIDE; - virtual void AddObserver(Observer* observer) OVERRIDE; - virtual void RemoveObserver(Observer* observer) OVERRIDE; - virtual SyncStatus GetDetailedStatus() const OVERRIDE; - virtual void SaveChanges() OVERRIDE; - virtual void ShutdownOnSyncThread(ShutdownReason reason) OVERRIDE; - virtual UserShare* GetUserShare() OVERRIDE; - virtual syncer::SyncContextProxy* GetSyncContextProxy() OVERRIDE; - virtual const std::string cache_guid() OVERRIDE; - virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; - virtual bool HasUnsyncedItems() OVERRIDE; - virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; - virtual ScopedVector - GetBufferedProtocolEvents() OVERRIDE; - virtual scoped_ptr GetAllNodesForType( - syncer::ModelType type) OVERRIDE; - virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; - virtual void RegisterDirectoryTypeDebugInfoObserver( - syncer::TypeDebugInfoObserver* observer) OVERRIDE; - virtual void UnregisterDirectoryTypeDebugInfoObserver( - syncer::TypeDebugInfoObserver* observer) OVERRIDE; - virtual bool HasDirectoryTypeDebugInfoObserver( - syncer::TypeDebugInfoObserver* observer) OVERRIDE; - virtual void RequestEmitDebugInfo() OVERRIDE; + void Init(InitArgs* args) override; + ModelTypeSet InitialSyncEndedTypes() override; + ModelTypeSet GetTypesWithEmptyProgressMarkerToken( + ModelTypeSet types) override; + bool PurgePartiallySyncedTypes() override; + void UpdateCredentials(const SyncCredentials& credentials) override; + void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info) override; + void ConfigureSyncer(ConfigureReason reason, + ModelTypeSet to_download, + ModelTypeSet to_purge, + ModelTypeSet to_journal, + ModelTypeSet to_unapply, + const ModelSafeRoutingInfo& new_routing_info, + const base::Closure& ready_task, + const base::Closure& retry_task) override; + void AddObserver(Observer* observer) override; + void RemoveObserver(Observer* observer) override; + SyncStatus GetDetailedStatus() const override; + void SaveChanges() override; + void ShutdownOnSyncThread(ShutdownReason reason) override; + UserShare* GetUserShare() override; + syncer::SyncContextProxy* GetSyncContextProxy() override; + const std::string cache_guid() override; + bool ReceivedExperiment(Experiments* experiments) override; + bool HasUnsyncedItems() override; + SyncEncryptionHandler* GetEncryptionHandler() override; + ScopedVector GetBufferedProtocolEvents() override; + scoped_ptr GetAllNodesForType( + syncer::ModelType type) override; + void RefreshTypes(ModelTypeSet types) override; + void RegisterDirectoryTypeDebugInfoObserver( + syncer::TypeDebugInfoObserver* observer) override; + void UnregisterDirectoryTypeDebugInfoObserver( + syncer::TypeDebugInfoObserver* observer) override; + bool HasDirectoryTypeDebugInfoObserver( + syncer::TypeDebugInfoObserver* observer) override; + void RequestEmitDebugInfo() override; private: scoped_refptr sync_task_runner_;