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

Issue 2514293004: Modernize TimerTests prior to https://codereview.chromium.org/2491613004 (Closed)

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

Description

Modernize TimerTests prior to https://codereview.chromium.org/2491613004 https://codereview.chromium.org/2491613004 failed TimerTest.OneShotTimer_CustomTaskRunner with the old tests per lacking a TaskRunnerHandle instance. Fixing that led to a bunch of cleanup. Decoupling from that CL to make it clear that the new tests pass in the old world and that the new world then passes the tests without tweaking them. Mostly moving towards RunLoop/TaskRunners/WaitableEvents to ease a few things. Also removed incorrect DCHECK in Timer::PostNewScheduledTask() which was tripped by the new version of TimerTest.OneShotTimer_CustomTaskRunner BUG=587199, 552633 Committed: https://crrev.com/175490c1043e6c6ce85d42eaeb1dcfb34b2c9267 Cr-Commit-Position: refs/heads/master@{#434764}

Patch Set 1 : #

Total comments: 15

Patch Set 2 : review:danakj #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -197 lines) Patch
M base/timer/timer.cc View 1 chunk +1 line, -3 lines 0 comments Download
M base/timer/timer_unittest.cc View 1 17 chunks +241 lines, -194 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (27 generated)
gab
Dana PTAL, extracted test refactor from https://codereview.chromium.org/2491613004/.
4 years ago (2016-11-22 20:59:01 UTC) #7
danakj
https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc File base/timer/timer_unittest.cc (right): https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc#newcode70 base/timer/timer_unittest.cc:70: timer_->SetTaskRunner(task_runner); move https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc#newcode72 base/timer/timer_unittest.cc:72: quit_closure_ = Bind(IgnoreResult(&SingleThreadTaskRunner::PostTask), It took ...
4 years ago (2016-11-23 19:47:10 UTC) #10
gab
Thanks, done, PTAnL. https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc File base/timer/timer_unittest.cc (right): https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc#newcode70 base/timer/timer_unittest.cc:70: timer_->SetTaskRunner(task_runner); On 2016/11/23 19:47:10, danakj wrote: ...
4 years ago (2016-11-24 04:14:18 UTC) #12
gab
ping danakj, thanks
4 years ago (2016-11-28 20:04:19 UTC) #27
danakj
LGTM https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc File base/timer/timer_unittest.cc (right): https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc#newcode620 base/timer/timer_unittest.cc:620: } // namespace On 2016/11/24 04:14:17, gab wrote: ...
4 years ago (2016-11-28 20:59:49 UTC) #28
gab
On 2016/11/28 20:59:49, danakj wrote: > LGTM > > https://codereview.chromium.org/2514293004/diff/40001/base/timer/timer_unittest.cc > File base/timer/timer_unittest.cc (right): > ...
4 years ago (2016-11-28 21:06:57 UTC) #29
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/2514293004/70001
4 years ago (2016-11-28 21:07:54 UTC) #31
danakj
On Mon, Nov 28, 2016 at 1:06 PM, <gab@chromium.org> wrote: > On 2016/11/28 20:59:49, danakj ...
4 years ago (2016-11-28 21:10:17 UTC) #32
gab
On 2016/11/28 21:10:17, danakj wrote: > On Mon, Nov 28, 2016 at 1:06 PM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=gab@chromium.org> ...
4 years ago (2016-11-28 21:13:02 UTC) #33
danakj
On Mon, Nov 28, 2016 at 1:13 PM, <gab@chromium.org> wrote: > On 2016/11/28 21:10:17, danakj ...
4 years ago (2016-11-28 21:30:26 UTC) #34
gab
On 2016/11/28 21:30:26, danakj wrote: > On Mon, Nov 28, 2016 at 1:13 PM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=gab@chromium.org> ...
4 years ago (2016-11-28 22:04:15 UTC) #35
commit-bot: I haz the power
Committed patchset #2 (id:70001)
4 years ago (2016-11-28 23:05:21 UTC) #38
commit-bot: I haz the power
4 years ago (2016-11-28 23:08:08 UTC) #40
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/175490c1043e6c6ce85d42eaeb1dcfb34b2c9267
Cr-Commit-Position: refs/heads/master@{#434764}

Powered by Google App Engine
This is Rietveld 408576698