Index: chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc |
=================================================================== |
--- chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc (revision 105158) |
+++ chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc (working copy) |
@@ -74,10 +74,6 @@ |
MOCK_METHOD1(OnUserInfoSuccess, void(const std::string& email)); |
MOCK_METHOD1(OnUserInfoFailure, void(const GoogleServiceAuthError& error)); |
- |
- MOCK_METHOD0(OnOAuthRevokeTokenSuccess, void()); |
- MOCK_METHOD1(OnOAuthRevokeTokenFailure, |
- void(const GoogleServiceAuthError& error)); |
}; |
class MockGaiaOAuthFetcher : public GaiaOAuthFetcher { |
@@ -204,7 +200,7 @@ |
TestingProfile profile; |
MockGaiaOAuthFetcher oauth_fetcher(&consumer, |
- profile.GetRequestContext(), |
+ profile .GetRequestContext(), |
&profile, |
"service_scope-0fL85iOi"); |
EXPECT_CALL(oauth_fetcher, StartUserInfo(wrap_token)).Times(1); |
@@ -232,7 +228,7 @@ |
TestingProfile profile; |
MockGaiaOAuthFetcher oauth_fetcher(&consumer, |
- profile.GetRequestContext(), |
+ profile .GetRequestContext(), |
&profile, |
"service_scope-Nrj4LmgU"); |
@@ -245,22 +241,3 @@ |
cookies, |
data); |
} |
- |
-TEST_F(GaiaOAuthFetcherTest, OAuthRevokeToken) { |
- const std::string token = "1/OAuth2-Access_Token-nopqrstuvwxyz1234567890"; |
- MockGaiaOAuthConsumer consumer; |
- EXPECT_CALL(consumer, |
- OnOAuthRevokeTokenSuccess()).Times(1); |
- |
- TestingProfile profile; |
- MockGaiaOAuthFetcher oauth_fetcher(&consumer, |
- profile.GetRequestContext(), |
- &profile, |
- "service_scope-Nrj4LmgU"); |
- |
- net::ResponseCookies cookies; |
- net::URLRequestStatus status(net::URLRequestStatus::SUCCESS, 0); |
- GURL url(GaiaUrls::GetInstance()->oauth_revoke_token_url()); |
- oauth_fetcher.OnURLFetchComplete(NULL, url, status, |
- RC_REQUEST_OK, cookies, std::string()); |
-} |