Index: chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
index 2418abe9c900d7c537883fc140f1ee30afc5463c..b51f9bbfebd3a1f69ead0c650155bc1f096b5967 100644 |
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
@@ -489,6 +489,8 @@ class ProfileSyncServiceAutofillTest |
token_service_ = static_cast<TokenService*>( |
TokenServiceFactory::GetInstance()->SetTestingFactoryAndUse( |
profile_.get(), BuildTokenService)); |
+ ProfileOAuth2TokenServiceFactory::GetInstance()->SetTestingFactory( |
+ profile_.get(), FakeOAuth2TokenService::BuildTokenService); |
EXPECT_CALL(*personal_data_manager_, LoadProfiles()).Times(1); |
EXPECT_CALL(*personal_data_manager_, LoadCreditCards()).Times(1); |
@@ -550,7 +552,8 @@ class ProfileSyncServiceAutofillTest |
WillRepeatedly(Return(true)); |
// We need tokens to get the tests going |
- token_service_->IssueAuthTokenForTest(GaiaConstants::kSyncService, "token"); |
+ token_service_->IssueAuthTokenForTest( |
+ GaiaConstants::kGaiaOAuth2LoginRefreshToken, "oauth2_login_token"); |
sync_service_->RegisterDataTypeController(data_type_controller); |
sync_service_->Initialize(); |