OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/mock_authenticator.h" | 5 #include "chrome/browser/chromeos/login/mock_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 | 9 |
10 using content::BrowserThread; | 10 using content::BrowserThread; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 MockLoginUtils::MockLoginUtils(const std::string& expected_username, | 77 MockLoginUtils::MockLoginUtils(const std::string& expected_username, |
78 const std::string& expected_password) | 78 const std::string& expected_password) |
79 : expected_username_(expected_username), | 79 : expected_username_(expected_username), |
80 expected_password_(expected_password) { | 80 expected_password_(expected_password) { |
81 } | 81 } |
82 | 82 |
83 MockLoginUtils::~MockLoginUtils() {} | 83 MockLoginUtils::~MockLoginUtils() {} |
84 | 84 |
85 void MockLoginUtils::PrepareProfile( | 85 void MockLoginUtils::PrepareProfile( |
86 const std::string& username, | 86 const std::string& username, |
| 87 const std::string& display_email, |
87 const std::string& password, | 88 const std::string& password, |
88 const GaiaAuthConsumer::ClientLoginResult& res, | 89 const GaiaAuthConsumer::ClientLoginResult& res, |
89 bool pending_requests, | 90 bool pending_requests, |
90 bool using_oauth, | 91 bool using_oauth, |
91 bool has_cookies, | 92 bool has_cookies, |
92 Delegate* delegate) { | 93 Delegate* delegate) { |
93 DCHECK_EQ(expected_username_, username); | 94 DCHECK_EQ(expected_username_, username); |
94 DCHECK_EQ(expected_password_, password); | 95 DCHECK_EQ(expected_password_, password); |
95 // Profile hasn't been loaded. | 96 // Profile hasn't been loaded. |
96 delegate->OnProfilePrepared(NULL); | 97 delegate->OnProfilePrepared(NULL); |
(...skipping 25 matching lines...) Expand all Loading... |
122 | 123 |
123 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, | 124 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, |
124 Profile* new_profile) { | 125 Profile* new_profile) { |
125 } | 126 } |
126 | 127 |
127 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, | 128 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, |
128 Profile* new_profile) { | 129 Profile* new_profile) { |
129 } | 130 } |
130 | 131 |
131 } // namespace chromeos | 132 } // namespace chromeos |
OLD | NEW |