Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: google_apis/gaia/oauth2_token_service_unittest.cc

Issue 649283003: Standardize usage of virtual/override/final in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/gaia/oauth2_token_service_test_util.h ('k') | google_apis/gaia/ubertoken_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/oauth2_token_service_unittest.cc
diff --git a/google_apis/gaia/oauth2_token_service_unittest.cc b/google_apis/gaia/oauth2_token_service_unittest.cc
index 71c8d328ae9c51a13d3ed1528fa9c5341ca4c7ee..153db6575457d8499604c3319af93f8c615f3516 100644
--- a/google_apis/gaia/oauth2_token_service_unittest.cc
+++ b/google_apis/gaia/oauth2_token_service_unittest.cc
@@ -27,10 +27,10 @@ class RetryingTestingOAuth2TokenServiceConsumer
const std::string& account_id)
: oauth2_service_(oauth2_service),
account_id_(account_id) {}
- virtual ~RetryingTestingOAuth2TokenServiceConsumer() {}
+ ~RetryingTestingOAuth2TokenServiceConsumer() override {}
- virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request,
- const GoogleServiceAuthError& error) override {
+ void OnGetTokenFailure(const OAuth2TokenService::Request* request,
+ const GoogleServiceAuthError& error) override {
TestingOAuth2TokenServiceConsumer::OnGetTokenFailure(request, error);
request_.reset(oauth2_service_->StartRequest(
account_id_, OAuth2TokenService::ScopeSet(), this).release());
@@ -62,8 +62,7 @@ class TestOAuth2TokenService : public OAuth2TokenService {
refresh_tokens_[account_id] = refresh_token;
}
- virtual bool RefreshTokenIsAvailable(const std::string& account_id) const
- override {
+ bool RefreshTokenIsAvailable(const std::string& account_id) const override {
std::map<std::string, std::string>::const_iterator it =
refresh_tokens_.find(account_id);
@@ -72,11 +71,11 @@ class TestOAuth2TokenService : public OAuth2TokenService {
private:
// OAuth2TokenService implementation.
- virtual net::URLRequestContextGetter* GetRequestContext() override {
+ net::URLRequestContextGetter* GetRequestContext() override {
return request_context_getter_.get();
}
- virtual OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
+ OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
const std::string& account_id,
net::URLRequestContextGetter* getter,
OAuth2AccessTokenConsumer* consumer) override {
« no previous file with comments | « google_apis/gaia/oauth2_token_service_test_util.h ('k') | google_apis/gaia/ubertoken_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698