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

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

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/test_attempt_state.h ('k') | chromeos/login_event_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/test_attempt_state.cc
diff --git a/chromeos/login/auth/test_attempt_state.cc b/chromeos/login/auth/test_attempt_state.cc
deleted file mode 100644
index a2ff719903a1794b6ae6b90193d0766cf4ce5e3e..0000000000000000000000000000000000000000
--- a/chromeos/login/auth/test_attempt_state.cc
+++ /dev/null
@@ -1,69 +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.
-
-#include "chromeos/login/auth/test_attempt_state.h"
-
-#include "components/user_manager/user_type.h"
-#include "google_apis/gaia/gaia_auth_consumer.h"
-
-namespace chromeos {
-
-TestAttemptState::TestAttemptState(const UserContext& credentials,
- const bool user_is_new)
- : AuthAttemptState(credentials,
- user_manager::USER_TYPE_REGULAR,
- false, // unlock
- false, // online_complete
- user_is_new) {
-}
-
-TestAttemptState::~TestAttemptState() {
-}
-
-void TestAttemptState::PresetOnlineLoginStatus(const AuthFailure& outcome) {
- online_complete_ = true;
- online_outcome_ = outcome;
-}
-
-void TestAttemptState::DisableHosted() {
- hosted_policy_ = GaiaAuthFetcher::HostedAccountsNotAllowed;
-}
-
-void TestAttemptState::PresetCryptohomeStatus(
- bool cryptohome_outcome,
- cryptohome::MountError cryptohome_code) {
- cryptohome_complete_ = true;
- cryptohome_outcome_ = cryptohome_outcome;
- cryptohome_code_ = cryptohome_code;
-}
-
-bool TestAttemptState::online_complete() {
- return online_complete_;
-}
-
-const AuthFailure& TestAttemptState::online_outcome() {
- return online_outcome_;
-}
-
-bool TestAttemptState::is_first_time_user() {
- return is_first_time_user_;
-}
-
-GaiaAuthFetcher::HostedAccountsSetting TestAttemptState::hosted_policy() {
- return hosted_policy_;
-}
-
-bool TestAttemptState::cryptohome_complete() {
- return cryptohome_complete_;
-}
-
-bool TestAttemptState::cryptohome_outcome() {
- return cryptohome_outcome_;
-}
-
-cryptohome::MountError TestAttemptState::cryptohome_code() {
- return cryptohome_code_;
-}
-
-} // namespace chromeos
« no previous file with comments | « chromeos/login/auth/test_attempt_state.h ('k') | chromeos/login_event_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698