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

Unified Diff: base/task_scheduler/task_scheduler_impl.cc

Issue 2362253002: TaskScheduler: Add FlushForTesting(). (Closed)
Patch Set: Created 4 years, 3 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: base/task_scheduler/task_scheduler_impl.cc
diff --git a/base/task_scheduler/task_scheduler_impl.cc b/base/task_scheduler/task_scheduler_impl.cc
index d93c62023e8107b963f6747501dd253fd0da1173..d40fa1b76859ef2434dd6629cef22717857dc8f0 100644
--- a/base/task_scheduler/task_scheduler_impl.cc
+++ b/base/task_scheduler/task_scheduler_impl.cc
@@ -57,6 +57,10 @@ void TaskSchedulerImpl::Shutdown() {
task_tracker_.Shutdown();
}
+void TaskSchedulerImpl::FlushForTesting() {
+ task_tracker_.FlushForTesting();
+}
+
void TaskSchedulerImpl::JoinForTesting() {
#if DCHECK_IS_ON()
DCHECK(!join_for_testing_returned_.IsSet());

Powered by Google App Engine
This is Rietveld 408576698