Lines Matching refs:account_key
31 std::string GetValidTokenInfoResponse(const std::string account_key) {
32 return std::string("{ \"id\": \"") + AccountKeyToObfuscatedId(account_key) +
36 std::string MakeAccessToken(const std::string& account_key) {
37 return "access_token-" + account_key;
53 void StartAccountSignIn(const std::string& account_key);
54 void FinishAccountSignIn(const std::string& account_key);
55 void SignInAccount(const std::string& account_key);
56 void SignOutAccount(const std::string& account_key);
59 void IssueAccessToken(const std::string& account_key);
60 void IssueError(const std::string& account_key);
117 void GCMAccountTrackerTest::StartAccountSignIn(const std::string& account_key) {
118 fake_identity_provider_->LogIn(account_key);
119 fake_token_service_->AddAccount(account_key);
123 const std::string& account_key) {
124 IssueAccessToken(account_key);
130 fetcher->SetResponseString(GetValidTokenInfoResponse(account_key));
134 void GCMAccountTrackerTest::SignInAccount(const std::string& account_key) {
135 StartAccountSignIn(account_key);
136 FinishAccountSignIn(account_key);
139 void GCMAccountTrackerTest::SignOutAccount(const std::string& account_key) {
140 fake_token_service_->RemoveAccount(account_key);
143 void GCMAccountTrackerTest::IssueAccessToken(const std::string& account_key) {
145 account_key, MakeAccessToken(account_key), base::Time::Max());
148 void GCMAccountTrackerTest::IssueError(const std::string& account_key) {
150 account_key,