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

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

Issue 9625020: Ported NTP4 UI tests to WebUI. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Tests that apps are not shown in ChromeOS. 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
Index: chrome/test/data/webui/ntp4_browsertest.h
diff --git a/chrome/test/data/webui/ntp4_browsertest.h b/chrome/test/data/webui/ntp4_browsertest.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b115581d0390fea01847beca0237c7b6e447464
--- /dev/null
+++ b/chrome/test/data/webui/ntp4_browsertest.h
@@ -0,0 +1,24 @@
+// 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.
+
+#ifndef CHROME_TEST_DATA_WEBUI_NTP4_BROWSERTEST_H_
+#define CHROME_TEST_DATA_WEBUI_NTP4_BROWSERTEST_H_
+#pragma once
+
+#include "chrome/browser/ui/webui/web_ui_browsertest.h"
+
+class NTP4LoggedInWebUITest : public WebUIBrowserTest {
+ public:
+ NTP4LoggedInWebUITest();
+ virtual ~NTP4LoggedInWebUITest();
+
+ protected:
+ // Sets the user name in the profile as if the user had logged in.
+ void SetLoginName(const std::string& name);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NTP4LoggedInWebUITest);
+};
+
+#endif // CHROME_TEST_DATA_WEBUI_NTP4_BROWSERTEST_H_

Powered by Google App Engine
This is Rietveld 408576698