#ifndef COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_AUTH_STATUS_PROVIDER_H_
#define COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_AUTH_STATUS_PROVIDER_H_
#include "components/signin/core/browser/signin_error_controller.h"
class FakeAuthStatusProvider
: public SigninErrorController::AuthStatusProvider {
public:
explicit FakeAuthStatusProvider(SigninErrorController* error);
virtual ~FakeAuthStatusProvider();
void SetAuthError(const std::string& account_id,
const GoogleServiceAuthError& error);
void set_error_without_status_change(const GoogleServiceAuthError& error) {
auth_error_ = error;
}
virtual std::string GetAccountId() const OVERRIDE;
virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
private:
SigninErrorController* error_provider_;
std::string account_id_;
GoogleServiceAuthError auth_error_;
};
#endif