| OLD | NEW |
| 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 IOS_TEST_MOCK_PROFILE_OAUTH2_TOKEN_SERVICE_PROVIDER_IOS_H_ | 5 #ifndef IOS_TEST_MOCK_PROFILE_OAUTH2_TOKEN_SERVICE_PROVIDER_IOS_H_ |
| 6 #define IOS_TEST_MOCK_PROFILE_OAUTH2_TOKEN_SERVICE_PROVIDER_IOS_H_ | 6 #define IOS_TEST_MOCK_PROFILE_OAUTH2_TOKEN_SERVICE_PROVIDER_IOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide
r.h" | 14 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide
r.h" |
| 14 | 15 |
| 15 // Mock class of ProfileOAuth2TokenServiceIOSProvider for testing. | 16 // Mock class of ProfileOAuth2TokenServiceIOSProvider for testing. |
| 16 class FakeProfileOAuth2TokenServiceIOSProvider | 17 class FakeProfileOAuth2TokenServiceIOSProvider |
| 17 : public ProfileOAuth2TokenServiceIOSProvider { | 18 : public ProfileOAuth2TokenServiceIOSProvider { |
| 18 public: | 19 public: |
| 19 FakeProfileOAuth2TokenServiceIOSProvider(); | 20 FakeProfileOAuth2TokenServiceIOSProvider(); |
| 20 ~FakeProfileOAuth2TokenServiceIOSProvider() override; | 21 ~FakeProfileOAuth2TokenServiceIOSProvider() override; |
| 21 | 22 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 private: | 43 private: |
| 43 typedef std::pair<std::string, AccessTokenCallback> AccessTokenRequest; | 44 typedef std::pair<std::string, AccessTokenCallback> AccessTokenRequest; |
| 44 | 45 |
| 45 std::vector<AccountInfo> accounts_; | 46 std::vector<AccountInfo> accounts_; |
| 46 std::vector<AccessTokenRequest> requests_; | 47 std::vector<AccessTokenRequest> requests_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenServiceIOSProvider); | 49 DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenServiceIOSProvider); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // IOS_TEST_PROVIDER_CHROME_BROWSER_SIGNIN_MOCK_PROFILE_OAUTH2_TOKEN_SER
VICE_PROVIDER_IOS_H_ | 52 #endif // IOS_TEST_PROVIDER_CHROME_BROWSER_SIGNIN_MOCK_PROFILE_OAUTH2_TOKEN_SER
VICE_PROVIDER_IOS_H_ |
| OLD | NEW |