FakeProfileOAuth2TokenService::PendingRequest::~PendingRequest() {
}
-// static
-BrowserContextKeyedService* FakeProfileOAuth2TokenService::Build(
- content::BrowserContext* profile) {
- FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
- service->Initialize(reinterpret_cast<Profile*>(profile));
- return service;
-}
-
-BrowserContextKeyedService*
-FakeProfileOAuth2TokenService::BuildAutoIssuingTokenService(
- content::BrowserContext* profile) {
- FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
- service->set_auto_post_fetch_response_on_message_loop(true);
- service->Initialize(reinterpret_cast<Profile*>(profile));
- return service;
-}
-
FakeProfileOAuth2TokenService::FakeProfileOAuth2TokenService()
: auto_post_fetch_response_on_message_loop_(false) {
SigninAccountIdHelper::SetDisableForTest(true);
return !GetRefreshToken(account_id).empty();
}
+void FakeProfileOAuth2TokenService::LoadCredentials(
+ const std::string& primary_account_id) {
+ // Empty implementation as FakeProfileOAuth2TokenService does not have any
+ // credentials to load.
+}
+
std::vector<std::string> FakeProfileOAuth2TokenService::GetAccounts() {
std::vector<std::string> account_ids;
for (std::map<std::string, std::string>::const_iterator iter =
std::string();
}
+net::URLRequestContextGetter*
+FakeProfileOAuth2TokenService::GetRequestContext() {
+ return NULL;
+}
+
std::vector<FakeProfileOAuth2TokenService::PendingRequest>
FakeProfileOAuth2TokenService::GetPendingRequests() {
std::vector<PendingRequest> valid_requests;