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

Unified Diff: content/public/test/test_utils.h

Issue 15808008: GTTF: Remove message loop hooks from TestLauncherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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: content/public/test/test_utils.h
===================================================================
--- content/public/test/test_utils.h (revision 202993)
+++ content/public/test/test_utils.h (working copy)
@@ -34,6 +34,13 @@
// Variant of RunMessageLoop that takes RunLoop.
void RunThisRunLoop(base::RunLoop* run_loop);
+// Adds pre/post hooks to call when running a message loop.
+// DEPRECATED: Please do not use in new code.
+// TODO(phajdan.jr): Remove message loop hooks after switch to Aura.
+typedef base::Callback<void(base::RunLoop*)> RunMessageLoopHook;
+void AddPreRunMessageLoopHook(const RunMessageLoopHook& hook);
+void AddPostRunMessageLoopHook(const RunMessageLoopHook& hook);
+
// Turns on nestable tasks, runs all pending tasks in the message loop,
// then resets nestable tasks to what they were originally. Prefer this
// over MessageLoop::RunAllPending for in process browser tests to run

Powered by Google App Engine
This is Rietveld 408576698