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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address roger's comments Created 5 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/policy/cloud/user_policy_signin_service_unittest.cc
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
index 047dcd9698ff599f611ee442d0aa68071a1dc477..7d2988ebc8bcfe9c95dd473380459f6d07dd93cd 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
@@ -135,7 +135,7 @@ class UserPolicySigninServiceTest : public testing::Test {
// a valid login token, while on other platforms, the login refresh token
// is specified directly.
#if defined(OS_ANDROID)
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
AccountTrackerService::PickAccountIdForAccount(
profile_.get()->GetPrefs(), kTestGaiaId, kTestUser),
"oauth2_login_refresh_token");
@@ -428,7 +428,7 @@ TEST_F(UserPolicySigninServiceSignedInTest, InitWhileSignedIn) {
ASSERT_FALSE(IsRequestActive());
// Make oauth token available.
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
SigninManagerFactory::GetForProfile(profile_.get())
->GetAuthenticatedAccountId(),
"oauth_login_refresh_token");
@@ -449,7 +449,7 @@ TEST_F(UserPolicySigninServiceSignedInTest, InitWhileSignedInOAuthError) {
ASSERT_FALSE(IsRequestActive());
// Make oauth token available.
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
SigninManagerFactory::GetForProfile(profile_.get())
->GetAuthenticatedAccountId(),
"oauth_login_refresh_token");
@@ -477,7 +477,7 @@ TEST_F(UserPolicySigninServiceTest, SignInAfterInit) {
mock_store_->NotifyStoreLoaded();
// Make oauth token available.
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
SigninManagerFactory::GetForProfile(profile_.get())
->GetAuthenticatedAccountId(),
"oauth_login_refresh_token");
@@ -504,7 +504,7 @@ TEST_F(UserPolicySigninServiceTest, SignInWithNonEnterpriseUser) {
mock_store_->NotifyStoreLoaded();
// Make oauth token available.
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
SigninManagerFactory::GetForProfile(profile_.get())
->GetAuthenticatedAccountId(),
"oauth_login_refresh_token");
@@ -525,7 +525,7 @@ TEST_F(UserPolicySigninServiceTest, UnregisteredClient) {
->SetAuthenticatedAccountInfo(kTestGaiaId, kTestUser);
// Make oauth token available.
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
SigninManagerFactory::GetForProfile(profile_.get())
->GetAuthenticatedAccountId(),
"oauth_login_refresh_token");
@@ -555,7 +555,7 @@ TEST_F(UserPolicySigninServiceTest, RegisteredClient) {
->SetAuthenticatedAccountInfo(kTestGaiaId, kTestUser);
// Make oauth token available.
- GetTokenService()->IssueRefreshTokenForUser(
+ GetTokenService()->UpdateCredentials(
SigninManagerFactory::GetForProfile(profile_.get())
->GetAuthenticatedAccountId(),
"oauth_login_refresh_token");

Powered by Google App Engine
This is Rietveld 408576698