OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_BIDI_CHECKER_WEB_UI_TEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/web_ui_browsertest.h" | 9 #include "chrome/browser/ui/webui/web_ui_browsertest.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
11 | 11 |
12 // Base class for BidiChecker-based tests. Preloads the BidiChecker JS library | 12 // Base class for BidiChecker-based tests. Preloads the BidiChecker JS library |
13 // for each test. | 13 // for each test. |
14 class WebUIBidiCheckerBrowserTest : public WebUIBrowserTest { | 14 class WebUIBidiCheckerBrowserTest : public WebUIBrowserTest { |
15 public: | 15 public: |
16 virtual ~WebUIBidiCheckerBrowserTest(); | 16 virtual ~WebUIBidiCheckerBrowserTest(); |
17 | 17 |
18 protected: | |
19 WebUIBidiCheckerBrowserTest(); | |
20 | |
18 // Runs the Bidi Checker on the given page URL. |isRTL| should be true when | 21 // Runs the Bidi Checker on the given page URL. |isRTL| should be true when |
19 // the active page locale is RTL. | 22 // the active page locale is RTL. |
20 void RunBidiCheckerOnPage(const char pageURL[], bool isRTL); | 23 void RunBidiCheckerOnPage(const char pageURL[], bool isRTL); |
21 | 24 |
22 protected: | |
23 WebUIBidiCheckerBrowserTest(); | |
24 | |
25 // Setup test path. | 25 // Setup test path. |
26 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 26 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; |
27 }; | 27 }; |
28 | 28 |
29 // Base class for BidiChecker-based tests that run with an LTR UI. | |
30 class WebUIBidiCheckerBrowserTestLTR : public WebUIBidiCheckerBrowserTest { | |
31 public: | |
jeremy
2011/10/30 09:59:19
one space before public.
ofri1
2011/10/30 12:52:14
Done.
| |
32 void RunBidiCheckerOnPage(const char pageURL[]); | |
33 }; | |
34 | |
29 // Base class for BidiChecker-based tests that run with an RTL UI. | 35 // Base class for BidiChecker-based tests that run with an RTL UI. |
30 // Preloads the BidiChecker JS library for each test, as well as modifies the | 36 // Preloads the BidiChecker JS library for each test, as well as modifies the |
31 // active language. | 37 // active language. |
jeremy
2011/10/30 09:59:19
I think you can remove lines 2-3 of this comment.
ofri1
2011/10/30 12:52:14
Done.
| |
32 class WebUIBidiCheckerBrowserTestFakeBidi : public WebUIBidiCheckerBrowserTest { | 38 class WebUIBidiCheckerBrowserTestRTL : public WebUIBidiCheckerBrowserTest { |
33 public: | 39 public: |
34 virtual ~WebUIBidiCheckerBrowserTestFakeBidi(); | 40 void RunBidiCheckerOnPage(const char pageURL[]); |
35 | 41 |
36 protected: | 42 protected: |
37 WebUIBidiCheckerBrowserTestFakeBidi(); | |
38 | |
39 virtual void SetUpOnMainThread() OVERRIDE; | 43 virtual void SetUpOnMainThread() OVERRIDE; |
40 virtual void CleanUpOnMainThread() OVERRIDE; | 44 virtual void CleanUpOnMainThread() OVERRIDE; |
41 | 45 |
42 // The app locale before we change it | 46 // The app locale before we change it |
43 std::string app_locale_; | 47 std::string app_locale_; |
44 }; | 48 }; |
45 | 49 |
46 #endif // CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_ | 50 #endif // CHROME_BROWSER_UI_WEBUI_BIDI_CHECKER_WEB_UI_TEST_H_ |
OLD | NEW |