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

Unified Diff: chrome/browser/sync/syncable/model_type_unittest.cc

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/sync/syncable/model_type_test_util.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/model_type_unittest.cc
diff --git a/chrome/browser/sync/syncable/model_type_unittest.cc b/chrome/browser/sync/syncable/model_type_unittest.cc
index c5b9196b8736d2aa767b63723c6d67168343d0b5..2ade768c48fcef2d1a2cf3377064e9607547c4d4 100644
--- a/chrome/browser/sync/syncable/model_type_unittest.cc
+++ b/chrome/browser/sync/syncable/model_type_unittest.cc
@@ -38,10 +38,10 @@ TEST_F(ModelTypeTest, ModelTypeFromValue) {
}
}
-TEST_F(ModelTypeTest, ModelEnumSetToValue) {
- const ModelEnumSet model_types(syncable::BOOKMARKS, syncable::APPS);
+TEST_F(ModelTypeTest, ModelTypeSetToValue) {
+ const ModelTypeSet model_types(syncable::BOOKMARKS, syncable::APPS);
- scoped_ptr<ListValue> value(ModelEnumSetToValue(model_types));
+ scoped_ptr<ListValue> value(ModelTypeSetToValue(model_types));
EXPECT_EQ(2u, value->GetSize());
std::string types[2];
EXPECT_TRUE(value->GetString(0, &types[0]));
@@ -50,17 +50,17 @@ TEST_F(ModelTypeTest, ModelEnumSetToValue) {
EXPECT_EQ("Apps", types[1]);
}
-TEST_F(ModelTypeTest, ModelEnumSetFromValue) {
+TEST_F(ModelTypeTest, ModelTypeSetFromValue) {
// Try empty set first.
- ModelEnumSet model_types;
- scoped_ptr<ListValue> value(ModelEnumSetToValue(model_types));
- EXPECT_TRUE(model_types.Equals(ModelEnumSetFromValue(*value)));
+ ModelTypeSet model_types;
+ scoped_ptr<ListValue> value(ModelTypeSetToValue(model_types));
+ EXPECT_TRUE(model_types.Equals(ModelTypeSetFromValue(*value)));
// Now try with a few random types.
model_types.Put(BOOKMARKS);
model_types.Put(APPS);
- value.reset(ModelEnumSetToValue(model_types));
- EXPECT_TRUE(model_types.Equals(ModelEnumSetFromValue(*value)));
+ value.reset(ModelTypeSetToValue(model_types));
+ EXPECT_TRUE(model_types.Equals(ModelTypeSetFromValue(*value)));
}
TEST_F(ModelTypeTest, IsRealDataType) {
« no previous file with comments | « chrome/browser/sync/syncable/model_type_test_util.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698