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

Side by Side Diff: chrome/browser/ui/webui/bidi_checker_web_ui_test.h

Issue 2933653002: Remove bidi checker tests and some of the backing code (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/bidi_checker_web_ui_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_
7
8 #include "base/command_line.h"
9 #include "chrome/test/base/web_ui_browser_test.h"
10
11 // Base class for BidiChecker-based tests. Preloads the BidiChecker JS library
12 // for each test.
13 class WebUIBidiCheckerBrowserTest : public WebUIBrowserTest {
14 public:
15 ~WebUIBidiCheckerBrowserTest() override;
16
17 // testing::Test implementation.
18 void SetUp() override;
19 void TearDown() override;
20
21 protected:
22 WebUIBidiCheckerBrowserTest();
23
24 // Runs the Bidi Checker on the given page URL. |is_rtl| should be true when
25 // the active page locale is RTL.
26 void RunBidiCheckerOnPage(const std::string& page_url, bool is_rtl);
27
28 // Setup test path.
29 void SetUpInProcessBrowserTestFixture() override;
30
31 private:
32 // The command line args used to run the test before being changed in SetUp().
33 base::CommandLine::StringVector argv_;
34 };
35
36 // Base class for BidiChecker-based tests that run with an LTR UI.
37 // Disabled on all platforms due to http://crbug.com/511439
38 class DISABLED_WebUIBidiCheckerBrowserTestLTR
39 : public WebUIBidiCheckerBrowserTest {
40 public:
41 void RunBidiCheckerOnPage(const std::string& page_url);
42 };
43
44 // Base class for BidiChecker-based tests that run with an RTL UI.
45 // Disabled on all platforms due to http://crbug.com/511439
46 class DISABLED_WebUIBidiCheckerBrowserTestRTL
47 : public WebUIBidiCheckerBrowserTest {
48 public:
49 void RunBidiCheckerOnPage(const std::string& page_url);
50
51 protected:
52 void SetUpOnMainThread() override;
53 void TearDownOnMainThread() override;
54
55 // The app locale before we change it
56 std::string app_locale_;
57 };
58
59 #endif // CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/bidi_checker_web_ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698