| Index: chrome/browser/sync/profile_sync_service_unittest.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
|
| index 730002fa68bcd638f1d06f7784ebc16a8110f1bc..1a7143d235e3a26dc68c3becae019ed5ac9c2ff6 100644
|
| --- a/chrome/browser/sync/profile_sync_service_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_unittest.cc
|
| @@ -141,12 +141,10 @@ class ProfileSyncServiceTestHarness {
|
| }
|
|
|
| void IssueTestTokens() {
|
| - TokenService* token_service =
|
| - TokenServiceFactory::GetForProfile(profile.get());
|
| - token_service->IssueAuthTokenForTest(
|
| - GaiaConstants::kGaiaOAuth2LoginRefreshToken, "oauth2_login_token");
|
| - token_service->IssueAuthTokenForTest(
|
| - GaiaConstants::kSyncService, "token");
|
| + ProfileOAuth2TokenServiceFactory::GetForProfile(profile.get())
|
| + ->UpdateCredentials("test", "oauth2_login_token");
|
| + TokenServiceFactory::GetForProfile(profile.get())
|
| + ->IssueAuthTokenForTest(GaiaConstants::kSyncService, "token");
|
| }
|
|
|
| scoped_ptr<TestProfileSyncService> service;
|
| @@ -296,7 +294,7 @@ TEST_F(ProfileSyncServiceTest, DisableAndEnableSyncTemporarily) {
|
| TEST_F(ProfileSyncServiceTest, EnableSyncAndSignOut) {
|
| SigninManager* signin =
|
| SigninManagerFactory::GetForProfile(harness_.profile.get());
|
| - signin->SetAuthenticatedUsername("test@test.com");
|
| + signin->SetAuthenticatedUsername("test");
|
| ProfileSyncComponentsFactoryMock* factory =
|
| new ProfileSyncComponentsFactoryMock();
|
| harness_.service.reset(new TestProfileSyncService(
|
|
|