OLD | NEW |
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 #include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h" | 5 #include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 // Since synchronization isn't complete for the ResourceBundle class, reload | 65 // Since synchronization isn't complete for the ResourceBundle class, reload |
66 // locale resources on the IO thread. | 66 // locale resources on the IO thread. |
67 // crbug.com/95425, crbug.com/132752 | 67 // crbug.com/95425, crbug.com/132752 |
68 void ReloadLocaleResources(const std::string& new_locale) { | 68 void ReloadLocaleResources(const std::string& new_locale) { |
69 content::BrowserThread::PostTaskAndReply( | 69 content::BrowserThread::PostTaskAndReply( |
70 content::BrowserThread::IO, FROM_HERE, | 70 content::BrowserThread::IO, FROM_HERE, |
71 base::Bind(&ReloadLocaleResourcesOnIOThread, base::ConstRef(new_locale)), | 71 base::Bind(&ReloadLocaleResourcesOnIOThread, base::ConstRef(new_locale)), |
72 MessageLoop::QuitClosure()); | 72 MessageLoop::QuitClosure()); |
73 ui_test_utils::RunMessageLoop(); | 73 content::RunMessageLoop(); |
74 } | 74 } |
75 | 75 |
76 } // namespace | 76 } // namespace |
77 | 77 |
78 static const FilePath::CharType* kBidiCheckerTestsJS = | 78 static const FilePath::CharType* kBidiCheckerTestsJS = |
79 FILE_PATH_LITERAL("bidichecker_tests.js"); | 79 FILE_PATH_LITERAL("bidichecker_tests.js"); |
80 | 80 |
81 WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {} | 81 WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {} |
82 | 82 |
83 WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {} | 83 WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {} |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 // chrome://history-frame | 751 // chrome://history-frame |
752 //============================== | 752 //============================== |
753 | 753 |
754 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) { | 754 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) { |
755 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); | 755 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); |
756 } | 756 } |
757 | 757 |
758 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) { | 758 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) { |
759 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); | 759 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); |
760 } | 760 } |
OLD | NEW |