Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: sync/api/fake_sync_change_processor.h

Issue 151963002: Remove duplicated code from sync related unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed a const qualifier. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/themes/theme_syncable_service_unittest.cc ('k') | sync/api/fake_sync_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/fake_sync_change_processor.h
diff --git a/sync/api/fake_sync_change_processor.h b/sync/api/fake_sync_change_processor.h
index 7ec8084199f32eb2a233c0c90ea91c620de2b9b3..d844493893c615bec4607efebafd2917430fe623 100644
--- a/sync/api/fake_sync_change_processor.h
+++ b/sync/api/fake_sync_change_processor.h
@@ -14,12 +14,27 @@ class FakeSyncChangeProcessor : public SyncChangeProcessor {
FakeSyncChangeProcessor();
virtual ~FakeSyncChangeProcessor();
+ // SyncChangeProcessor implementation.
+ //
+ // ProcessSyncChanges will accumulate changes in changes() until they are
+ // cleared.
virtual syncer::SyncError ProcessSyncChanges(
const tracked_objects::Location& from_here,
const syncer::SyncChangeList& change_list) OVERRIDE;
+ // SyncChangeProcessor implementation.
+ //
+ // Returns an empty list.
virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type)
const OVERRIDE;
+
+ virtual const syncer::SyncChangeList& changes() const;
+ virtual syncer::SyncChangeList& changes();
+
+ private:
+ syncer::SyncChangeList change_list_;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeSyncChangeProcessor);
};
} // namespace syncer
« no previous file with comments | « chrome/browser/themes/theme_syncable_service_unittest.cc ('k') | sync/api/fake_sync_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698