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

Issue 2434783002: Use OnceClosure in TestPendingTask (Closed)

Created:
4 years, 2 months ago by tzik
Modified:
3 years, 10 months ago
Reviewers:
danakj, scheib, ortuno, dcheng, mmenke
CC:
chromium-reviews, cc-bugs_chromium.org, cbentzel+watch_chromium.org, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use OnceClosure in TestPendingTask This CL replaces base::Callback in TestPendingTask with base::OnceClosure, as a preparation of a similar migration of base::TaskRunner. Review-Url: https://codereview.chromium.org/2434783002 Cr-Commit-Position: refs/heads/master@{#446583} Committed: https://chromium.googlesource.com/chromium/src/+/a6f0007ae2a8d785d347ef9887bdd18a23605978

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 13

Patch Set 3 : . #

Patch Set 4 : +comment #

Patch Set 5 : rebase #

Patch Set 6 : +comment. s/UnsafeConvertOnceClosureToRepeating/RunOnceClosure + Bind/ #

Patch Set 7 : win buildfix #

Total comments: 4

Patch Set 8 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -49 lines) Patch
M base/test/scoped_mock_time_message_loop_task_runner.cc View 1 2 3 4 5 3 chunks +13 lines, -2 lines 0 comments Download
M base/test/scoped_mock_time_message_loop_task_runner_unittest.cc View 1 2 3 4 3 chunks +16 lines, -5 lines 0 comments Download
M base/test/test_mock_time_task_runner.cc View 1 2 3 4 5 6 7 6 chunks +22 lines, -5 lines 0 comments Download
M base/test/test_pending_task.h View 1 2 4 chunks +7 lines, -2 lines 0 comments Download
M base/test/test_pending_task.cc View 1 chunk +3 lines, -1 line 0 comments Download
M base/test/test_simple_task_runner.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/base/delayed_unique_notifier_unittest.cc View 11 chunks +11 lines, -11 lines 0 comments Download
M cc/test/ordered_simple_task_runner.h View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M cc/test/ordered_simple_task_runner.cc View 1 2 3 5 chunks +21 lines, -8 lines 0 comments Download
M cc/test/ordered_simple_task_runner_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_win.cc View 1 2 3 4 5 6 2 chunks +14 lines, -6 lines 0 comments Download
M net/quic/test_tools/test_task_runner.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 66 (47 generated)
tzik
PTAL
4 years, 2 months ago (2016-10-20 14:59:29 UTC) #13
danakj
https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc File base/test/test_mock_time_task_runner.cc (right): https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc#newcode93 base/test/test_mock_time_task_runner.cc:93: DISALLOW_COPY_AND_ASSIGN(TestOrderedPendingTask); private https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc#newcode253 base/test/test_mock_time_task_runner.cc:253: std::move(task_info.task).Run(); I think we should ...
4 years, 2 months ago (2016-10-20 20:07:46 UTC) #14
tzik
https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc File base/test/test_mock_time_task_runner.cc (right): https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc#newcode93 base/test/test_mock_time_task_runner.cc:93: DISALLOW_COPY_AND_ASSIGN(TestOrderedPendingTask); On 2016/10/20 20:07:46, danakj wrote: > private Done. ...
4 years, 1 month ago (2016-10-27 08:20:49 UTC) #19
danakj
LGTM https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc File base/test/test_mock_time_task_runner.cc (right): https://codereview.chromium.org/2434783002/diff/20001/base/test/test_mock_time_task_runner.cc#newcode253 base/test/test_mock_time_task_runner.cc:253: std::move(task_info.task).Run(); On 2016/10/27 08:20:49, tzik wrote: > On ...
4 years, 1 month ago (2016-10-27 21:15:21 UTC) #20
tzik
Let me revive this CL. dcheng: This is the other approach to migrate TestPendingTask to ...
3 years, 11 months ago (2017-01-23 10:45:51 UTC) #31
dcheng
I think I prefer this -- it's a bit simpler, and hopefully we can clean ...
3 years, 11 months ago (2017-01-24 09:15:52 UTC) #36
tzik
Adding ortuno@ and mmenke@ for OWNERS review. PTAL to: ortuno: //device/bluetooth mmenke: //net https://codereview.chromium.org/2434783002/diff/120001/base/test/test_mock_time_task_runner.cc File ...
3 years, 11 months ago (2017-01-24 11:46:27 UTC) #41
tzik
...! Forgot to add them to "Reviews" form. Adding ortuno@ and mmenke@ for OWNERS review. ...
3 years, 11 months ago (2017-01-24 14:20:27 UTC) #43
mmenke
On 2017/01/24 14:20:27, tzik wrote: > ...! Forgot to add them to "Reviews" form. > ...
3 years, 11 months ago (2017-01-24 15:43:02 UTC) #44
tzik
ortuno seems not around. scheib: Could you ptal to //device/bluetooth change?
3 years, 11 months ago (2017-01-26 15:14:53 UTC) #46
scheib
lgtm
3 years, 11 months ago (2017-01-26 18:40:11 UTC) #47
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/2434783002/140001
3 years, 11 months ago (2017-01-26 19:20:06 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_FAILED, no build URL)
3 years, 11 months ago (2017-01-26 19:24:43 UTC) #52
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/2434783002/140001
3 years, 11 months ago (2017-01-26 23:51:38 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_FAILED, no build URL)
3 years, 11 months ago (2017-01-27 00:40:17 UTC) #56
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/2434783002/140001
3 years, 10 months ago (2017-01-27 02:37:06 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_FAILED, no build URL)
3 years, 10 months ago (2017-01-27 02:40:27 UTC) #60
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/2434783002/140001
3 years, 10 months ago (2017-01-27 03:55:33 UTC) #63
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 04:03:14 UTC) #66
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/a6f0007ae2a8d785d347ef9887bd...

Powered by Google App Engine
This is Rietveld 408576698