summaryrefslogtreecommitdiffstats
path: root/content/public/test/test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/test/test_utils.h')
-rw-r--r--content/public/test/test_utils.h5
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);