forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 Review URL: https://codereview.chromium.org/405733003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285672 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
jrummell@chromium.org
committed
Jul 25, 2014
1 parent
62bcec5
commit 80ae1b9
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters