OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ | 5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ |
6 #define COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ | 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
9 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" | 10 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" |
10 | 11 |
11 class FakeProfileOAuth2TokenServiceIOSDelegate | 12 class FakeProfileOAuth2TokenServiceIOSDelegate |
12 : public ProfileOAuth2TokenServiceIOSDelegate { | 13 : public ProfileOAuth2TokenServiceIOSDelegate { |
13 public: | 14 public: |
14 FakeProfileOAuth2TokenServiceIOSDelegate( | 15 FakeProfileOAuth2TokenServiceIOSDelegate( |
15 SigninClient* client, | 16 SigninClient* client, |
16 ProfileOAuth2TokenServiceIOSProvider* provider, | 17 ProfileOAuth2TokenServiceIOSProvider* provider, |
17 AccountTrackerService* account_tracker_service, | 18 AccountTrackerService* account_tracker_service, |
(...skipping 28 matching lines...) Expand all Loading... |
46 // ProfileOAuth2TokenService from multiple threads in upstream code. | 47 // ProfileOAuth2TokenService from multiple threads in upstream code. |
47 base::ThreadChecker thread_checker_; | 48 base::ThreadChecker thread_checker_; |
48 | 49 |
49 // Maps account ids to their refresh token strings. | 50 // Maps account ids to their refresh token strings. |
50 std::map<std::string, std::string> refresh_tokens_; | 51 std::map<std::string, std::string> refresh_tokens_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenServiceIOSDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenServiceIOSDelegate); |
53 }; | 54 }; |
54 | 55 |
55 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_D
ELEGATE_H_ | 56 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_D
ELEGATE_H_ |
OLD | NEW |