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

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

Issue 10817023: [Sync] Pass the correct set of enabled types to the sync notifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 b0a5d1fea939a7b5ccbc139efa6ce16c9245d9b0..0183c8ffa19f95986c16d3876021fba8772b6477 100644
--- a/sync/internal_api/public/test/fake_sync_manager.h
+++ b/sync/internal_api/public/test/fake_sync_manager.h
@@ -45,6 +45,11 @@ class FakeSyncManager : public SyncManager {
// GetAndResetDownloadedTypes(), or since startup if never called.
ModelTypeSet GetAndResetDownloadedTypes();
+ // Returns those types that have been marked as enabled since the
+ // last call to GetAndResetEnabledTypes(), or since startup if never
+ // called.
+ ModelTypeSet GetAndResetEnabledTypes();
+
// SyncManager implementation.
// Note: we treat whatever message loop this is called from as the sync
// loop for purposes of callbacks.
@@ -115,6 +120,8 @@ class FakeSyncManager : public SyncManager {
ModelTypeSet cleaned_types_;
// The set of types that have been downloaded.
ModelTypeSet downloaded_types_;
+ // The set of types that have been enabled.
+ ModelTypeSet enabled_types_;
// For StopSyncingForShutdown's callback.
MessageLoop* sync_loop_;

Powered by Google App Engine
This is Rietveld 408576698