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

Unified Diff: sync/test/engine/syncer_command_test.h

Issue 10559104: sync: Process 'control' data separately (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename, cleanup, fix tests Created 8 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 | « sync/syncable/model_type.cc ('k') | sync/test/engine/syncer_command_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/syncer_command_test.h
diff --git a/sync/test/engine/syncer_command_test.h b/sync/test/engine/syncer_command_test.h
index e519b6b1d78c8ba55791ea6fe4eae3621dbf064a..e34b05730e08abacd853793b3263cd63b79f4a25 100644
--- a/sync/test/engine/syncer_command_test.h
+++ b/sync/test/engine/syncer_command_test.h
@@ -193,6 +193,19 @@ class SyncerCommandTestBase : public testing::Test,
command.GetGroupsToChangeForTest(*session()));
}
+ void ExpectGroupsToChange(
+ const ModelChangingSyncerCommand& command,
+ ModelSafeGroup group1, ModelSafeGroup group2,
+ ModelSafeGroup group3, ModelSafeGroup group4) {
+ std::set<ModelSafeGroup> expected_groups_to_change;
+ expected_groups_to_change.insert(group1);
+ expected_groups_to_change.insert(group2);
+ expected_groups_to_change.insert(group3);
+ expected_groups_to_change.insert(group4);
+ EXPECT_EQ(expected_groups_to_change,
+ command.GetGroupsToChangeForTest(*session()));
+ }
+
private:
MessageLoop message_loop_;
scoped_ptr<sessions::SyncSessionContext> context_;
« no previous file with comments | « sync/syncable/model_type.cc ('k') | sync/test/engine/syncer_command_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698