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

Unified Diff: chrome/browser/sync/engine/model_safe_worker_unittest.cc

Issue 8772074: [Sync] Convert syncable/ directory to ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 9 years 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: chrome/browser/sync/engine/model_safe_worker_unittest.cc
diff --git a/chrome/browser/sync/engine/model_safe_worker_unittest.cc b/chrome/browser/sync/engine/model_safe_worker_unittest.cc
index 0fe381f331fb98be78825e337e976eeeedf5f1b4..d701e36179bb56c77c030326a25588814d221a2c 100644
--- a/chrome/browser/sync/engine/model_safe_worker_unittest.cc
+++ b/chrome/browser/sync/engine/model_safe_worker_unittest.cc
@@ -44,11 +44,11 @@ TEST_F(ModelSafeWorkerTest, GetRoutingInfoTypes) {
routing_info[syncable::BOOKMARKS] = GROUP_PASSIVE;
routing_info[syncable::NIGORI] = GROUP_UI;
routing_info[syncable::PREFERENCES] = GROUP_DB;
- syncable::ModelTypeSet expected_types;
- expected_types.insert(syncable::BOOKMARKS);
- expected_types.insert(syncable::NIGORI);
- expected_types.insert(syncable::PREFERENCES);
- EXPECT_EQ(expected_types, GetRoutingInfoTypes(routing_info));
+ const syncable::ModelEnumSet expected_types(
+ syncable::BOOKMARKS,
+ syncable::NIGORI,
+ syncable::PREFERENCES);
+ EXPECT_TRUE(GetRoutingInfoTypes(routing_info).Equals(expected_types));
}
} // namespace
« no previous file with comments | « chrome/browser/sync/engine/model_safe_worker.cc ('k') | chrome/browser/sync/engine/store_timestamps_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698