diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 20:25:13 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 20:25:13 +0000 |
commit | 3fd1f9b3411bed659e99cab7b196b1ea3d2a3947 (patch) | |
tree | 26b5e01c1d945da4cbb80fb3fa7d3b39401a59ca /chrome/test/ui_test_utils.cc | |
parent | 36d6a5006422d2c1902855d53446758169b321da (diff) | |
download | chromium_src-3fd1f9b3411bed659e99cab7b196b1ea3d2a3947.zip chromium_src-3fd1f9b3411bed659e99cab7b196b1ea3d2a3947.tar.gz chromium_src-3fd1f9b3411bed659e99cab7b196b1ea3d2a3947.tar.bz2 |
Rename RunAllPendingEvents -> RunAllPendingInMessageLoop
Looks like I screwed my git repository when I submitted a change before
and checked in only header change in ui_test_utils.h. Sorry about that.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1591004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.cc')
-rw-r--r-- | chrome/test/ui_test_utils.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc index 96d04b6..b334e05 100644 --- a/chrome/test/ui_test_utils.cc +++ b/chrome/test/ui_test_utils.cc @@ -395,6 +395,11 @@ void RunMessageLoop() { loop->SetNestableTasksAllowed(did_allow_task_nesting); } +void RunAllPendingInMessageLoop() { + MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + ui_test_utils::RunMessageLoop(); +} + bool GetCurrentTabTitle(const Browser* browser, string16* title) { TabContents* tab_contents = browser->GetSelectedTabContents(); if (!tab_contents) |