Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4443)

Unified Diff: chrome/browser/chromeos/login/test_attempt_state.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/test_attempt_state.h
diff --git a/chrome/browser/chromeos/login/test_attempt_state.h b/chrome/browser/chromeos/login/test_attempt_state.h
deleted file mode 100644
index 501cc4715d7c14cbff0d57ee6f4d6f052f0aaf47..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/test_attempt_state.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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();
-
- // Act as though an online login attempt completed already.
- void PresetOnlineLoginStatus(
- const LoginFailure& outcome);
-
- // The next attempt will not allow HOSTED accounts to log in.
- void DisableHosted();
-
- // Act as though an cryptohome login attempt completed already.
- void PresetCryptohomeStatus(bool cryptohome_outcome,
- cryptohome::MountError cryptohome_code);
-
- // To allow state to be queried on the main thread during tests.
- 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);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_

Powered by Google App Engine
This is Rietveld 408576698