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

Unified Diff: components/sync/test/engine/mock_connection_manager.cc

Issue 2916133002: [Sync] Support commit only types. (Closed)
Patch Set: Rebase again. Created 3 years, 6 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 | « components/sync/syncable/model_type.cc ('k') | components/sync/user_events/user_event_sync_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/test/engine/mock_connection_manager.cc
diff --git a/components/sync/test/engine/mock_connection_manager.cc b/components/sync/test/engine/mock_connection_manager.cc
index 64952a5450d130e250f1d377bc265b64e50e698c..19b88792d500c971f85b68c62663f610a640d8dc 100644
--- a/components/sync/test/engine/mock_connection_manager.cc
+++ b/components/sync/test/engine/mock_connection_manager.cc
@@ -549,9 +549,12 @@ void MockConnectionManager::ProcessGetUpdates(
std::string token = response->get_updates().new_progress_marker(0).token();
response->mutable_get_updates()->clear_new_progress_marker();
for (int i = 0; i < gu.from_progress_marker_size(); ++i) {
+ int data_type_id = gu.from_progress_marker(i).data_type_id();
+ EXPECT_TRUE(expected_filter_.Has(
+ GetModelTypeFromSpecificsFieldNumber(data_type_id)));
sync_pb::DataTypeProgressMarker* new_marker =
response->mutable_get_updates()->add_new_progress_marker();
- new_marker->set_data_type_id(gu.from_progress_marker(i).data_type_id());
+ new_marker->set_data_type_id(data_type_id);
new_marker->set_token(token);
}
« no previous file with comments | « components/sync/syncable/model_type.cc ('k') | components/sync/user_events/user_event_sync_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698