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

Issue 2362253002: TaskScheduler: Add FlushForTesting(). (Closed)

Created:
4 years, 3 months ago by fdoray
Modified:
4 years, 2 months ago
Reviewers:
robliao, danakj, gab
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskScheduler: Add FlushForTesting(). Many browser tests depend on being able to wait until there are no pending undelayed tasks in the blocking pool (via content::RunAllBlockingPoolTasksUntilIdle). This CL brings this functionality to TaskScheduler. BUG=622400, 553459 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_tsan_rel_ng Committed: https://crrev.com/fe309b0183048023246ccbefaf0cf4df0f05e29b Cr-Commit-Position: refs/heads/master@{#420901}

Patch Set 1 #

Total comments: 8

Patch Set 2 : CR gab #3 #

Total comments: 8

Patch Set 3 : CR robliao #10 #

Patch Set 4 : self-review #

Total comments: 8

Patch Set 5 : (ignore this) #

Patch Set 6 : CR danakj #12 #

Patch Set 7 : CR robliao #13 #

Patch Set 8 : fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -95 lines) Patch
M base/task_scheduler/scheduler_worker_unittest.cc View 5 6 chunks +11 lines, -6 lines 0 comments Download
M base/task_scheduler/task_scheduler.h View 5 1 chunk +7 lines, -0 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl.h View 5 1 chunk +1 line, -0 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M base/task_scheduler/task_tracker.h View 1 2 3 4 5 6 5 chunks +31 lines, -0 lines 0 comments Download
M base/task_scheduler/task_tracker.cc View 1 2 3 4 5 4 chunks +110 lines, -73 lines 0 comments Download
M base/task_scheduler/task_tracker_unittest.cc View 1 2 3 4 5 6 7 8 chunks +177 lines, -16 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
fdoray
PTAL
4 years, 3 months ago (2016-09-23 14:26:57 UTC) #2
gab
lgtm % comments https://codereview.chromium.org/2362253002/diff/1/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/2362253002/diff/1/base/task_scheduler/task_tracker.cc#newcode161 base/task_scheduler/task_tracker.cc:161: subtle::NoBarrier_AtomicIncrement(&num_pending_undelayed_tasks_, 1); Suggest adding CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_tsan_rel_ng to ...
4 years, 3 months ago (2016-09-23 15:39:18 UTC) #3
fdoray
robliao@: PTAL Can I TBR this to danakj@ or should I get it reviewed by ...
4 years, 3 months ago (2016-09-23 15:56:51 UTC) #5
gab
lgtm++ Let's ask Dana just so she's aware of the addition of one more FlushForTesting() ...
4 years, 3 months ago (2016-09-23 17:05:25 UTC) #6
fdoray
danakj@: PTAL
4 years, 3 months ago (2016-09-23 17:11:20 UTC) #8
gab
On 2016/09/23 17:11:20, fdoray wrote: > danakj@: PTAL @danakj: mostly want you to be aware ...
4 years, 3 months ago (2016-09-23 17:15:45 UTC) #9
robliao
lgtm % comments. https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.cc#newcode232 base/task_scheduler/task_tracker.cc:232: void TaskTracker::ShutdownInternal() { Instead of ShutdownInternal, ...
4 years, 3 months ago (2016-09-23 17:24:30 UTC) #10
fdoray
robliao@: Done. danakj@: PTAL https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.cc#newcode232 base/task_scheduler/task_tracker.cc:232: void TaskTracker::ShutdownInternal() { On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 20:35:33 UTC) #11
danakj
I didn't super look at the implementation details but LGTM % robliao/gab https://codereview.chromium.org/2362253002/diff/60001/base/task_scheduler/scheduler_worker_unittest.cc File base/task_scheduler/scheduler_worker_unittest.cc ...
4 years, 3 months ago (2016-09-23 20:51:41 UTC) #12
robliao
https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.h File base/task_scheduler/task_tracker.h (right): https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.h#newcode112 base/task_scheduler/task_tracker.h:112: mutable SchedulerLock flush_for_testing_lock_; On 2016/09/23 20:35:33, fdoray wrote: > ...
4 years, 3 months ago (2016-09-23 21:05:46 UTC) #13
fdoray
https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.h File base/task_scheduler/task_tracker.h (right): https://codereview.chromium.org/2362253002/diff/20001/base/task_scheduler/task_tracker.h#newcode112 base/task_scheduler/task_tracker.h:112: mutable SchedulerLock flush_for_testing_lock_; On 2016/09/23 21:05:46, robliao wrote: > ...
4 years, 3 months ago (2016-09-23 21:09:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362253002/120001
4 years, 3 months ago (2016-09-23 21:10:24 UTC) #17
robliao
lgtm. Thanks!
4 years, 3 months ago (2016-09-23 21:12:59 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/74422)
4 years, 3 months ago (2016-09-23 21:20:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362253002/140001
4 years, 2 months ago (2016-09-26 12:02:22 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/147950)
4 years, 2 months ago (2016-09-26 13:20:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362253002/140001
4 years, 2 months ago (2016-09-26 13:40:50 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-09-26 16:19:17 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 16:21:42 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fe309b0183048023246ccbefaf0cf4df0f05e29b
Cr-Commit-Position: refs/heads/master@{#420901}

Powered by Google App Engine
This is Rietveld 408576698