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

Unified Diff: sync/engine/sync_scheduler_whitebox_unittest.cc

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/sync_scheduler_unittest.cc ('k') | sync/engine/syncer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_whitebox_unittest.cc
diff --git a/sync/engine/sync_scheduler_whitebox_unittest.cc b/sync/engine/sync_scheduler_whitebox_unittest.cc
index 0a9c73e6740c521bafb47f98259cbe162960b0e3..8cf4a37b0c821f3ace86f0b98788e5de01884f01 100644
--- a/sync/engine/sync_scheduler_whitebox_unittest.cc
+++ b/sync/engine/sync_scheduler_whitebox_unittest.cc
@@ -143,17 +143,16 @@ TEST_F(SyncSchedulerWhiteboxTest, SaveNudge) {
TEST_F(SyncSchedulerWhiteboxTest, SaveNudgeWhileTypeThrottled) {
InitializeSyncerOnNormalMode();
- ModelTypeSet types;
- types.Put(BOOKMARKS);
+ const ModelTypeSet types(BOOKMARKS);
// Mark bookmarks as throttled.
context()->throttled_data_type_tracker()->SetUnthrottleTime(
types, base::TimeTicks::Now() + base::TimeDelta::FromHours(2));
- ModelTypeStateMap type_state_map;
- type_state_map.insert(std::make_pair(BOOKMARKS, InvalidationState()));
+ const ModelTypeInvalidationMap& invalidation_map =
+ ModelTypeSetToInvalidationMap(types, std::string());
- SyncSourceInfo info(GetUpdatesCallerInfo::LOCAL, type_state_map);
+ SyncSourceInfo info(GetUpdatesCallerInfo::LOCAL, invalidation_map);
SyncSession* s = scheduler_->CreateSyncSession(info);
// Now schedule a nudge with just bookmarks and the change is local.
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698