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

Unified Diff: chrome/browser/services/gcm/gcm_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: 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: chrome/browser/services/gcm/gcm_account_tracker_unittest.cc
diff --git a/chrome/browser/services/gcm/gcm_account_tracker_unittest.cc b/chrome/browser/services/gcm/gcm_account_tracker_unittest.cc
index cf1a10a745323064cde5990be638b02778030ea1..da44d7d8e48d6959770bfaa8a564fbc2771a31ce 100644
--- a/chrome/browser/services/gcm/gcm_account_tracker_unittest.cc
+++ b/chrome/browser/services/gcm/gcm_account_tracker_unittest.cc
@@ -211,7 +211,8 @@ GCMAccountTrackerTest::~GCMAccountTrackerTest() {
void GCMAccountTrackerTest::StartAccountSignIn(const std::string& account_key) {
fake_identity_provider_->LogIn(account_key);
- fake_token_service_->AddAccount(account_key);
+ fake_token_service_->GetDelegate()->UpdateCredentials(account_key,
+ "refresh_token");
}
void GCMAccountTrackerTest::FinishAccountSignIn(
@@ -232,7 +233,7 @@ void GCMAccountTrackerTest::SignInAccount(const std::string& account_key) {
}
void GCMAccountTrackerTest::SignOutAccount(const std::string& account_key) {
- fake_token_service_->RemoveAccount(account_key);
+ fake_token_service_->GetDelegate()->RevokeCredentials(account_key);
}
void GCMAccountTrackerTest::IssueAccessToken(const std::string& account_key) {

Powered by Google App Engine
This is Rietveld 408576698