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

Unified Diff: sync/engine/download_unittest.cc

Issue 23238005: sync: Remove ModelTypeInvalidationMap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort entries in gyp files Created 7 years, 4 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 | « sync/engine/download.cc ('k') | sync/engine/sync_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/download_unittest.cc
diff --git a/sync/engine/download_unittest.cc b/sync/engine/download_unittest.cc
index 5ea5c142e5467c2f78a78a2241ee4d7463bcd683..6aac31d51b87651dddddb2ca6346426a1e33e4e8 100644
--- a/sync/engine/download_unittest.cc
+++ b/sync/engine/download_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "sync/engine/download.h"
+#include "sync/internal_api/public/base/model_type_test_util.h"
#include "sync/protocol/sync.pb.h"
#include "sync/sessions/nudge_tracker.h"
#include "sync/test/engine/fake_model_worker.h"
@@ -78,14 +79,11 @@ TEST_F(DownloadUpdatesTest, ExecuteNoStates) {
TEST_F(DownloadUpdatesTest, ExecuteWithStates) {
sessions::NudgeTracker nudge_tracker;
nudge_tracker.RecordRemoteInvalidation(
- ModelTypeSetToInvalidationMap(ModelTypeSet(AUTOFILL),
- "autofill_payload"));
+ BuildInvalidationMap(AUTOFILL, 1, "autofill_payload"));
nudge_tracker.RecordRemoteInvalidation(
- ModelTypeSetToInvalidationMap(ModelTypeSet(BOOKMARKS),
- "bookmark_payload"));
+ BuildInvalidationMap(BOOKMARKS, 1, "bookmark_payload"));
nudge_tracker.RecordRemoteInvalidation(
- ModelTypeSetToInvalidationMap(ModelTypeSet(PREFERENCES),
- "preferences_payload"));
+ BuildInvalidationMap(PREFERENCES, 1, "preferences_payload"));
ModelTypeSet notified_types;
notified_types.Put(AUTOFILL);
notified_types.Put(BOOKMARKS);
« no previous file with comments | « sync/engine/download.cc ('k') | sync/engine/sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698