#include "google_apis/gaia/oauth2_access_token_manager_test_util.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
namespace {
const char kValidTokenResponseFormat[] = …;
const char kValidBoundTokenResponseFormat[] = …;
}
std::string GetValidTokenResponse(const std::string& token, int expiration) { … }
std::string GetValidBoundTokenResponse(const std::string& token,
base::TimeDelta time_to_live,
const std::vector<std::string>& scopes) { … }
TestingOAuth2AccessTokenManagerConsumer::
TestingOAuth2AccessTokenManagerConsumer()
: … { … }
TestingOAuth2AccessTokenManagerConsumer::
~TestingOAuth2AccessTokenManagerConsumer() { … }
void TestingOAuth2AccessTokenManagerConsumer::OnGetTokenSuccess(
const OAuth2AccessTokenManager::Request* request,
const OAuth2AccessTokenConsumer::TokenResponse& token_response) { … }
void TestingOAuth2AccessTokenManagerConsumer::OnGetTokenFailure(
const OAuth2AccessTokenManager::Request* request,
const GoogleServiceAuthError& error) { … }