DescriptionUpdate 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 #Messages
Total messages: 8 (0 generated)
|