Closed
Bug 1055393
Opened 10 years ago
Closed 10 years ago
[EME] Unit tests for GMPStorage
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: cpearce, Assigned: cpearce)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
40.64 KB,
patch
|
eflores
:
review+
|
Details | Diff | Splinter Review |
We need unit tests for GMPStorage.
We need automated tests that test at least that:
* Reading an empty record returns 0 bytes.
* Writing and then reading a records work.
* Writing a record replaces its contents, truncating the length of the record to the new record's length. The new record's length can be 0.
* Storage for other origins should not be accessible.
* Storage works during async shutdown.
* Records cannot be opened by multiple clients at once.
* Using GMPStorage from non main thread fails.
* Private Browsing mode is respected. (Not sure if this is possible in a gtest.)
Assignee | ||
Comment 1•10 years ago
|
||
Add continnuation-hell gtests for GMPStorage, including verifying private browsing mode and node id generation.
Attachment #8507623 -
Flags: review?(edwin)
Assignee | ||
Comment 2•10 years ago
|
||
A few more details about the patch/tests:
* We send messages from parent to child GMP through GMPDecryptor, in order to instruct the child process which APIs to exercise and how.
* There's a basic "write some data etc" test that the child runs relatively autonomously, and other patches that test cross origin and PB mode which are driven from the parent.
Jesup: Are you OK with me adding a GMPDecryptor interface to the gmp-fake plugin that tests GMPStorage, rather than being a functioning decryptor?
Flags: needinfo?(rjesup)
Assignee | ||
Comment 4•10 years ago
|
||
try -a:
https://tbpl.mozilla.org/?tree=Try&rev=3e91ff2d58af
And hopefully with the B2G ICS Emulator build failure fixed:
https://tbpl.mozilla.org/?tree=Try&rev=59c9838064ae
Assignee | ||
Comment 5•10 years ago
|
||
Updated patch on top of changes in bug 1060192, as the gmp-clear-storage operation is no longer blocking, we have to wait for a gmp-clear-storage-complete notification before we can assume storage is cleared.
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=359d5b580d3b
https://tbpl.mozilla.org/?tree=Try&rev=359d5b580d3b
Attachment #8507623 -
Attachment is obsolete: true
Attachment #8507623 -
Flags: review?(edwin)
Attachment #8507725 -
Flags: review?(edwin)
Assignee | ||
Comment 6•10 years ago
|
||
s/override/MOZ_OVERRIDE/g
https://tbpl.mozilla.org/?tree=Try&rev=2bf4d88af680
Assignee | ||
Updated•10 years ago
|
OS: Windows 8.1 → All
Hardware: x86_64 → All
Assignee | ||
Comment 7•10 years ago
|
||
Missed a couple of 'override's...
https://tbpl.mozilla.org/?tree=Try&rev=8f7ee5302793
Attachment #8507725 -
Flags: review?(edwin) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Assignee | ||
Comment 10•10 years ago
|
||
Mass update firefox-status to track EME uplift.
You need to log in
before you can comment on or make changes to this bug.
Description
•