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

Unified Diff: chrome/test/data/webui/ntp4_browsertest.cc

Issue 9625020: Ported NTP4 UI tests to WebUI. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed extra space in copyright header. Created 8 years, 9 months 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
« no previous file with comments | « chrome/test/data/webui/ntp4_browsertest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/ntp4_browsertest.cc
diff --git a/chrome/test/data/webui/ntp4_browsertest.cc b/chrome/test/data/webui/ntp4_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2889f0999f6c17beada36587c71da6b0e3cea9d1
--- /dev/null
+++ b/chrome/test/data/webui/ntp4_browsertest.cc
@@ -0,0 +1,19 @@
+// 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/test/data/webui/ntp4_browsertest.h"
+
+#include "chrome/browser/prefs/pref_service.h"
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/browser.h"
+#include "chrome/common/pref_names.h"
+
+NTP4LoggedInWebUITest::NTP4LoggedInWebUITest() {}
+
+NTP4LoggedInWebUITest::~NTP4LoggedInWebUITest() {}
+
+void NTP4LoggedInWebUITest::SetLoginName(const std::string& name) {
+ browser()->profile()->GetPrefs()->SetString(prefs::kGoogleServicesUsername,
+ name);
+}
« no previous file with comments | « chrome/test/data/webui/ntp4_browsertest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698