diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 04:45:26 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 04:45:26 +0000 |
commit | 729eb631a8da3bc48cc2637e90d06b1c1da624f5 (patch) | |
tree | 66b2c62e5db360e974fc236250da96dfd55fdeb5 /content/public/test/test_utils.h | |
parent | 7fe1bf9bf077105d52b76210b142fb203e0a195b (diff) | |
download | chromium_src-729eb631a8da3bc48cc2637e90d06b1c1da624f5.zip chromium_src-729eb631a8da3bc48cc2637e90d06b1c1da624f5.tar.gz chromium_src-729eb631a8da3bc48cc2637e90d06b1c1da624f5.tar.bz2 |
Move ui_test_utils::RunMessageLoop to test_utils so that it can be reused by content_browsertests.
BUG=90448
Review URL: https://chromiumcodereview.appspot.com/10822030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/test/test_utils.h')
-rw-r--r-- | content/public/test/test_utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/public/test/test_utils.h b/content/public/test/test_utils.h index 8b92c31..503e9af 100644 --- a/content/public/test/test_utils.h +++ b/content/public/test/test_utils.h @@ -18,6 +18,11 @@ namespace content { +// Turns on nestable tasks, runs the message loop, then resets nestable tasks +// to what they were originally. Prefer this over MessageLoop::Run for in +// process browser tests that need to block until a condition is met. +void RunMessageLoop(); + // Variant of RunMessageLoop that takes RunLoop. void RunThisRunLoop(base::RunLoop* run_loop); |