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

Unified Diff: chrome/browser/sync/profile_sync_service_startup_unittest.cc

Issue 162443004: sync: final pieces to sync deferred initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 10 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
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 8553c3b210aec51b2cdc4444a5d368d1feeb01fe..d1a710fdde0330d8080b738f00f6341e17c35b6d 100644
--- a/chrome/browser/sync/profile_sync_service_startup_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
@@ -99,7 +99,7 @@ class ProfileSyncServiceStartupTest : public testing::Test {
new ManagedUserSigninManagerWrapper(
SigninManagerFactory::GetForProfile(profile)),
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
- ProfileSyncService::MANUAL_START);
+ browser_sync::MANUAL_START);
}
void CreateSyncService() {
@@ -167,7 +167,7 @@ class ProfileSyncServiceStartupCrosTest : public ProfileSyncServiceStartupTest {
profile,
new ManagedUserSigninManagerWrapper(signin),
oauth2_token_service,
- ProfileSyncService::AUTO_START);
+ browser_sync::AUTO_START);
}
};
@@ -510,10 +510,10 @@ TEST_F(ProfileSyncServiceStartupTest, StartDownloadFailed) {
profile_->GetPrefs()->ClearPref(prefs::kSyncHasSetupCompleted);
EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber());
- IssueTestTokens();
+ sync_->Initialize();
sync_->SetSetupInProgress(true);
- sync_->Initialize();
+ IssueTestTokens();
sync_->SetSetupInProgress(false);
EXPECT_FALSE(sync_->sync_initialized());
}

Powered by Google App Engine
This is Rietveld 408576698