diff options
Diffstat (limited to 'google_apis/gaia/fake_gaia.h')
-rw-r--r-- | google_apis/gaia/fake_gaia.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/google_apis/gaia/fake_gaia.h b/google_apis/gaia/fake_gaia.h index e00a80a..ec9ee16 100644 --- a/google_apis/gaia/fake_gaia.h +++ b/google_apis/gaia/fake_gaia.h @@ -170,15 +170,21 @@ class FakeGaia { net::test_server::BasicHttpResponse* http_response); void HandleGetUserInfo(const net::test_server::HttpRequest& request, net::test_server::BasicHttpResponse* http_response); + void HandleOAuthUserInfo(const net::test_server::HttpRequest& request, + net::test_server::BasicHttpResponse* http_response); // Returns the access token associated with |auth_token| that matches the // given |client_id| and |scope_string|. If |scope_string| is empty, the first // token satisfying the other criteria is returned. Returns NULL if no token // matches. - const AccessTokenInfo* FindAccessTokenInfo(const std::string& auth_token, - const std::string& client_id, - const std::string& scope_string) - const; + const AccessTokenInfo* FindAccessTokenInfo( + const std::string& auth_token, + const std::string& client_id, + const std::string& scope_string) const; + + // Returns the access token identified by |access_token| or NULL if not found. + const AccessTokenInfo* GetAccessTokenInfo( + const std::string& access_token) const; MergeSessionParams merge_session_params_; EmailToGaiaIdMap email_to_gaia_id_map_; |