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

Unified Diff: components/signin/core/browser/account_tracker_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: works for all platforms commit e75a498951318d4deb65d40ce8b2def44cd5abc0 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: components/signin/core/browser/account_tracker_service_unittest.cc
diff --git a/components/signin/core/browser/account_tracker_service_unittest.cc b/components/signin/core/browser/account_tracker_service_unittest.cc
index 626b1028b707861192dfe3c1ef11f00cf16a2442..8c83d0bbe43bdf3a5f39fdcac7b52caa1f05567e 100644
--- a/components/signin/core/browser/account_tracker_service_unittest.cc
+++ b/components/signin/core/browser/account_tracker_service_unittest.cc
@@ -274,11 +274,12 @@ class AccountTrackerServiceTest : public testing::Test {
}
void SimulateTokenAvailable(const std::string& account_id) {
- fake_oauth2_token_service_->AddAccount(account_id);
+ fake_oauth2_token_service_->GetDelegate()->UpdateCredentials(
+ account_id, "refresh_token");
}
void SimulateTokenRevoked(const std::string& account_id) {
- fake_oauth2_token_service_->RemoveAccount(account_id);
+ fake_oauth2_token_service_->GetDelegate()->RevokeCredentials(account_id);
}
// Helpers to fake access token and user info fetching

Powered by Google App Engine
This is Rietveld 408576698