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_login_utils.h" | 5 #include "chrome/browser/chromeos/login/test_login_utils.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/mock_authenticator.h" | 7 #include "chrome/browser/chromeos/login/mock_authenticator.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 TestLoginUtils::TestLoginUtils(const std::string& expected_username, | 11 TestLoginUtils::TestLoginUtils(const std::string& expected_username, |
12 const std::string& expected_password) | 12 const std::string& expected_password) |
13 : expected_username_(expected_username), | 13 : expected_username_(expected_username), |
14 expected_password_(expected_password) { | 14 expected_password_(expected_password) { |
15 } | 15 } |
16 | 16 |
17 TestLoginUtils::~TestLoginUtils() {} | 17 TestLoginUtils::~TestLoginUtils() {} |
18 | 18 |
19 void TestLoginUtils::PrepareProfile( | 19 void TestLoginUtils::PrepareProfile( |
20 const std::string& username, | 20 const std::string& username, |
21 const std::string& display_email, | 21 const std::string& display_email, |
22 const std::string& password, | 22 const std::string& password, |
23 bool pending_requests, | |
24 bool using_oauth, | 23 bool using_oauth, |
25 bool has_cookies, | 24 bool has_cookies, |
26 Delegate* delegate) { | 25 Delegate* delegate) { |
27 DCHECK_EQ(expected_username_, username); | 26 DCHECK_EQ(expected_username_, username); |
28 DCHECK_EQ(expected_password_, password); | 27 DCHECK_EQ(expected_password_, password); |
29 // Profile hasn't been loaded. | 28 // Profile hasn't been loaded. |
30 delegate->OnProfilePrepared(NULL); | 29 delegate->OnProfilePrepared(NULL); |
31 } | 30 } |
32 | 31 |
33 void TestLoginUtils::DelegateDeleted(Delegate* delegate) { | 32 void TestLoginUtils::DelegateDeleted(Delegate* delegate) { |
(...skipping 12 matching lines...) Expand all Loading... |
46 return std::string(); | 45 return std::string(); |
47 } | 46 } |
48 | 47 |
49 void TestLoginUtils::InitRlzDelayed(Profile* user_profile) { | 48 void TestLoginUtils::InitRlzDelayed(Profile* user_profile) { |
50 } | 49 } |
51 | 50 |
52 void TestLoginUtils::StopBackgroundFetchers() { | 51 void TestLoginUtils::StopBackgroundFetchers() { |
53 } | 52 } |
54 | 53 |
55 } // namespace chromeos | 54 } // namespace chromeos |
OLD | NEW |