|
|
DescriptionReplace 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 #Messages
Total messages: 61 (49 generated)
Description was changed from ========== Replace TestSimpleTaskRunner::GetPendingTasks with ReplacePendingTasks BUG= ========== to ========== Replace TestSimpleTaskRunner::GetPendingTasks with ReplacePendingTasks BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Replace TestSimpleTaskRunner::GetPendingTasks with ReplacePendingTasks BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
Patchset #1 (id:40001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== 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 ==========
tzik@chromium.org changed reviewers: + rockot@chromium.org
tzik@chromium.org changed reviewers: + pastarmovj@chromium.org
tzik@chromium.org changed reviewers: + danakj@chromium.org
PTAL to: danakj: //base, //cc pastarmovj: policy/ rockot: //extensions, //device
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_... File base/test/test_simple_task_runner.h (right): https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_... base/test/test_simple_task_runner.h:59: tracked_objects::Location GetPendingTaskLocationAt(size_t index) const; I don't think this is safe, in the time between NumPendingTasks and the call to this, the index may not be valid anymore since you're not holding the |lock_|?
lgtm for the policy changes. https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_... File base/test/test_simple_task_runner.h (right): https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_... 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: > I don't think this is safe, in the time between NumPendingTasks and the call to > this, the index may not be valid anymore since you're not holding the |lock_|? +1 Maybe take a snapshot of the deque with TakePendingTasks and assert its size and contents instead. Then you don't need this function at all.
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_... File base/test/test_simple_task_runner.h (right): https://codereview.chromium.org/2331423002/diff/140001/base/test/test_simple_... 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: > I don't think this is safe, in the time between NumPendingTasks and the call to > this, the index may not be valid anymore since you're not holding the |lock_|? Ah, right. I updated it to return a base::Optional. Other data races should be handled by the caller.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_... File extensions/common/one_shot_event_unittest.cc (right): https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_... extensions/common/one_shot_event_unittest.cc:38: runner->GetPendingTaskLocationAt(0); Proposal: Rewrite this test to TakePendingTasks instead. Add second test that runs the tasks and verifies i == 2. Remove this function from the API.
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_... File extensions/common/one_shot_event_unittest.cc (right): https://codereview.chromium.org/2331423002/diff/160001/extensions/common/one_... extensions/common/one_shot_event_unittest.cc:38: runner->GetPendingTaskLocationAt(0); On 2016/09/29 19:42:13, danakj wrote: > Proposal: Rewrite this test to TakePendingTasks instead. Add second test that > runs the tasks and verifies i == 2. Remove this function from the API. SG. Updated.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM
The CQ bit was checked by tzik@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rockot@chromium.org, pastarmovj@chromium.org Link to the patchset: https://codereview.chromium.org/2331423002/#ps180001 (title: "split test")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #7 (id:180001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/2d1f91c1ed29c73b81cf6a037435489242bb7aa3 Cr-Commit-Position: refs/heads/master@{#422699} |