Index: components/signin/core/browser/test_signin_client.h |
diff --git a/components/signin/core/browser/test_signin_client.h b/components/signin/core/browser/test_signin_client.h |
index 18b28a4bb039612c1b23598cb79ef742321609cd..94240a067647fb8a58107aedf9359635cefa06f5 100644 |
--- a/components/signin/core/browser/test_signin_client.h |
+++ b/components/signin/core/browser/test_signin_client.h |
@@ -50,9 +50,14 @@ class TestSigninClient : public SigninClient { |
// Returns the empty string. |
virtual std::string GetProductVersion() OVERRIDE; |
- // Returns a TestURLRequestContextGetter. |
+ // Returns a TestURLRequestContextGetter or an manually provided |
+ // URLRequestContextGetter. |
virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; |
+ // For testing purposes, can override the TestURLRequestContextGetter created |
+ // in the default constructor. |
+ void SetURLRequestContext(net::URLRequestContextGetter* request_context); |
+ |
#if defined(OS_IOS) |
virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() OVERRIDE; |
#endif |
@@ -73,13 +78,15 @@ class TestSigninClient : public SigninClient { |
virtual void ClearSigninProcess() OVERRIDE; |
virtual bool IsSigninProcess(int host_id) const OVERRIDE; |
virtual bool HasSigninProcess() const OVERRIDE; |
+ virtual bool IsFirstRun() const OVERRIDE; |
+ virtual base::Time GetInstallDate() OVERRIDE; |
private: |
// Loads the token database. |
void LoadDatabase(); |
base::ScopedTempDir temp_dir_; |
- scoped_refptr<net::TestURLRequestContextGetter> request_context_; |
+ scoped_refptr<net::URLRequestContextGetter> request_context_; |
scoped_refptr<TokenWebData> database_; |
int signin_host_id_; |
CookieChangedCallbackList cookie_callbacks_; |