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

Side by Side Diff: google_apis/gaia/fake_identity_provider.h

Issue 625293003: replace OVERRIDE and FINAL with override and final in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase on master 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_ 5 #ifndef GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_
6 #define GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_ 6 #define GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "google_apis/gaia/identity_provider.h" 12 #include "google_apis/gaia/identity_provider.h"
13 13
14 class OAuth2TokenService; 14 class OAuth2TokenService;
15 15
16 // Fake identity provider implementation. 16 // Fake identity provider implementation.
17 class FakeIdentityProvider : public IdentityProvider { 17 class FakeIdentityProvider : public IdentityProvider {
18 public: 18 public:
19 explicit FakeIdentityProvider(OAuth2TokenService* token_service); 19 explicit FakeIdentityProvider(OAuth2TokenService* token_service);
20 virtual ~FakeIdentityProvider(); 20 virtual ~FakeIdentityProvider();
21 21
22 void LogIn(const std::string& account_id); 22 void LogIn(const std::string& account_id);
23 void LogOut(); 23 void LogOut();
24 24
25 // IdentityProvider: 25 // IdentityProvider:
26 virtual std::string GetActiveUsername() OVERRIDE; 26 virtual std::string GetActiveUsername() override;
27 virtual std::string GetActiveAccountId() OVERRIDE; 27 virtual std::string GetActiveAccountId() override;
28 virtual OAuth2TokenService* GetTokenService() OVERRIDE; 28 virtual OAuth2TokenService* GetTokenService() override;
29 virtual bool RequestLogin() OVERRIDE; 29 virtual bool RequestLogin() override;
30 30
31 private: 31 private:
32 std::string account_id_; 32 std::string account_id_;
33 OAuth2TokenService* token_service_; 33 OAuth2TokenService* token_service_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(FakeIdentityProvider); 35 DISALLOW_COPY_AND_ASSIGN(FakeIdentityProvider);
36 }; 36 };
37 37
38 #endif // GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_ 38 #endif // GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_
OLDNEW
« no previous file with comments | « google_apis/gaia/account_tracker_unittest.cc ('k') | google_apis/gaia/fake_oauth2_token_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698