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

Issue 405733003: Update browser tests to support upcoming EME parameter type changes. (Closed)

Created:
6 years, 5 months ago by jrummell
Modified:
6 years, 5 months ago
Reviewers:
ddorwin, shadi
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update browser tests to support upcoming EME parameter type changes. The EME spec is now using ArrayBuffer/ArrayBufferView instead of Uint8Array as the type for data buffers. Calls from JavaScript aren't affected as Uint8Array is an ArrayBufferView. However, "message" events now pass back an ArrayBuffer and the tests expect Uint8Array. This converts the returned message to a Uint8Array to keep the code working. This change works with and without the upcoming changes. If Uint8Array is passed back, then the result is that another copy of the view is made. BUG=358271 TEST=encrypted media browser_tests pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285672

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changes #

Patch Set 3 : moved files #

Total comments: 4

Patch Set 4 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M media/test/data/eme_player_js/utils.js View 1 2 3 3 chunks +11 lines, -6 lines 0 comments Download
M media/test/data/eme_player_js/widevine_player.js View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jrummell
PTAL.
6 years, 5 months ago (2014-07-18 23:23:39 UTC) #1
ddorwin
lgtm% comments https://codereview.chromium.org/405733003/diff/1/chrome/test/data/media/eme_player_js/player_utils.js File chrome/test/data/media/eme_player_js/player_utils.js (right): https://codereview.chromium.org/405733003/diff/1/chrome/test/data/media/eme_player_js/player_utils.js#newcode46 chrome/test/data/media/eme_player_js/player_utils.js:46: Utils.convertToUint8Array(message.message))) { Hide this in iHBM()? https://codereview.chromium.org/405733003/diff/1/chrome/test/data/media/eme_player_js/utils.js ...
6 years, 5 months ago (2014-07-20 22:35:06 UTC) #2
jrummell
Updated. PS2 is the changes, PS3 is the rebase now that the files have moved ...
6 years, 5 months ago (2014-07-23 22:30:06 UTC) #3
shadi
LGTM % nit https://codereview.chromium.org/405733003/diff/40001/media/test/data/eme_player_js/utils.js File media/test/data/eme_player_js/utils.js (right): https://codereview.chromium.org/405733003/diff/40001/media/test/data/eme_player_js/utils.js#newcode40 media/test/data/eme_player_js/utils.js:40: // Assume it is ArrayBuffer or ...
6 years, 5 months ago (2014-07-24 17:46:51 UTC) #4
jrummell
Thanks for the reviews. https://codereview.chromium.org/405733003/diff/40001/media/test/data/eme_player_js/utils.js File media/test/data/eme_player_js/utils.js (right): https://codereview.chromium.org/405733003/diff/40001/media/test/data/eme_player_js/utils.js#newcode40 media/test/data/eme_player_js/utils.js:40: // Assume it is ArrayBuffer ...
6 years, 5 months ago (2014-07-25 19:34:06 UTC) #5
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 5 months ago (2014-07-25 19:34:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/405733003/60001
6 years, 5 months ago (2014-07-25 19:35:16 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 20:50:20 UTC) #8
Message was sent while issue was closed.
Change committed as 285672

Powered by Google App Engine
This is Rietveld 408576698