summaryrefslogtreecommitdiffstats
path: root/google_apis/gaia/gaia_oauth_client_unittest.cc
diff options
context:
space:
mode:
authordavidroche@chromium.org <davidroche@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 04:11:34 +0000
committerdavidroche@chromium.org <davidroche@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 04:11:34 +0000
commit5d82f982460d43ec460e06762bf87ae0fb5ffff3 (patch)
tree9cb390af03cb9b18fda88ad6946bb2f09d295f09 /google_apis/gaia/gaia_oauth_client_unittest.cc
parent0309ba5e0dd0cd544c53de98e17b0261d280bafc (diff)
downloadchromium_src-5d82f982460d43ec460e06762bf87ae0fb5ffff3.zip
chromium_src-5d82f982460d43ec460e06762bf87ae0fb5ffff3.tar.gz
chromium_src-5d82f982460d43ec460e06762bf87ae0fb5ffff3.tar.bz2
Better document GaiaOAuthClient via comments and updated method name.
BUG= Review URL: https://chromiumcodereview.appspot.com/17696002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/gaia/gaia_oauth_client_unittest.cc')
-rw-r--r--google_apis/gaia/gaia_oauth_client_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/google_apis/gaia/gaia_oauth_client_unittest.cc b/google_apis/gaia/gaia_oauth_client_unittest.cc
index e91e4f6..acb366a 100644
--- a/google_apis/gaia/gaia_oauth_client_unittest.cc
+++ b/google_apis/gaia/gaia_oauth_client_unittest.cc
@@ -179,7 +179,7 @@ class MockGaiaOAuthClientDelegate : public gaia::GaiaOAuthClient::Delegate {
int expires_in_seconds));
MOCK_METHOD2(OnRefreshTokenResponse, void(const std::string& access_token,
int expires_in_seconds));
- MOCK_METHOD1(OnGetUserInfoResponse, void(const std::string& user_email));
+ MOCK_METHOD1(OnGetUserEmailResponse, void(const std::string& user_email));
MOCK_METHOD0(OnOAuthError, void());
MOCK_METHOD1(OnNetworkError, void(int response_code));
@@ -294,15 +294,15 @@ TEST_F(GaiaOAuthClientTest, RefreshTokenDownscopingSuccess) {
}
-TEST_F(GaiaOAuthClientTest, GetUserInfo) {
+TEST_F(GaiaOAuthClientTest, GetUserEmail) {
MockGaiaOAuthClientDelegate delegate;
- EXPECT_CALL(delegate, OnGetUserInfoResponse(kTestUserEmail)).Times(1);
+ EXPECT_CALL(delegate, OnGetUserEmailResponse(kTestUserEmail)).Times(1);
MockOAuthFetcherFactory factory;
factory.set_results(kDummyUserInfoResult);
GaiaOAuthClient auth(profile_.GetRequestContext());
- auth.GetUserInfo("access_token", 1, &delegate);
+ auth.GetUserEmail("access_token", 1, &delegate);
}
TEST_F(GaiaOAuthClientTest, GetTokenInfo) {