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

Side by Side Diff: chrome/browser/ui/webui/options/options_ui_browsertest.h

Issue 2699973002: MD Settings: enable by default in client (Closed)
Patch Set: disable cros Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/test/scoped_feature_list.h"
11 #include "chrome/test/base/in_process_browser_test.h" 12 #include "chrome/test/base/in_process_browser_test.h"
12 13
13 namespace content { 14 namespace content {
14 class RenderFrameHost; 15 class RenderFrameHost;
15 } 16 }
16 17
17 namespace options { 18 namespace options {
18 19
19 class OptionsUIBrowserTest : public InProcessBrowserTest { 20 class OptionsUIBrowserTest : public InProcessBrowserTest {
20 public: 21 public:
21 OptionsUIBrowserTest(); 22 OptionsUIBrowserTest();
22 23
24 void SetUpInProcessBrowserTestFixture() override;
25
23 // Navigate to the Uber/Settings page and block until it has loaded. 26 // Navigate to the Uber/Settings page and block until it has loaded.
24 void NavigateToSettings(); 27 void NavigateToSettings();
25 28
26 // Navigate to a certain subpage in the Uber/Settings page and block until it 29 // Navigate to a certain subpage in the Uber/Settings page and block until it
27 // has loaded. 30 // has loaded.
28 void NavigateToSettingsSubpage(const std::string& sub_page); 31 void NavigateToSettingsSubpage(const std::string& sub_page);
29 32
30 // Navigate to the Settings frame and block until complete. 33 // Navigate to the Settings frame and block until complete.
31 void NavigateToSettingsFrame(); 34 void NavigateToSettingsFrame();
32 35
33 // Check navbar's existence. 36 // Check navbar's existence.
34 void VerifyNavbar(); 37 void VerifyNavbar();
35 38
36 // Verify that the page title is correct. 39 // Verify that the page title is correct.
37 // The only guarantee we can make about the title of a settings tab is that 40 // The only guarantee we can make about the title of a settings tab is that
38 // it should contain IDS_SETTINGS_TITLE somewhere. 41 // it should contain IDS_SETTINGS_TITLE somewhere.
39 void VerifyTitle(); 42 void VerifyTitle();
40 43
41 protected: 44 protected:
42 // Returns the RenderFrameHost associated with the Settings frame inside the 45 // Returns the RenderFrameHost associated with the Settings frame inside the
43 // Uber UI page (which must be already loaded). 46 // Uber UI page (which must be already loaded).
44 content::RenderFrameHost* GetSettingsFrame(); 47 content::RenderFrameHost* GetSettingsFrame();
45 48
46 private: 49 private:
50 base::test::ScopedFeatureList disable_md_settings_;
51
47 DISALLOW_COPY_AND_ASSIGN(OptionsUIBrowserTest); 52 DISALLOW_COPY_AND_ASSIGN(OptionsUIBrowserTest);
48 }; 53 };
49 54
50 } // namespace options 55 } // namespace options
51 56
52 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_BROWSERTEST_H_ 57 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698