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

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

Issue 380993002: Upstream RunBlockingPoolTask(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 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: content/public/test/test_utils.h
diff --git a/content/public/test/test_utils.h b/content/public/test/test_utils.h
index bf3e1f8d62f7b14fcc60ef3100bff6ff3592b249..ce49040188bbcdf3f1c37e13546ad5b86ff455bf 100644
--- a/content/public/test/test_utils.h
+++ b/content/public/test/test_utils.h
@@ -18,7 +18,7 @@
namespace base {
class Value;
-}
+} // namespace base
// A collection of functions designed for use with unit and browser tests.
@@ -44,6 +44,10 @@ void RunAllPendingInMessageLoop();
// thread |thread_id| have been processed.
void RunAllPendingInMessageLoop(BrowserThread::ID thread_id);
+// Runs until both the blocking pool and the current message loop are empty
+// (have no more scheduled tasks) and no tasks are running.
+void RunAllBlockingPoolTasksUntilIdle();
+
// Get task to quit the given RunLoop. It allows a few generations of pending
// tasks to run as opposed to run_loop->QuitClosure().
base::Closure GetQuitTaskForRunLoop(base::RunLoop* run_loop);

Powered by Google App Engine
This is Rietveld 408576698