Index: chrome/browser/chromeos/login/test_login_utils.cc |
diff --git a/chrome/browser/chromeos/login/test_login_utils.cc b/chrome/browser/chromeos/login/test_login_utils.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07a32c684c008893059b8a233fc52a2c3b8d8013 |
--- /dev/null |
+++ b/chrome/browser/chromeos/login/test_login_utils.cc |
@@ -0,0 +1,64 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/chromeos/login/test_login_utils.h" |
+ |
+#include "chrome/browser/chromeos/login/mock_authenticator.h" |
+ |
+namespace chromeos { |
+ |
+TestLoginUtils::TestLoginUtils(const std::string& expected_username, |
+ const std::string& expected_password) |
+ : expected_username_(expected_username), |
+ expected_password_(expected_password) { |
+} |
+ |
+TestLoginUtils::~TestLoginUtils() {} |
+ |
+void TestLoginUtils::PrepareProfile( |
+ const std::string& username, |
+ const std::string& display_email, |
+ const std::string& password, |
+ bool pending_requests, |
+ bool using_oauth, |
+ bool has_cookies, |
+ Delegate* delegate) { |
+ DCHECK_EQ(expected_username_, username); |
+ DCHECK_EQ(expected_password_, password); |
+ // Profile hasn't been loaded. |
+ delegate->OnProfilePrepared(NULL); |
+} |
+ |
+void TestLoginUtils::DelegateDeleted(Delegate* delegate) { |
+} |
+ |
+scoped_refptr<Authenticator> TestLoginUtils::CreateAuthenticator( |
+ LoginStatusConsumer* consumer) { |
+ return new MockAuthenticator( |
+ consumer, expected_username_, expected_password_); |
+} |
+ |
+std::string TestLoginUtils::GetOffTheRecordCommandLine( |
+ const GURL& start_url, |
+ const CommandLine& base_command_line, |
+ CommandLine* command_line) { |
+ return std::string(); |
+} |
+ |
+void TestLoginUtils::InitRlzDelayed(Profile* user_profile) { |
+} |
+ |
+void TestLoginUtils::TransferDefaultCookiesAndServerBoundCerts( |
+ Profile* default_profile, |
+ Profile* new_profile) { |
+} |
+ |
+void TestLoginUtils::TransferDefaultAuthCache(Profile* default_profile, |
+ Profile* new_profile) { |
+} |
+ |
+void TestLoginUtils::StopBackgroundFetchers() { |
+} |
+ |
+} // namespace chromeos |