| 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 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_pr
ovider.h" | 5 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_pr
ovider.h" |
| 6 | 6 |
| 7 #include <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| 11 | 11 |
| 12 FakeProfileOAuth2TokenServiceIOSProvider:: | 12 FakeProfileOAuth2TokenServiceIOSProvider:: |
| 13 FakeProfileOAuth2TokenServiceIOSProvider() { | 13 FakeProfileOAuth2TokenServiceIOSProvider() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 FakeProfileOAuth2TokenServiceIOSProvider:: | 16 FakeProfileOAuth2TokenServiceIOSProvider:: |
| 17 ~FakeProfileOAuth2TokenServiceIOSProvider() { | 17 ~FakeProfileOAuth2TokenServiceIOSProvider() { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 requests_.clear(); | 71 requests_.clear(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 AuthenticationErrorCategory | 74 AuthenticationErrorCategory |
| 75 FakeProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory( | 75 FakeProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory( |
| 76 const std::string& gaia_id, | 76 const std::string& gaia_id, |
| 77 NSError* error) const { | 77 NSError* error) const { |
| 78 DCHECK(error); | 78 DCHECK(error); |
| 79 return kAuthenticationErrorCategoryAuthorizationErrors; | 79 return kAuthenticationErrorCategoryAuthorizationErrors; |
| 80 } | 80 } |
| OLD | NEW |