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

Unified Diff: chromeos/login/auth/test_attempt_state.h

Issue 413473003: Revert of Refactoring : Move AuthAttempt and Authenticators to chromeos/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chromeos/login/auth/mock_authenticator.cc ('k') | chromeos/login/auth/test_attempt_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/test_attempt_state.h
diff --git a/chromeos/login/auth/test_attempt_state.h b/chromeos/login/auth/test_attempt_state.h
deleted file mode 100644
index 43e51ee3e59d66bc16683f4b3338f4a05f39a8e1..0000000000000000000000000000000000000000
--- a/chromeos/login/auth/test_attempt_state.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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 CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_
-#define CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_
-
-#include "base/compiler_specific.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/login/auth/auth_attempt_state.h"
-#include "chromeos/login/auth/auth_status_consumer.h"
-#include "google_apis/gaia/gaia_auth_consumer.h"
-
-namespace chromeos {
-
-class UserContext;
-
-class CHROMEOS_EXPORT TestAttemptState : public AuthAttemptState {
- public:
- TestAttemptState(const UserContext& credentials, const bool user_is_new);
-
- virtual ~TestAttemptState();
-
- // Act as though an online login attempt completed already.
- void PresetOnlineLoginStatus(const AuthFailure& 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 AuthFailure& 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 // CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_
« no previous file with comments | « chromeos/login/auth/mock_authenticator.cc ('k') | chromeos/login/auth/test_attempt_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698