#ifndef COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_
#define COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
#include "components/signin/core/browser/signin_client.h"
#include "net/url_request/url_request_test_util.h"
class TestSigninClient : public SigninClient {
public:
TestSigninClient();
virtual ~TestSigninClient();
virtual PrefService* GetPrefs() OVERRIDE;
virtual scoped_refptr<TokenWebData> GetDatabase() OVERRIDE;
virtual bool CanRevokeCredentials() OVERRIDE;
virtual std::string GetProductVersion() OVERRIDE;
virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE;
virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE;
virtual void SetCookieChangedCallback(const CookieChangedCallback& callback)
OVERRIDE;
private:
void LoadDatabase();
base::ScopedTempDir temp_dir_;
scoped_refptr<net::TestURLRequestContextGetter> request_context_;
scoped_refptr<TokenWebData> database_;
DISALLOW_COPY_AND_ASSIGN(TestSigninClient);
};
#endif