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

Unified Diff: chrome/browser/sync/profile_sync_service_startup_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
Index: chrome/browser/sync/profile_sync_service_startup_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_startup_unittest.cc b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
index 04ae1f96faa743b446aa353cd31b2389e2a045d3..b5a773bb09c6be0de0b12d67d4aea00e147c77e5 100644
--- a/chrome/browser/sync/profile_sync_service_startup_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
@@ -127,9 +127,8 @@ TEST_F(ProfileSyncServiceStartupTest, StartFirstTime) {
profile_->GetTokenService()->IssueAuthTokenForTest(
GaiaConstants::kGaiaOAuth2LoginRefreshToken, "oauth2_login_token");
- syncable::ModelTypeSet set;
- set.insert(syncable::BOOKMARKS);
- service_->OnUserChoseDatatypes(false, set);
+ service_->OnUserChoseDatatypes(
+ false, syncable::ModelEnumSet(syncable::BOOKMARKS));
EXPECT_TRUE(service_->ShouldPushChanges());
}
@@ -278,7 +277,7 @@ TEST_F(ProfileSyncServiceStartupTest, StartFailure) {
errors.push_back(error);
browser_sync::DataTypeManager::ConfigureResult result(
status,
- syncable::ModelTypeSet(),
+ syncable::ModelEnumSet(),
errors);
EXPECT_CALL(*data_type_manager, Configure(_, _)).
WillRepeatedly(

Powered by Google App Engine
This is Rietveld 408576698