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

Unified Diff: components/sync/syncable/model_type_unittest.cc

Issue 2842373004: [sync] Purge directory data when migrating to USS (Closed)
Patch Set: [sync] Add constexpr to EnumSet Created 3 years, 8 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/model_type_unittest.cc
diff --git a/components/sync/syncable/model_type_unittest.cc b/components/sync/syncable/model_type_unittest.cc
index 701f4d3e19c19ae7376055970a370dfb78802cc1..f358a0183c3eb724ed815e27541e2e7e3857ffcb 100644
--- a/components/sync/syncable/model_type_unittest.cc
+++ b/components/sync/syncable/model_type_unittest.cc
@@ -37,7 +37,7 @@ TEST_F(ModelTypeTest, ModelTypeFromValue) {
}
TEST_F(ModelTypeTest, ModelTypeSetToValue) {
- const ModelTypeSet model_types(BOOKMARKS, APPS);
+ const ModelTypeSet model_types({BOOKMARKS, APPS});
std::unique_ptr<base::ListValue> value(ModelTypeSetToValue(model_types));
EXPECT_EQ(2u, value->GetSize());
@@ -114,8 +114,8 @@ TEST_F(ModelTypeTest, ModelTypeHistogramMapping) {
TEST_F(ModelTypeTest, ModelTypeSetFromString) {
ModelTypeSet empty;
- ModelTypeSet one(BOOKMARKS);
- ModelTypeSet two(BOOKMARKS, TYPED_URLS);
+ ModelTypeSet one({BOOKMARKS});
+ ModelTypeSet two({BOOKMARKS, TYPED_URLS});
EXPECT_EQ(empty, ModelTypeSetFromString(ModelTypeSetToString(empty)));
EXPECT_EQ(one, ModelTypeSetFromString(ModelTypeSetToString(one)));
« no previous file with comments | « components/sync/syncable/model_type.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698