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

Unified Diff: sync/test/engine/mock_connection_manager.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/test/engine/mock_connection_manager.h ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_connection_manager.cc
diff --git a/sync/test/engine/mock_connection_manager.cc b/sync/test/engine/mock_connection_manager.cc
index 3739bf3ab8a6018ae663b8f28c9e05847c2fa042..0d4041b26f148b3392941d9069998ae8b17ce866 100644
--- a/sync/test/engine/mock_connection_manager.cc
+++ b/sync/test/engine/mock_connection_manager.cc
@@ -408,8 +408,8 @@ void MockConnectionManager::ProcessGetUpdates(
EXPECT_EQ(expected_filter_.Has(model_type), (progress_marker != NULL))
<< "Syncer requested_types differs from test expectation.";
if (progress_marker) {
- EXPECT_EQ((expected_payloads_.count(model_type) > 0 ?
- expected_payloads_[model_type] :
+ EXPECT_EQ((expected_states_.count(model_type) > 0 ?
+ expected_states_[model_type].payload :
std::string()),
progress_marker->notification_hint());
}
« no previous file with comments | « sync/test/engine/mock_connection_manager.h ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698