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

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 final comments Created 5 years, 6 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 af496a060a4fdfc447fedda21fa08399b22eec6f..f80b81bad5100a053ce436ca321f0e7b15b6da11 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
@@ -137,7 +137,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");
@@ -430,7 +430,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");
@@ -451,7 +451,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");
@@ -479,7 +479,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");
@@ -506,7 +506,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");
@@ -527,7 +527,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");
@@ -557,7 +557,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");
« no previous file with comments | « chrome/browser/local_discovery/gcd_api_flow_unittest.cc ('k') | chrome/browser/signin/android_profile_oauth2_token_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698