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

Unified Diff: sync/engine/download_unittest.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 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
« no previous file with comments | « sync/engine/download.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('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 c6ce955634140ab9f036a02f999c4285463410a0..9990b7b10296f87c90baa4acbdb52f5d27b2f418 100644
--- a/sync/engine/download_unittest.cc
+++ b/sync/engine/download_unittest.cc
@@ -45,8 +45,7 @@ TEST_F(DownloadUpdatesTest, ExecuteNoStates) {
GetRoutingInfoTypes(routing_info()));
scoped_ptr<sessions::SyncSession> session(
sessions::SyncSession::Build(context(),
- delegate(),
- nudge_tracker.GetSourceInfo()));
+ delegate()));
NormalDownloadUpdates(session.get(),
false,
GetRoutingInfoTypes(routing_info()),
@@ -67,14 +66,23 @@ TEST_F(DownloadUpdatesTest, ExecuteWithStates) {
ModelTypeSetToInvalidationMap(ModelTypeSet(PREFERENCES),
"preferences_payload"));
+ ModelTypeInvalidationMap invalidation_map;
+ Invalidation i1;
+ i1.payload = "autofill_payload";
+ invalidation_map.insert(std::make_pair(AUTOFILL, i1));
+ Invalidation i2;
+ i2.payload = "bookmark_payload";
+ invalidation_map.insert(std::make_pair(BOOKMARKS, i2));
+ Invalidation i3;
+ i3.payload = "preferences_payload";
+ invalidation_map.insert(std::make_pair(PREFERENCES, i3));
+
mock_server()->ExpectGetUpdatesRequestTypes(
GetRoutingInfoTypes(routing_info()));
mock_server()->ExpectGetUpdatesRequestStates(
- nudge_tracker.GetSourceInfo().types);
+ invalidation_map);
scoped_ptr<sessions::SyncSession> session(
- sessions::SyncSession::Build(context(),
- delegate(),
- nudge_tracker.GetSourceInfo()));
+ sessions::SyncSession::Build(context(), delegate()));
NormalDownloadUpdates(session.get(),
false,
GetRoutingInfoTypes(routing_info()),
« no previous file with comments | « sync/engine/download.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698