OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/chromeos/login/auth_attempt_state.h" | 11 #include "chrome/browser/chromeos/login/auth_attempt_state.h" |
12 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 12 #include "chrome/browser/chromeos/login/login_status_consumer.h" |
13 #include "chrome/browser/chromeos/login/user.h" | 13 #include "chrome/browser/chromeos/login/user.h" |
14 #include "google_apis/gaia/gaia_auth_consumer.h" | 14 #include "google_apis/gaia/gaia_auth_consumer.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 class TestAttemptState : public AuthAttemptState { | 18 class TestAttemptState : public AuthAttemptState { |
19 public: | 19 public: |
20 TestAttemptState(const std::string& username, | 20 TestAttemptState(const UserCredentials& credentials, |
21 const std::string& password, | |
22 const std::string& ascii_hash, | 21 const std::string& ascii_hash, |
23 const std::string& login_token, | 22 const std::string& login_token, |
24 const std::string& login_captcha, | 23 const std::string& login_captcha, |
25 const User::UserType user_type, | 24 const User::UserType user_type, |
26 const bool user_is_new); | 25 const bool user_is_new); |
27 | 26 |
28 TestAttemptState(const std::string& username, const std::string& ascii_hash); | 27 TestAttemptState(const std::string& username, const std::string& ascii_hash); |
29 | 28 |
30 virtual ~TestAttemptState(); | 29 virtual ~TestAttemptState(); |
31 | 30 |
(...skipping 17 matching lines...) Expand all Loading... |
49 virtual bool cryptohome_outcome() OVERRIDE; | 48 virtual bool cryptohome_outcome() OVERRIDE; |
50 virtual cryptohome::MountError cryptohome_code() OVERRIDE; | 49 virtual cryptohome::MountError cryptohome_code() OVERRIDE; |
51 | 50 |
52 private: | 51 private: |
53 DISALLOW_COPY_AND_ASSIGN(TestAttemptState); | 52 DISALLOW_COPY_AND_ASSIGN(TestAttemptState); |
54 }; | 53 }; |
55 | 54 |
56 } // namespace chromeos | 55 } // namespace chromeos |
57 | 56 |
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ |
OLD | NEW |