OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/login/test_login_utils.h" |
| 6 |
| 7 #include "chrome/browser/chromeos/login/mock_authenticator.h" |
| 8 |
| 9 namespace chromeos { |
| 10 |
| 11 TestLoginUtils::TestLoginUtils(const std::string& expected_username, |
| 12 const std::string& expected_password) |
| 13 : expected_username_(expected_username), |
| 14 expected_password_(expected_password) { |
| 15 } |
| 16 |
| 17 TestLoginUtils::~TestLoginUtils() {} |
| 18 |
| 19 void TestLoginUtils::PrepareProfile( |
| 20 const std::string& username, |
| 21 const std::string& display_email, |
| 22 const std::string& password, |
| 23 bool pending_requests, |
| 24 bool using_oauth, |
| 25 bool has_cookies, |
| 26 Delegate* delegate) { |
| 27 DCHECK_EQ(expected_username_, username); |
| 28 DCHECK_EQ(expected_password_, password); |
| 29 // Profile hasn't been loaded. |
| 30 delegate->OnProfilePrepared(NULL); |
| 31 } |
| 32 |
| 33 void TestLoginUtils::DelegateDeleted(Delegate* delegate) { |
| 34 } |
| 35 |
| 36 scoped_refptr<Authenticator> TestLoginUtils::CreateAuthenticator( |
| 37 LoginStatusConsumer* consumer) { |
| 38 return new MockAuthenticator( |
| 39 consumer, expected_username_, expected_password_); |
| 40 } |
| 41 |
| 42 std::string TestLoginUtils::GetOffTheRecordCommandLine( |
| 43 const GURL& start_url, |
| 44 const CommandLine& base_command_line, |
| 45 CommandLine* command_line) { |
| 46 return std::string(); |
| 47 } |
| 48 |
| 49 void TestLoginUtils::InitRlzDelayed() { |
| 50 } |
| 51 |
| 52 void TestLoginUtils::TransferDefaultCookiesAndServerBoundCerts( |
| 53 Profile* default_profile, |
| 54 Profile* new_profile) { |
| 55 } |
| 56 |
| 57 void TestLoginUtils::TransferDefaultAuthCache(Profile* default_profile, |
| 58 Profile* new_profile) { |
| 59 } |
| 60 |
| 61 void TestLoginUtils::StopBackgroundFetchers() { |
| 62 } |
| 63 |
| 64 } // namespace chromeos |
OLD | NEW |