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

Unified Diff: google_apis/gaia/account_tracker_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: google_apis/gaia/account_tracker_unittest.cc
diff --git a/google_apis/gaia/account_tracker_unittest.cc b/google_apis/gaia/account_tracker_unittest.cc
index 532ed355595e8f640fbe8c6aece4518f5c58ef52..8de5a57ae6497a8b192f1df9eade8456f4645f7c 100644
--- a/google_apis/gaia/account_tracker_unittest.cc
+++ b/google_apis/gaia/account_tracker_unittest.cc
@@ -301,11 +301,12 @@ class IdentityAccountTrackerTest : public testing::Test {
void NotifyLogout() { identity_provider()->LogOut(); }
void NotifyTokenAvailable(const std::string& username) {
- fake_oauth2_token_service_->AddAccount(username);
+ fake_oauth2_token_service_->GetDelegate()->UpdateCredentials(
+ username, "refresh_token");
}
void NotifyTokenRevoked(const std::string& username) {
- fake_oauth2_token_service_->RemoveAccount(username);
+ fake_oauth2_token_service_->GetDelegate()->RevokeCredentials(username);
}
// Helpers to fake access token and user info fetching

Powered by Google App Engine
This is Rietveld 408576698