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

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

Issue 380993002: Upstream RunBlockingPoolTask(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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..9896482037d357d813c9b3b0c7a25ffac2a40dc3 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,15 @@ void RunAllPendingInMessageLoop();
// thread |thread_id| have been processed.
void RunAllPendingInMessageLoop(BrowserThread::ID thread_id);
+// Runs all tasks posted to the blocking pool, including subsequent tasks posted
sky 2014/07/11 16:37:54 You're description seems overly complicated, maybe
mtomasz 2014/07/14 07:33:57 Done.
+// to the UI message loop and the blocking pool.
+//
+// A task is often posted to the blocking pool with PostTaskAndReply(). In
+// that case, a task is posted back to the UI message loop, which can again
+// post a task to the blocking pool. This function processes these tasks
+// repeatedly.
+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