| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ |
| 6 #define CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ | 6 #define CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
| 10 #include "chromeos/login/auth/auth_attempt_state.h" | 10 #include "chromeos/login/auth/auth_attempt_state.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 void PresetOnlineLoginStatus(const AuthFailure& outcome); | 25 void PresetOnlineLoginStatus(const AuthFailure& outcome); |
| 26 | 26 |
| 27 // The next attempt will not allow HOSTED accounts to log in. | 27 // The next attempt will not allow HOSTED accounts to log in. |
| 28 void DisableHosted(); | 28 void DisableHosted(); |
| 29 | 29 |
| 30 // Act as though an cryptohome login attempt completed already. | 30 // Act as though an cryptohome login attempt completed already. |
| 31 void PresetCryptohomeStatus(bool cryptohome_outcome, | 31 void PresetCryptohomeStatus(bool cryptohome_outcome, |
| 32 cryptohome::MountError cryptohome_code); | 32 cryptohome::MountError cryptohome_code); |
| 33 | 33 |
| 34 // To allow state to be queried on the main thread during tests. | 34 // To allow state to be queried on the main thread during tests. |
| 35 virtual bool online_complete() OVERRIDE; | 35 virtual bool online_complete() override; |
| 36 virtual const AuthFailure& online_outcome() OVERRIDE; | 36 virtual const AuthFailure& online_outcome() override; |
| 37 virtual bool is_first_time_user() OVERRIDE; | 37 virtual bool is_first_time_user() override; |
| 38 virtual GaiaAuthFetcher::HostedAccountsSetting hosted_policy() OVERRIDE; | 38 virtual GaiaAuthFetcher::HostedAccountsSetting hosted_policy() override; |
| 39 virtual bool cryptohome_complete() OVERRIDE; | 39 virtual bool cryptohome_complete() override; |
| 40 virtual bool cryptohome_outcome() OVERRIDE; | 40 virtual bool cryptohome_outcome() override; |
| 41 virtual cryptohome::MountError cryptohome_code() OVERRIDE; | 41 virtual cryptohome::MountError cryptohome_code() override; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 DISALLOW_COPY_AND_ASSIGN(TestAttemptState); | 44 DISALLOW_COPY_AND_ASSIGN(TestAttemptState); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace chromeos | 47 } // namespace chromeos |
| 48 | 48 |
| 49 #endif // CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ | 49 #endif // CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ |
| OLD | NEW |