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

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

Issue 10822030: Move ui_test_utils::RunMessageLoop to test_utils so that it can be reused by content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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 #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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/web_dialog_view_browsertest.cc ('k') | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698