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

Unified Diff: components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (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
Index: components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm b/components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm
index 8668b29a57170147d70bad596dc5cc3c4a4e0c1c..11e9840d8217767ddfd2b3b376d94fca0653e293 100644
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm
@@ -26,7 +26,7 @@ class ProfileOAuth2TokenServiceIOSTest : public testing::Test,
access_token_failure_(0),
last_access_token_error_(GoogleServiceAuthError::NONE) {}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
factory_.SetFakeResponse(GaiaUrls::GetInstance()->oauth2_revoke_url(),
"",
net::HTTP_OK,
@@ -36,7 +36,7 @@ class ProfileOAuth2TokenServiceIOSTest : public testing::Test,
oauth2_service_.AddObserver(this);
}
- virtual void TearDown() OVERRIDE {
+ virtual void TearDown() override {
oauth2_service_.RemoveObserver(this);
oauth2_service_.Shutdown();
}
@@ -44,24 +44,24 @@ class ProfileOAuth2TokenServiceIOSTest : public testing::Test,
// OAuth2TokenService::Consumer implementation.
virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
const std::string& access_token,
- const base::Time& expiration_time) OVERRIDE {
+ const base::Time& expiration_time) override {
++access_token_success_;
}
virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request,
- const GoogleServiceAuthError& error) OVERRIDE {
+ const GoogleServiceAuthError& error) override {
++access_token_failure_;
last_access_token_error_ = error;
};
// OAuth2TokenService::Observer implementation.
- virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE {
+ virtual void OnRefreshTokenAvailable(const std::string& account_id) override {
++token_available_count_;
}
- virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE {
+ virtual void OnRefreshTokenRevoked(const std::string& account_id) override {
++token_revoked_count_;
}
- virtual void OnRefreshTokensLoaded() OVERRIDE { ++tokens_loaded_count_; }
+ virtual void OnRefreshTokensLoaded() override { ++tokens_loaded_count_; }
void ResetObserverCounts() {
token_available_count_ = 0;

Powered by Google App Engine
This is Rietveld 408576698