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

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

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove token prefetch. Move UMA counters. Fix some tests. Etc. Created 7 years, 7 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_typed_url_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
index 15b88f181f65b2dff376ef3aa8ae5717ca4e3128..8fe1372ccbbdbab0ee1ce9305dbd27425cd2f372 100644
--- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
@@ -203,6 +203,8 @@ class ProfileSyncServiceTypedUrlTest : public AbstractProfileSyncServiceTest {
token_service_ = static_cast<TokenService*>(
TokenServiceFactory::GetInstance()->SetTestingFactoryAndUse(
&profile_, BuildTokenService));
+ ProfileOAuth2TokenServiceFactory::GetInstance()->SetTestingFactory(
+ &profile_, FakeOAuth2TokenService::BuildTokenService);
sync_service_ = static_cast<TestProfileSyncService*>(
ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(
&profile_, &TestProfileSyncService::BuildAutoStartAsyncInit));
@@ -225,7 +227,7 @@ class ProfileSyncServiceTypedUrlTest : public AbstractProfileSyncServiceTest {
WillOnce(ReturnNewDataTypeManager());
token_service_->IssueAuthTokenForTest(
- GaiaConstants::kSyncService, "token");
+ GaiaConstants::kGaiaOAuth2LoginRefreshToken, "oauth2_login_token");
sync_service_->RegisterDataTypeController(data_type_controller);

Powered by Google App Engine
This is Rietveld 408576698