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 #include "chrome/browser/chromeos/login/test_attempt_state.h" | 5 #include "chrome/browser/chromeos/login/test_attempt_state.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "google_apis/gaia/gaia_auth_consumer.h" | 9 #include "google_apis/gaia/gaia_auth_consumer.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 TestAttemptState::TestAttemptState(const std::string& username, | 13 TestAttemptState::TestAttemptState(const UserCredentials& credentials, |
14 const std::string& password, | |
15 const std::string& ascii_hash, | 14 const std::string& ascii_hash, |
16 const std::string& login_token, | 15 const std::string& login_token, |
17 const std::string& login_captcha, | 16 const std::string& login_captcha, |
18 const User::UserType user_type, | 17 const User::UserType user_type, |
19 const bool user_is_new) | 18 const bool user_is_new) |
20 : AuthAttemptState(username, | 19 : AuthAttemptState(credentials, |
21 password, | |
22 ascii_hash, | 20 ascii_hash, |
23 login_token, | 21 login_token, |
24 login_captcha, | 22 login_captcha, |
25 user_type, | 23 user_type, |
26 user_is_new) { | 24 user_is_new) { |
27 } | 25 } |
28 | 26 |
29 TestAttemptState::TestAttemptState(const std::string& username, | 27 TestAttemptState::TestAttemptState(const std::string& username, |
30 const std::string& ascii_hash) | 28 const std::string& ascii_hash) |
31 : AuthAttemptState(username, ascii_hash) { | 29 : AuthAttemptState(username, ascii_hash) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 71 |
74 bool TestAttemptState::cryptohome_outcome() { | 72 bool TestAttemptState::cryptohome_outcome() { |
75 return cryptohome_outcome_; | 73 return cryptohome_outcome_; |
76 } | 74 } |
77 | 75 |
78 cryptohome::MountError TestAttemptState::cryptohome_code() { | 76 cryptohome::MountError TestAttemptState::cryptohome_code() { |
79 return cryptohome_code_; | 77 return cryptohome_code_; |
80 } | 78 } |
81 | 79 |
82 } // namespace chromeos | 80 } // namespace chromeos |
OLD | NEW |