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

Issue 2573733002: VEA unittest: fix TestSimpleEncode crash while decoder fails (Closed)

Created:
4 years ago by hywu
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

VEA unittest: fix TestSimpleEncode crash while decoder fails If VideoFrameQualityValidator cannot get a decoder, the TestSimpleEncode test would abort without destroying the encoder first and thus causes a crash. This change makes the test to fail properly. BUG=672403 TEST=Run VEA unittest built for external chromium on Kevin. 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/3eb047232f64eeec5cb234614a30734717520e38 Cr-Commit-Position: refs/heads/master@{#438133}

Patch Set 1 #

Total comments: 1

Patch Set 2 : VEA unittest: fix TestSimpleEncode crash while decoder fails #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M media/gpu/video_encode_accelerator_unittest.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
hywu1
4 years ago (2016-12-13 08:27:03 UTC) #3
kcwu
lgtm
4 years ago (2016-12-13 08:40:11 UTC) #4
wuchengli
https://codereview.chromium.org/2573733002/diff/1/media/gpu/video_encode_accelerator_unittest.cc File media/gpu/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/2573733002/diff/1/media/gpu/video_encode_accelerator_unittest.cc#newcode2084 media/gpu/video_encode_accelerator_unittest.cc:2084: if (wrong_state) { Can we use if (HasFailure())? Same ...
4 years ago (2016-12-13 09:18:32 UTC) #7
hywu1
On 2016/12/13 09:18:32, wuchengli wrote: > https://codereview.chromium.org/2573733002/diff/1/media/gpu/video_encode_accelerator_unittest.cc > File media/gpu/video_encode_accelerator_unittest.cc (right): > > https://codereview.chromium.org/2573733002/diff/1/media/gpu/video_encode_accelerator_unittest.cc#newcode2084 > ...
4 years ago (2016-12-13 09:40:30 UTC) #8
wuchengli
lgtm
4 years ago (2016-12-13 10:01:51 UTC) #9
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/2573733002/20001
4 years ago (2016-12-13 11:53:51 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-13 11:57:58 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-13 11:59:46 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3eb047232f64eeec5cb234614a30734717520e38
Cr-Commit-Position: refs/heads/master@{#438133}

Powered by Google App Engine
This is Rietveld 408576698