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

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

Issue 10825137: FYI: Control Data + Per-Device Metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PER_USER_METADATA, refactor some encryption code 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
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 803ef18e4fab0b76b5afc0c90826f692e8cc2e31..8c9da7a61b7a41bcf7b37707fdc8c1efc28e2ffd 100644
--- a/sync/test/engine/syncer_command_test.h
+++ b/sync/test/engine/syncer_command_test.h
@@ -192,6 +192,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_;

Powered by Google App Engine
This is Rietveld 408576698