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

Unified Diff: chrome/browser/ui/views/web_dialog_view_browsertest.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/web_dialog_view_browsertest.cc
===================================================================
--- chrome/browser/ui/views/web_dialog_view_browsertest.cc (revision 148497)
+++ chrome/browser/ui/views/web_dialog_view_browsertest.cc (working copy)
@@ -121,7 +121,7 @@
set_bounds.set_height(300);
view->MoveContents(web_contents, set_bounds);
- ui_test_utils::RunMessageLoop(); // TestWebDialogView will quit.
+ content::RunMessageLoop(); // TestWebDialogView will quit.
actual_bounds = view->GetWidget()->GetClientAreaBoundsInScreen();
EXPECT_EQ(set_bounds, actual_bounds);
@@ -137,7 +137,7 @@
set_bounds.set_height(250);
view->MoveContents(web_contents, set_bounds);
- ui_test_utils::RunMessageLoop(); // TestWebDialogView will quit.
+ content::RunMessageLoop(); // TestWebDialogView will quit.
actual_bounds = view->GetWidget()->GetClientAreaBoundsInScreen();
EXPECT_EQ(set_bounds, actual_bounds);
@@ -153,7 +153,7 @@
set_bounds.set_size(min_size);
view->MoveContents(web_contents, set_bounds);
- ui_test_utils::RunMessageLoop(); // TestWebDialogView will quit.
+ content::RunMessageLoop(); // TestWebDialogView will quit.
actual_bounds = view->GetWidget()->GetClientAreaBoundsInScreen();
EXPECT_EQ(set_bounds, actual_bounds);
@@ -169,7 +169,7 @@
set_bounds.set_height(0);
view->MoveContents(web_contents, set_bounds);
- ui_test_utils::RunMessageLoop(); // TestWebDialogView will quit.
+ content::RunMessageLoop(); // TestWebDialogView will quit.
actual_bounds = view->GetWidget()->GetClientAreaBoundsInScreen();
EXPECT_LT(0, actual_bounds.width());
EXPECT_LT(0, actual_bounds.height());

Powered by Google App Engine
This is Rietveld 408576698