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

Issue 2084053002: EME: Update tests so 'audioCapabilities' always provided (Closed)

Created:
4 years, 6 months ago by jrummell
Modified:
4 years, 5 months ago
Reviewers:
xhwang, ddorwin
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

EME: Update tests so 'audioCapabilities' always provided EME spec now requires that one of audioCapabilities or videoCapabilities be specified when calling requestMediaKeySystemAccess, so update the tests to always provide audioCapabilities (or both where required). Chrome does not currently enforce this, but will have to in order to be spec compliant. BUG=442566 TEST=updated tests pass Committed: https://crrev.com/51111720ce9dc84fce16319a239126b2c69ca6da Cr-Commit-Position: refs/heads/master@{#406687}

Patch Set 1 #

Total comments: 4

Patch Set 2 : configuration functions #

Total comments: 6

Patch Set 3 : avConfiguration #

Total comments: 14

Patch Set 4 : auto detection of initDataType #

Total comments: 25

Patch Set 5 : changes (+rebase) #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -116 lines) Patch
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clear-key-invalid-license.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.html View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-events.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-generate-request-disallowed-input.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-sessions.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-release.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-release-noreference.html View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-not-callable-after-createsession.html View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-onencrypted.html View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-encrypted-and-clear-sources.html View 1 2 3 4 2 chunks +9 lines, -3 lines 2 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-setmediakeys-after-src.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-setmediakeys-before-src.html View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-after-setmediakeys.html View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-at-same-time.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-to-multiple-video-elements.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-unique-origin.html View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-update-disallowed-input.html View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js View 1 2 3 4 3 chunks +51 lines, -18 lines 1 comment Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
jrummell
PTAL. The common function is in encrypted-media-utils.js, with the others simply using the new function. ...
4 years, 6 months ago (2016-06-21 17:34:13 UTC) #2
ddorwin
https://codereview.chromium.org/2084053002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html (right): https://codereview.chromium.org/2084053002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html#newcode23 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html:23: return requestClearKeySystemAccessForInitType(initDataType); Since these tests (in general, not necessarily ...
4 years, 6 months ago (2016-06-21 22:41:00 UTC) #3
ddorwin
https://codereview.chromium.org/2084053002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js (right): https://codereview.chromium.org/2084053002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js#newcode81 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js:81: { contentType: 'video/webm; codecs="vp8"' } If we're going to ...
4 years, 6 months ago (2016-06-21 22:42:48 UTC) #4
jrummell
Updated to use configuration functions to provide the second parameter. https://codereview.chromium.org/2084053002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html (right): https://codereview.chromium.org/2084053002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html#newcode23 ...
4 years, 6 months ago (2016-06-23 22:04:21 UTC) #7
ddorwin
https://codereview.chromium.org/2084053002/diff/40001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html (right): https://codereview.chromium.org/2084053002/diff/40001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html#newcode18 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html:18: return navigator.requestMediaKeySystemAccess('org.w3.clearkey', simpleConfigurationForInitDataType(initDataType)); As discussed, if we're not actually ...
4 years, 6 months ago (2016-06-23 22:52:38 UTC) #8
jrummell
Updated. https://codereview.chromium.org/2084053002/diff/40001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html (right): https://codereview.chromium.org/2084053002/diff/40001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html#newcode18 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html:18: return navigator.requestMediaKeySystemAccess('org.w3.clearkey', simpleConfigurationForInitDataType(initDataType)); On 2016/06/23 22:52:38, ddorwin wrote: ...
4 years, 6 months ago (2016-06-24 00:12:29 UTC) #10
ddorwin
More thoughts. I'm not sure how generic we want to make the Blink tests. Let's ...
4 years, 6 months ago (2016-06-24 03:05:23 UTC) #11
ddorwin
https://codereview.chromium.org/2084053002/diff/80001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js (right): https://codereview.chromium.org/2084053002/diff/80001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js#newcode107 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js:107: return [ { (Especially for cases where more than ...
4 years, 6 months ago (2016-06-24 21:24:56 UTC) #12
jrummell
Updated to automatically determine initDataType. PTAL. https://codereview.chromium.org/2084053002/diff/80001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html (right): https://codereview.chromium.org/2084053002/diff/80001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html#newcode20 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html:20: getSupportedInitDataType().then(function(type) { On ...
4 years, 5 months ago (2016-06-28 23:04:26 UTC) #13
ddorwin
Thank you. LG. Some minor suggestions, some of which we can address separately. https://codereview.chromium.org/2084053002/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html File ...
4 years, 5 months ago (2016-07-20 17:05:28 UTC) #14
jrummell
Updated. Includes rebase to pick up recent changes in encrypted-media-keystatuses.html. https://codereview.chromium.org/2084053002/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html (right): https://codereview.chromium.org/2084053002/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html#newcode37 ...
4 years, 5 months ago (2016-07-20 19:07:49 UTC) #15
ddorwin
LGTM with some minor suggestions for future improvements. https://codereview.chromium.org/2084053002/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html (right): https://codereview.chromium.org/2084053002/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html#newcode37 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-check-init-data-type.html:37: return ...
4 years, 5 months ago (2016-07-20 19:34:21 UTC) #16
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/2084053002/120001
4 years, 5 months ago (2016-07-20 19:34:52 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-07-20 22:14:20 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 22:15:46 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/51111720ce9dc84fce16319a239126b2c69ca6da
Cr-Commit-Position: refs/heads/master@{#406687}

Powered by Google App Engine
This is Rietveld 408576698