OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/common/net/gaia/gaia_auth_consumer.h" | 9 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
10 #include "cros/chromeos_cryptohome.h" | 10 #include "third_party/cros/chromeos_cryptohome.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 TestAttemptState::TestAttemptState(const std::string& username, | 14 TestAttemptState::TestAttemptState(const std::string& username, |
15 const std::string& password, | 15 const std::string& password, |
16 const std::string& ascii_hash, | 16 const std::string& ascii_hash, |
17 const std::string& login_token, | 17 const std::string& login_token, |
18 const std::string& login_captcha, | 18 const std::string& login_captcha, |
19 const bool user_is_new) | 19 const bool user_is_new) |
20 : AuthAttemptState(username, | 20 : AuthAttemptState(username, |
(...skipping 24 matching lines...) Expand all Loading... |
45 } | 45 } |
46 | 46 |
47 void TestAttemptState::PresetCryptohomeStatus(bool cryptohome_outcome, | 47 void TestAttemptState::PresetCryptohomeStatus(bool cryptohome_outcome, |
48 int cryptohome_code) { | 48 int cryptohome_code) { |
49 cryptohome_complete_ = true; | 49 cryptohome_complete_ = true; |
50 cryptohome_outcome_ = cryptohome_outcome; | 50 cryptohome_outcome_ = cryptohome_outcome; |
51 cryptohome_code_ = cryptohome_code; | 51 cryptohome_code_ = cryptohome_code; |
52 } | 52 } |
53 | 53 |
54 } // namespace chromeos | 54 } // namespace chromeos |
OLD | NEW |