| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_UITEST_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_UITEST_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "chrome/test/ui/ui_test.h" | |
| 11 | |
| 12 class TabProxy; | |
| 13 | |
| 14 class OptionsUITest : public UITest { | |
| 15 public: | |
| 16 OptionsUITest(); | |
| 17 | |
| 18 // Navigate to the settings tab and block until complete. | |
| 19 void NavigateToSettings(scoped_refptr<TabProxy> tab); | |
| 20 | |
| 21 // Check navbar's existence. | |
| 22 void VerifyNavbar(scoped_refptr<TabProxy> tab); | |
| 23 | |
| 24 // Verify that the page title is correct. | |
| 25 // The only guarantee we can make about the title of a settings tab is that | |
| 26 // it should contain IDS_SETTINGS_TITLE somewhere. | |
| 27 void VerifyTitle(scoped_refptr<TabProxy> tab); | |
| 28 | |
| 29 // Check section headers in navbar. | |
| 30 // For ChromeOS, there should be 1 + 7: | |
| 31 // Search, Basics, Personal, System, Internet, Under the Hood, | |
| 32 // Users and Extensions. | |
| 33 // For other platforms, there should 1 + 4: | |
| 34 // Search, Basics, Personal, Under the Hood and Extensions. | |
| 35 void VerifySections(scoped_refptr<TabProxy> tab); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_UITEST_H_ | |
| OLD | NEW |