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

Unified Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 12022041: Separate local and remote sync invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments Created 7 years, 11 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
Index: sync/internal_api/public/test/fake_sync_manager.h
diff --git a/sync/internal_api/public/test/fake_sync_manager.h b/sync/internal_api/public/test/fake_sync_manager.h
index 88e63602e3f3de094a646edf25c684eebd87e9c1..cb5af59e4ac36a4dfcfea75d7f26a71261c3edc0 100644
--- a/sync/internal_api/public/test/fake_sync_manager.h
+++ b/sync/internal_api/public/test/fake_sync_manager.h
@@ -54,6 +54,9 @@ class FakeSyncManager : public SyncManager {
// called.
ModelTypeSet GetAndResetEnabledTypes();
+ // Returns the types that have most recently received a refresh request.
+ ModelTypeSet GetLastRefreshRequestTypes();
+
// Posts a method to invalidate the given IDs on the sync thread.
void Invalidate(const ObjectIdInvalidationMap& invalidation_map,
IncomingInvalidationSource source);
@@ -119,6 +122,7 @@ class FakeSyncManager : public SyncManager {
virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE;
virtual bool HasUnsyncedItems() OVERRIDE;
virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE;
+ virtual void RefreshTypes(ModelTypeSet types) OVERRIDE;
private:
void InvalidateOnSyncThread(
@@ -148,6 +152,9 @@ class FakeSyncManager : public SyncManager {
// Faked invalidator state.
InvalidatorRegistrar registrar_;
+ // The types for which a refresh was most recently requested.
+ ModelTypeSet last_refresh_request_types_;
+
scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
TestUserShare test_user_share_;

Powered by Google App Engine
This is Rietveld 408576698