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

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

Issue 8851006: [Sync] Replace all instances of ModelTypeSet with ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup pass #2 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/engine/nigori_util.cc ('k') | chrome/browser/sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/nigori_util_unittest.cc
diff --git a/chrome/browser/sync/engine/nigori_util_unittest.cc b/chrome/browser/sync/engine/nigori_util_unittest.cc
index c98498511c6d4b4c9dfdd3a33a2146f98a207073..6ec2291fc6d84272c901ba97a0f6cd6bdc9592a4 100644
--- a/chrome/browser/sync/engine/nigori_util_unittest.cc
+++ b/chrome/browser/sync/engine/nigori_util_unittest.cc
@@ -12,12 +12,12 @@ namespace syncable {
typedef testing::Test NigoriUtilTest;
TEST(NigoriUtilTest, SpecificsNeedsEncryption) {
- ModelTypeSet encrypted_types;
- encrypted_types.insert(BOOKMARKS);
- encrypted_types.insert(PASSWORDS);
+ ModelEnumSet encrypted_types;
+ encrypted_types.Put(BOOKMARKS);
+ encrypted_types.Put(PASSWORDS);
sync_pb::EntitySpecifics specifics;
- EXPECT_FALSE(SpecificsNeedsEncryption(ModelTypeSet(), specifics));
+ EXPECT_FALSE(SpecificsNeedsEncryption(ModelEnumSet(), specifics));
EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, specifics));
AddDefaultExtensionValue(PREFERENCES, &specifics);
@@ -30,11 +30,11 @@ TEST(NigoriUtilTest, SpecificsNeedsEncryption) {
bookmark_specifics.MutableExtension(sync_pb::bookmark)->set_title("title");
bookmark_specifics.MutableExtension(sync_pb::bookmark)->set_url("url");
EXPECT_TRUE(SpecificsNeedsEncryption(encrypted_types, bookmark_specifics));
- EXPECT_FALSE(SpecificsNeedsEncryption(ModelTypeSet(), bookmark_specifics));
+ EXPECT_FALSE(SpecificsNeedsEncryption(ModelEnumSet(), bookmark_specifics));
bookmark_specifics.mutable_encrypted();
EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, bookmark_specifics));
- EXPECT_FALSE(SpecificsNeedsEncryption(ModelTypeSet(), bookmark_specifics));
+ EXPECT_FALSE(SpecificsNeedsEncryption(ModelEnumSet(), bookmark_specifics));
sync_pb::EntitySpecifics password_specifics;
AddDefaultExtensionValue(PASSWORDS, &password_specifics);
« no previous file with comments | « chrome/browser/sync/engine/nigori_util.cc ('k') | chrome/browser/sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698