#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_
#include <string>
#include "base/compiler_specific.h"
#include "chrome/browser/chromeos/login/auth_attempt_state.h"
#include "chrome/browser/chromeos/login/login_status_consumer.h"
#include "chrome/browser/chromeos/login/user.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
namespace chromeos {
class TestAttemptState : public AuthAttemptState {
public:
TestAttemptState(const UserContext& credentials,
const std::string& login_token,
const std::string& login_captcha,
const User::UserType user_type,
const bool user_is_new);
virtual ~TestAttemptState();
void PresetOnlineLoginStatus(
const LoginFailure& outcome);
void DisableHosted();
void PresetCryptohomeStatus(bool cryptohome_outcome,
cryptohome::MountError cryptohome_code);
virtual bool online_complete() OVERRIDE;
virtual const LoginFailure& online_outcome() OVERRIDE;
virtual bool is_first_time_user() OVERRIDE;
virtual GaiaAuthFetcher::HostedAccountsSetting hosted_policy() OVERRIDE;
virtual bool cryptohome_complete() OVERRIDE;
virtual bool cryptohome_outcome() OVERRIDE;
virtual cryptohome::MountError cryptohome_code() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(TestAttemptState);
};
}
#endif