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

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: rebase again 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 32cd2739b907ad78494af4cc9b17922498a4feaf..5e86998951214ebcbd40f5b718ee2794361803d0 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);
}
};
@@ -517,10 +517,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());
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service_session_unittest.cc ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698