| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 MockLoginUtils::MockLoginUtils(const std::string& expected_username, | 68 MockLoginUtils::MockLoginUtils(const std::string& expected_username, |
| 69 const std::string& expected_password) | 69 const std::string& expected_password) |
| 70 : expected_username_(expected_username), | 70 : expected_username_(expected_username), |
| 71 expected_password_(expected_password) { | 71 expected_password_(expected_password) { |
| 72 } | 72 } |
| 73 | 73 |
| 74 MockLoginUtils::~MockLoginUtils() {} | 74 MockLoginUtils::~MockLoginUtils() {} |
| 75 | 75 |
| 76 void MockLoginUtils::PrepareProfile( | 76 void MockLoginUtils::PrepareProfile( |
| 77 const std::string& username, | 77 const std::string& username, |
| 78 const std::string& display_email, |
| 78 const std::string& password, | 79 const std::string& password, |
| 79 const GaiaAuthConsumer::ClientLoginResult& res, | 80 const GaiaAuthConsumer::ClientLoginResult& res, |
| 80 bool pending_requests, | 81 bool pending_requests, |
| 81 bool using_oauth, | 82 bool using_oauth, |
| 82 bool has_cookies, | 83 bool has_cookies, |
| 83 Delegate* delegate) { | 84 Delegate* delegate) { |
| 84 DCHECK_EQ(expected_username_, username); | 85 DCHECK_EQ(expected_username_, username); |
| 85 DCHECK_EQ(expected_password_, password); | 86 DCHECK_EQ(expected_password_, password); |
| 86 // Profile hasn't been loaded. | 87 // Profile hasn't been loaded. |
| 87 delegate->OnProfilePrepared(NULL); | 88 delegate->OnProfilePrepared(NULL); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 113 | 114 |
| 114 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, | 115 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, |
| 115 Profile* new_profile) { | 116 Profile* new_profile) { |
| 116 } | 117 } |
| 117 | 118 |
| 118 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, | 119 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, |
| 119 Profile* new_profile) { | 120 Profile* new_profile) { |
| 120 } | 121 } |
| 121 | 122 |
| 122 } // namespace chromeos | 123 } // namespace chromeos |
| OLD | NEW |