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

Unified Diff: base/test/scoped_task_scheduler.cc

Issue 2750823002: Flush TaskScheduler in content::RunAllBlockingPoolTasksUntilIdle(). (Closed)
Patch Set: add rununtilidle in TestTaskScheduler::FlushForTesting Created 3 years, 9 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
« no previous file with comments | « no previous file | content/public/test/test_utils.h » ('j') | content/public/test/test_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/scoped_task_scheduler.cc
diff --git a/base/test/scoped_task_scheduler.cc b/base/test/scoped_task_scheduler.cc
index 61ed2c7730ffd0f30c79ff744ceebe122290db5d..0bb35a39e421e8efca6f6b4ae5cfe428991b9052 100644
--- a/base/test/scoped_task_scheduler.cc
+++ b/base/test/scoped_task_scheduler.cc
@@ -188,7 +188,7 @@ void TestTaskScheduler::Shutdown() {
}
void TestTaskScheduler::FlushForTesting() {
- NOTREACHED();
+ RunLoop().RunUntilIdle();
}
void TestTaskScheduler::JoinForTesting() {
« no previous file with comments | « no previous file | content/public/test/test_utils.h » ('j') | content/public/test/test_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698