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

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: 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: 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 3ea1ab4119ed87dffbe38cefbd34f07c1370ea6c..13c6549ef646841acc308d07c6eecbfd82f1033c 100644
--- a/components/signin/core/browser/account_tracker_service_unittest.cc
+++ b/components/signin/core/browser/account_tracker_service_unittest.cc
@@ -264,11 +264,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