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

Unified Diff: chrome/browser/signin/fake_profile_oauth2_token_service.h

Issue 284763004: Create AccountServiceFlagFetcher which downloads an account's Gaia service flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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: chrome/browser/signin/fake_profile_oauth2_token_service.h
diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service.h b/chrome/browser/signin/fake_profile_oauth2_token_service.h
index 398d9ae02123a3d04777f6f85c40b67109c3af40..3a3523085ce31847da48ee26ad5650c7077e3ce8 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.h
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.h
@@ -82,6 +82,9 @@ class FakeProfileOAuth2TokenService
void IssueRefreshTokenForUser(const std::string& account_id,
const std::string& token);
+ // Fire OnRefreshTokensLoaded on all observers.
+ void IssueAllRefreshTokensLoaded();
+
// Gets a list of active requests (can be used by tests to validate that the
// correct request has been issued).
std::vector<PendingRequest> GetPendingRequests();
@@ -91,6 +94,10 @@ class FakeProfileOAuth2TokenService
const std::string& access_token,
const base::Time& expiration);
+ void IssueErrorForAllPendingRequestsForAccount(
+ const std::string& account_id,
+ const GoogleServiceAuthError& error);
+
void IssueTokenForScope(const ScopeSet& scopes,
const std::string& access_token,
const base::Time& expiration);

Powered by Google App Engine
This is Rietveld 408576698