Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: chrome/browser/chromeos/login/test_login_utils.cc

Issue 11506006: [cros] RLZ tracking can be turned off via a flag file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-apply ps#16, it got lost Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698