| 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 COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; | 52 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; |
| 53 | 53 |
| 54 // Does nothing. | 54 // Does nothing. |
| 55 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback) | 55 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback) |
| 56 OVERRIDE; | 56 OVERRIDE; |
| 57 | 57 |
| 58 #if defined(OS_IOS) | 58 #if defined(OS_IOS) |
| 59 ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake(); | 59 ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake(); |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 // SigninClient overrides: |
| 63 virtual void SetSigninProcess(int host_id) OVERRIDE; |
| 64 virtual void ClearSigninProcess() OVERRIDE; |
| 65 virtual bool IsSigninProcess(int host_id) const OVERRIDE; |
| 66 virtual bool HasSigninProcess() const OVERRIDE; |
| 67 |
| 62 private: | 68 private: |
| 63 // Loads the token database. | 69 // Loads the token database. |
| 64 void LoadDatabase(); | 70 void LoadDatabase(); |
| 65 | 71 |
| 66 base::ScopedTempDir temp_dir_; | 72 base::ScopedTempDir temp_dir_; |
| 67 scoped_refptr<net::TestURLRequestContextGetter> request_context_; | 73 scoped_refptr<net::TestURLRequestContextGetter> request_context_; |
| 68 scoped_refptr<TokenWebData> database_; | 74 scoped_refptr<TokenWebData> database_; |
| 75 int signin_host_id_; |
| 69 | 76 |
| 70 #if defined(OS_IOS) | 77 #if defined(OS_IOS) |
| 71 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; | 78 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; |
| 72 #endif | 79 #endif |
| 73 | 80 |
| 74 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); | 81 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); |
| 75 }; | 82 }; |
| 76 | 83 |
| 77 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 84 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| OLD | NEW |