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

Unified Diff: sync/sessions/session_state_unittest.cc

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 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/notifier/sync_notifier_registrar_unittest.cc ('k') | sync/sessions/sync_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/session_state_unittest.cc
diff --git a/sync/sessions/session_state_unittest.cc b/sync/sessions/session_state_unittest.cc
index 5685e2809ee0dbc061c2efc7a605c0d36fde72d1..1069e9425c3455ba9925a5de2b26d9840d209239 100644
--- a/sync/sessions/session_state_unittest.cc
+++ b/sync/sessions/session_state_unittest.cc
@@ -30,11 +30,11 @@ class SessionStateTest : public testing::Test {};
TEST_F(SessionStateTest, SyncSourceInfoToValue) {
sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source =
sync_pb::GetUpdatesCallerInfo::PERIODIC;
- ModelTypePayloadMap types;
- types[PREFERENCES] = "preferencespayload";
- types[EXTENSIONS] = "";
+ ModelTypeStateMap types;
+ types[PREFERENCES].payload = "preferencespayload";
+ types[EXTENSIONS].payload = "";
scoped_ptr<DictionaryValue> expected_types_value(
- ModelTypePayloadMapToValue(types));
+ ModelTypeStateMapToValue(types));
SyncSourceInfo source_info(updates_source, types);
@@ -61,11 +61,11 @@ TEST_F(SessionStateTest, SyncSessionSnapshotToValue) {
scoped_ptr<ListValue> expected_initial_sync_ended_value(
ModelTypeSetToValue(initial_sync_ended));
- ModelTypePayloadMap download_progress_markers;
- download_progress_markers[BOOKMARKS] = "test";
- download_progress_markers[APPS] = "apps";
+ ModelTypeStateMap download_progress_markers;
+ download_progress_markers[BOOKMARKS].payload = "test";
+ download_progress_markers[APPS].payload = "apps";
scoped_ptr<DictionaryValue> expected_download_progress_markers_value(
- ModelTypePayloadMapToValue(download_progress_markers));
+ ModelTypeStateMapToValue(download_progress_markers));
const bool kHasMoreToSync = false;
const bool kIsSilenced = true;
« no previous file with comments | « sync/notifier/sync_notifier_registrar_unittest.cc ('k') | sync/sessions/sync_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698