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

Issue 2331423002: Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks (Closed)

Created:
4 years, 3 months ago by tzik
Modified:
4 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, dcheng, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks TestSimpleTaskRunner::GetPendingTasks copies whole set of the pending task for each invocation. That prevents a migration to the non-copyable Callback. This CL replaces it with newly added TakePendingTasks and others. BUG=554299 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/2d1f91c1ed29c73b81cf6a037435489242bb7aa3 Cr-Commit-Position: refs/heads/master@{#422699}

Patch Set 1 : rebase #

Patch Set 2 : win fix #

Patch Set 3 : win fix #

Patch Set 4 : rebase #

Patch Set 5 : fix #

Total comments: 3

Patch Set 6 : make a Location result base::Optional #

Total comments: 2

Patch Set 7 : split test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -26 lines) Patch
M base/test/test_simple_task_runner.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M base/test/test_simple_task_runner.cc View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M cc/base/delayed_unique_notifier_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M components/policy/core/common/cloud/external_policy_data_updater_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M components/policy/core/common/policy_statistics_collector_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_win_unittest.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_win.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M extensions/common/one_shot_event_unittest.cc View 1 2 3 4 5 6 2 chunks +18 lines, -3 lines 0 comments Download

Messages

Total messages: 61 (49 generated)
tzik
PTAL to: danakj: //base, //cc pastarmovj: policy/ rockot: //extensions, //device
4 years, 3 months ago (2016-09-21 17:16:04 UTC) #36
Ken Rockot(use gerrit already)
lgtm
4 years, 3 months ago (2016-09-21 22:03:55 UTC) #39
danakj
https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_task_runner.h File base/test/test_simple_task_runner.h (right): https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_task_runner.h#newcode59 base/test/test_simple_task_runner.h:59: tracked_objects::Location GetPendingTaskLocationAt(size_t index) const; I don't think this is ...
4 years, 3 months ago (2016-09-21 22:16:59 UTC) #40
pastarmovj
lgtm for the policy changes. https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_task_runner.h File base/test/test_simple_task_runner.h (right): https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_task_runner.h#newcode59 base/test/test_simple_task_runner.h:59: tracked_objects::Location GetPendingTaskLocationAt(size_t index) const; ...
4 years, 3 months ago (2016-09-22 08:12:51 UTC) #41
tzik
https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_task_runner.h File base/test/test_simple_task_runner.h (right): https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_task_runner.h#newcode59 base/test/test_simple_task_runner.h:59: tracked_objects::Location GetPendingTaskLocationAt(size_t index) const; On 2016/09/21 22:16:59, danakj wrote: ...
4 years, 2 months ago (2016-09-29 05:58:04 UTC) #44
tzik
4 years, 2 months ago (2016-09-29 05:58:05 UTC) #45
danakj
https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_shot_event_unittest.cc File extensions/common/one_shot_event_unittest.cc (right): https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_shot_event_unittest.cc#newcode38 extensions/common/one_shot_event_unittest.cc:38: runner->GetPendingTaskLocationAt(0); Proposal: Rewrite this test to TakePendingTasks instead. Add ...
4 years, 2 months ago (2016-09-29 19:42:14 UTC) #48
tzik
https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_shot_event_unittest.cc File extensions/common/one_shot_event_unittest.cc (right): https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_shot_event_unittest.cc#newcode38 extensions/common/one_shot_event_unittest.cc:38: runner->GetPendingTaskLocationAt(0); On 2016/09/29 19:42:13, danakj wrote: > Proposal: Rewrite ...
4 years, 2 months ago (2016-09-30 04:00:27 UTC) #51
danakj
LGTM
4 years, 2 months ago (2016-09-30 19:31:40 UTC) #54
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/2331423002/180001
4 years, 2 months ago (2016-10-04 01:59:23 UTC) #57
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 2 months ago (2016-10-04 03:58:25 UTC) #59
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 04:02:04 UTC) #61
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2d1f91c1ed29c73b81cf6a037435489242bb7aa3
Cr-Commit-Position: refs/heads/master@{#422699}

Powered by Google App Engine
This is Rietveld 408576698