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

Unified Diff: chrome/browser/sync/notifier/chrome_invalidation_client_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
Index: chrome/browser/sync/notifier/chrome_invalidation_client_unittest.cc
diff --git a/chrome/browser/sync/notifier/chrome_invalidation_client_unittest.cc b/chrome/browser/sync/notifier/chrome_invalidation_client_unittest.cc
index 0c128634c0a8022768cd48c6ac2cbb65f2ce05e3..a3555caac4e684b8e86fa67b46b6f7cbbba5e7f7 100644
--- a/chrome/browser/sync/notifier/chrome_invalidation_client_unittest.cc
+++ b/chrome/browser/sync/notifier/chrome_invalidation_client_unittest.cc
@@ -142,7 +142,7 @@ syncable::ModelTypePayloadMap MakeMap(syncable::ModelType model_type,
return type_payloads;
}
-syncable::ModelTypePayloadMap MakeMapFromSet(syncable::ModelEnumSet types,
+syncable::ModelTypePayloadMap MakeMapFromSet(syncable::ModelTypeSet types,
const std::string& payload) {
return syncable::ModelTypePayloadMapFromEnumSet(types, payload);
}
@@ -150,7 +150,7 @@ syncable::ModelTypePayloadMap MakeMapFromSet(syncable::ModelEnumSet types,
} // namespace
TEST_F(ChromeInvalidationClientTest, InvalidateBadObjectId) {
- syncable::ModelEnumSet types(syncable::BOOKMARKS, syncable::APPS);
+ syncable::ModelTypeSet types(syncable::BOOKMARKS, syncable::APPS);
client_.RegisterTypes(types);
EXPECT_CALL(mock_listener_, OnInvalidate(MakeMapFromSet(types, "")));
FireInvalidate("bad", 1, NULL);
@@ -203,7 +203,7 @@ TEST_F(ChromeInvalidationClientTest, InvalidateUnknownVersion) {
TEST_F(ChromeInvalidationClientTest, InvalidateVersionMultipleTypes) {
using ::testing::Mock;
- syncable::ModelEnumSet types(syncable::BOOKMARKS, syncable::APPS);
+ syncable::ModelTypeSet types(syncable::BOOKMARKS, syncable::APPS);
client_.RegisterTypes(types);
EXPECT_CALL(mock_listener_,
@@ -258,14 +258,14 @@ TEST_F(ChromeInvalidationClientTest, InvalidateVersionMultipleTypes) {
}
TEST_F(ChromeInvalidationClientTest, InvalidateAll) {
- syncable::ModelEnumSet types(syncable::PREFERENCES, syncable::EXTENSIONS);
+ syncable::ModelTypeSet types(syncable::PREFERENCES, syncable::EXTENSIONS);
client_.RegisterTypes(types);
EXPECT_CALL(mock_listener_, OnInvalidate(MakeMapFromSet(types, "")));
FireInvalidateAll();
}
TEST_F(ChromeInvalidationClientTest, RegisterTypes) {
- syncable::ModelEnumSet types(syncable::PREFERENCES, syncable::EXTENSIONS);
+ syncable::ModelTypeSet types(syncable::PREFERENCES, syncable::EXTENSIONS);
client_.RegisterTypes(types);
// Registered types should be preserved across Stop/Start.
TearDown();
« no previous file with comments | « chrome/browser/sync/notifier/chrome_invalidation_client.cc ('k') | chrome/browser/sync/notifier/invalidation_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698