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

Issue 2808373002: Fix PlatformInfo variation for mime util IsCodecSupportedOnAndroidTest (Closed)

Created:
3 years, 8 months ago by pavor
Modified:
3 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PlatformInfo variation for mime util IsCodecSupportedOnAndroidTest The parameterized template function RunCodecSupportTest is supposed to invoke tested callback with different combinations of PlatformInfo settings, but it actually used only initial values of PlatformInfo fields. Also it seems that H264 is always supported for non-encrypted video, so the test IsCodecSupportedOnAndroidTest.ClearCodecBehavior should be corrected. This has been revealed only after fixing parameter variation. Initial changeset https://codereview.chromium.org/2804883007 was reverted, I was accessing a vector at index just before checking the index vs vector size. This time I moved access of the states vector into loop body, and split RUN_TEST_VECTOR into two macros: RUN_TEST_VECTOR_BEGIN and RUN_TEST_VECTOR_END. R=chcunningham, dalecurtis BUG=709428 Review-Url: https://codereview.chromium.org/2808373002 Cr-Commit-Position: refs/heads/master@{#463968} Committed: https://chromium.googlesource.com/chromium/src/+/56a00719145e7f3f690cbeabb6025e5420932782

Patch Set 1 #

Total comments: 2

Patch Set 2 : add blank line above RUN_TEST_VECTOR_XXX undefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -18 lines) Patch
M media/base/mime_util_unittest.cc View 1 4 chunks +19 lines, -18 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
pavor
3 years, 8 months ago (2017-04-11 11:45:47 UTC) #1
pavor
On 2017/04/11 11:45:47, pavor wrote: I do not have experience with reverted CLs, and I ...
3 years, 8 months ago (2017-04-11 11:48:45 UTC) #2
DaleCurtis
This seems the same as the reverted CL? Am I blind? :) https://codereview.chromium.org/2808373002/diff/1/media/base/mime_util_unittest.cc File media/base/mime_util_unittest.cc ...
3 years, 8 months ago (2017-04-11 19:04:46 UTC) #3
DaleCurtis
Oh I see, you accidentally uploaded to the old cl, which is why they look ...
3 years, 8 months ago (2017-04-11 19:07:13 UTC) #4
pavor
On 2017/04/11 19:07:13, DaleCurtis wrote: > Oh I see, you accidentally uploaded to the old ...
3 years, 8 months ago (2017-04-12 07:03:12 UTC) #5
pavor
https://codereview.chromium.org/2808373002/diff/1/media/base/mime_util_unittest.cc File media/base/mime_util_unittest.cc (right): https://codereview.chromium.org/2808373002/diff/1/media/base/mime_util_unittest.cc#newcode93 media/base/mime_util_unittest.cc:93: #undef RUN_TEST_VECTOR_BEGIN On 2017/04/11 19:04:45, DaleCurtis wrote: > Blank ...
3 years, 8 months ago (2017-04-12 07:03:50 UTC) #6
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/2808373002/20001
3 years, 8 months ago (2017-04-12 08:35:02 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 09:04:28 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/56a00719145e7f3f690cbeabb602...

Powered by Google App Engine
This is Rietveld 408576698