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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Returns a TestURLRequestContextGetter or an manually provided | 60 // Returns a TestURLRequestContextGetter or an manually provided |
61 // URLRequestContextGetter. | 61 // URLRequestContextGetter. |
62 net::URLRequestContextGetter* GetURLRequestContext() override; | 62 net::URLRequestContextGetter* GetURLRequestContext() override; |
63 | 63 |
64 // For testing purposes, can override the TestURLRequestContextGetter created | 64 // For testing purposes, can override the TestURLRequestContextGetter created |
65 // in the default constructor. | 65 // in the default constructor. |
66 void SetURLRequestContext(net::URLRequestContextGetter* request_context); | 66 void SetURLRequestContext(net::URLRequestContextGetter* request_context); |
67 | 67 |
68 #if defined(OS_IOS) | 68 #if defined(OS_IOS) |
69 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() override; | 69 ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() override; |
70 #endif | 70 #endif |
71 | 71 |
72 // Returns true. | 72 // Returns true. |
73 bool ShouldMergeSigninCredentialsIntoCookieJar() override; | 73 bool ShouldMergeSigninCredentialsIntoCookieJar() override; |
74 | 74 |
75 // Registers |callback| and returns the subscription. | 75 // Registers |callback| and returns the subscription. |
76 // Note that |callback| will never be called. | 76 // Note that |callback| will never be called. |
77 scoped_ptr<SigninClient::CookieChangedSubscription> AddCookieChangedCallback( | 77 scoped_ptr<SigninClient::CookieChangedSubscription> AddCookieChangedCallback( |
78 const GURL& url, | 78 const GURL& url, |
79 const std::string& name, | 79 const std::string& name, |
(...skipping 25 matching lines...) Expand all Loading... |
105 std::string signed_in_password_; | 105 std::string signed_in_password_; |
106 | 106 |
107 #if defined(OS_IOS) | 107 #if defined(OS_IOS) |
108 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; | 108 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; |
109 #endif | 109 #endif |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); | 111 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); |
112 }; | 112 }; |
113 | 113 |
114 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 114 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
OLD | NEW |