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

Unified Diff: chrome/browser/ui/webui/options2/options_ui_uitest.h

Issue 8895023: Options2: Pull the trigger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DIAF. Created 9 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/ui/webui/options2/options_ui_uitest.h
diff --git a/chrome/browser/ui/webui/options2/options_ui_uitest.h b/chrome/browser/ui/webui/options2/options_ui_uitest.h
new file mode 100644
index 0000000000000000000000000000000000000000..3cc6806e472f9ce5ebf4b647287acb918b33807b
--- /dev/null
+++ b/chrome/browser/ui/webui/options2/options_ui_uitest.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_UITEST_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_UITEST_H_
+#pragma once
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/test/ui/ui_test.h"
+
+class TabProxy;
+
+class OptionsUITest : public UITest {
+ public:
+ OptionsUITest();
+
+ // Navigate to the settings tab and block until complete.
+ void NavigateToSettings(scoped_refptr<TabProxy> tab);
+
+ // Check navbar's existence.
+ void VerifyNavbar(scoped_refptr<TabProxy> tab);
+
+ // Verify that the page title is correct.
+ // The only guarantee we can make about the title of a settings tab is that
+ // it should contain IDS_SETTINGS_TITLE somewhere.
+ void VerifyTitle(scoped_refptr<TabProxy> tab);
+
+ // Check section headers in navbar.
+ // For ChromeOS, there should be 1 + 7:
+ // Search, Basics, Personal, System, Internet, Under the Hood,
+ // Users and Extensions.
+ // For other platforms, there should 1 + 4:
+ // Search, Basics, Personal, Under the Hood and Extensions.
+ void VerifySections(scoped_refptr<TabProxy> tab);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_UITEST_H_
« no previous file with comments | « chrome/browser/ui/webui/options2/options_ui2.cc ('k') | chrome/browser/ui/webui/options2/options_ui_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698