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

Issue 2540593005: media: Fix a flaky AVDACodecAllocator test (Closed)

Created:
4 years ago by watk
Modified:
4 years ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Fix a flaky AVDACodecAllocator test This fixes a race condition where we previously asserted that both threads were stopped, but only after receiving a notification that the first had stopped. Now we don't assert that the second has stopped. It also includes some minor refactors: deleting TestInformation and injects the params directly, and splitting the failing test into two smaller tests. BUG=668291 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/d8c18fcf4f0e2e2e186319e6a439bfec73c4e796 Cr-Commit-Position: refs/heads/master@{#435698}

Patch Set 1 #

Patch Set 2 : Delete Testinformation #

Total comments: 2

Patch Set 3 : Fix the acutal bug! #

Patch Set 4 : Add dep for test clock #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -111 lines) Patch
M media/gpu/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/avda_codec_allocator.h View 1 3 chunks +4 lines, -16 lines 0 comments Download
M media/gpu/avda_codec_allocator.cc View 1 4 chunks +18 lines, -26 lines 0 comments Download
M media/gpu/avda_codec_allocator_unittest.cc View 1 2 8 chunks +31 lines, -69 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (21 generated)
watk
4 years ago (2016-11-30 01:02:19 UTC) #4
liberato (no reviews please)
https://codereview.chromium.org/2540593005/diff/40001/media/gpu/avda_codec_allocator_unittest.cc File media/gpu/avda_codec_allocator_unittest.cc (left): https://codereview.chromium.org/2540593005/diff/40001/media/gpu/avda_codec_allocator_unittest.cc#oldcode240 media/gpu/avda_codec_allocator_unittest.cc:240: ASSERT_FALSE(IsThreadRunning(TaskType::SW_CODEC)); i'm not sure why this thread must be ...
4 years ago (2016-11-30 06:47:30 UTC) #10
watk
https://codereview.chromium.org/2540593005/diff/40001/media/gpu/avda_codec_allocator_unittest.cc File media/gpu/avda_codec_allocator_unittest.cc (left): https://codereview.chromium.org/2540593005/diff/40001/media/gpu/avda_codec_allocator_unittest.cc#oldcode240 media/gpu/avda_codec_allocator_unittest.cc:240: ASSERT_FALSE(IsThreadRunning(TaskType::SW_CODEC)); On 2016/11/30 06:47:30, liberato wrote: > i'm not ...
4 years ago (2016-11-30 20:48:42 UTC) #11
liberato (no reviews please)
lgtm. thanks for fixing this -- it was broken in my original CL and I ...
4 years ago (2016-12-01 16:43:32 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/2540593005/80001
4 years ago (2016-12-01 20:04:38 UTC) #23
watk
Well it was pretty subtle, I read all those lines and had no idea where ...
4 years ago (2016-12-01 20:05:00 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-01 20:22:01 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-01 20:26:25 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d8c18fcf4f0e2e2e186319e6a439bfec73c4e796
Cr-Commit-Position: refs/heads/master@{#435698}

Powered by Google App Engine
This is Rietveld 408576698