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

Unified Diff: sync/engine/download_updates_command_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/engine/download_updates_command.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_updates_command_unittest.cc
diff --git a/sync/engine/download_updates_command_unittest.cc b/sync/engine/download_updates_command_unittest.cc
index f7bbcb635cee6da39a08481826c9841783b36546..0b4d5c9e401f9bd0862b509f353cc841ebb0888b 100644
--- a/sync/engine/download_updates_command_unittest.cc
+++ b/sync/engine/download_updates_command_unittest.cc
@@ -39,22 +39,22 @@ class DownloadUpdatesCommandTest : public SyncerCommandTest {
DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesCommandTest);
};
-TEST_F(DownloadUpdatesCommandTest, ExecuteNoPayloads) {
+TEST_F(DownloadUpdatesCommandTest, ExecuteNoStates) {
ConfigureMockServerConnection();
mock_server()->ExpectGetUpdatesRequestTypes(
GetRoutingInfoTypes(routing_info()));
command_.ExecuteImpl(session());
}
-TEST_F(DownloadUpdatesCommandTest, ExecuteWithPayloads) {
+TEST_F(DownloadUpdatesCommandTest, ExecuteWithStates) {
ConfigureMockServerConnection();
sessions::SyncSourceInfo source;
- source.types[AUTOFILL] = "autofill_payload";
- source.types[BOOKMARKS] = "bookmark_payload";
- source.types[PREFERENCES] = "preferences_payload";
+ source.types[AUTOFILL].payload = "autofill_payload";
+ source.types[BOOKMARKS].payload = "bookmark_payload";
+ source.types[PREFERENCES].payload = "preferences_payload";
mock_server()->ExpectGetUpdatesRequestTypes(
GetRoutingInfoTypes(routing_info()));
- mock_server()->ExpectGetUpdatesRequestPayloads(source.types);
+ mock_server()->ExpectGetUpdatesRequestStates(source.types);
command_.ExecuteImpl(session(source));
}
« no previous file with comments | « sync/engine/download_updates_command.cc ('k') | sync/engine/sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698