Commit Graph

254 Commits

Author SHA1 Message Date
Ryan VanderMeulen
340794d0a9 Backed out 2 changesets (bug 1332619) by request.
Backed out changeset 08d0dccfb2c3 (bug 1332619)
Backed out changeset a406da1d258c (bug 1332619)

--HG--
extra : rebase_source : 0b6a5f2623967fe35eaa60941571feb3e91fecb5
2017-01-23 11:25:11 -05:00
Andreas Pehrson
762080ae3d Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV

--HG--
extra : rebase_source : c2aef01ea7b2c9e61576af3b13b1a10b794e253d
extra : source : f06f4ff1d49007e0d6a2506f87df3c365f3a2c5f
2017-01-23 15:32:24 +01:00
Bevis Tseng
f2bdbd8fd1 Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
MozReview-Commit-ID: 9yJi3iDtVZG

--HG--
extra : rebase_source : 39c720ccc576ed9247b5e8abb70d99d7873b3ad6
2016-11-29 13:03:36 +08:00
Phil Ringnalda
0fae2ed52a Backed out 2 changesets (bug 1332619) for frequent Win8 gtest failures in VP8VideoTrackEncoder.SkippedFrames
Backed out changeset 9ea8e4f2edae (bug 1332619)
Backed out changeset 123099d23df5 (bug 1332619)
2017-01-20 20:02:57 -08:00
Andreas Pehrson
12bae8d7f9 Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV

--HG--
extra : rebase_source : 522a754f70bff7525c5f9e8fdc4343360783c356
extra : source : f06f4ff1d49007e0d6a2506f87df3c365f3a2c5f
2017-01-20 15:30:29 +01:00
Andreas Pehrson
2bca25c1da Bug 1332585 - Add gtest for starting a track with null frames. r=jesup
MozReview-Commit-ID: FxJUFNZ3TDn

--HG--
extra : rebase_source : caf2c39e07d8e1664e419ef83971f7b1a5eee73b
extra : source : 42db20a8898443376c0e0aeea62befa23eb52e93
2017-01-20 12:27:32 +01:00
Andreas Pehrson
c42cf251e0 Bug 1332585 - Add gtest for passing multiple instances of one frame to the vp8 encoder. r=jesup
MozReview-Commit-ID: ellNhSDWGh

--HG--
extra : rebase_source : e224edbec125e39e7175fffb3d8ff933fdf48a02
extra : source : e369214fb173e8325c352075dd10466a9f90b03f
2017-01-20 12:26:56 +01:00
Andreas Pehrson
9197ca6ccc Bug 1332585 - Check that encoder completed after EOS in existing test. r=jesup
MozReview-Commit-ID: FFLyGhggDyM

--HG--
extra : rebase_source : 0ef19f642b65dbfc502a116449de78c5fde67a9f
extra : source : 3b4820bc1fc83dba9f621cb0ba0bafe09c2f303f
2017-01-20 12:25:48 +01:00
Andreas Pehrson
50321cf606 Bug 1332585 - Add gtest for encoding a single frame. r=jesup
MozReview-Commit-ID: DAEG4hO34G6

--HG--
extra : rebase_source : 7655cd44597ea01e3702cfb6e30128570a555475
extra : source : d3480dc22e30c6a0aa28a9122b9289bf50703985
2017-01-20 12:24:36 +01:00
Andreas Pehrson
152163deeb Bug 1332585 - Make VP8TrackEncoderTest's buffer generator more explicit. r=jesup
MozReview-Commit-ID: DZbF6vRMug6

--HG--
extra : rebase_source : 508ed10df6594101d068b6363f1258d6b4d8692b
extra : source : 41debe52a3e32820eb33a18ad86e794a3efdc6c6
2017-01-20 11:48:59 +01:00
Chris Pearce
fe31d4bd44 Bug 1332149 - Don't expose plugin-container or sandbox vouchers to GMPs. r=gerald
MozReview-Commit-ID: JZBoEptskf0

--HG--
extra : rebase_source : c2de46c71eced8fc9ad00f9fbb95f9dc9f5ee6ba
2017-01-19 14:57:30 +13:00
Andreas Pehrson
15b7f07b21 Bug 1330918 - Set timestamp in VP8TrackEncoder GTest. r=jesup
MozReview-Commit-ID: 4LeR1iUZBgs

--HG--
extra : rebase_source : 5ce54384a32f306eb4f52ba5771eb9dd0f3d94a1
2017-01-19 10:51:52 +01:00
Chris Pearce
abf5ab3771 Bug 1331829 - Remove async shutdown GMP API. r=gerald
Now that we're not supporting Adobe EME anymore, we don't need to
provide a mechanism for GMPs to block browser shutdown.

MozReview-Commit-ID: KUC94IBQiod

--HG--
extra : rebase_source : ed521f28e272de11b2d0c4546b98baf6bd7c6e72
2017-01-18 15:01:56 +13:00
Gerald Squelart
f17dd305d6 Bug 1331289 - Use MediaContainerType in MediaResource, SourceBuffer, TrackBuffersManager, and dependencies - r=jya
Continuing the work of replacing MIME strings with MediaContainerType, starting
from MediaResource and following the dependencies.

Most changes are mechanical: Just change ns*String into MediaContainerType, and
MIME string literals into MEDIAMIMETYPE("a/b").
Some checks for empty/invalid strings and lowercase comparisons can go, thanks
to the always-valid always-lowercase-MIME invariants of MediaContainerType.

One special case in is MediaSourceResource, which used to have an empty string
as its type (because its own type is not relevant, but its SourceBuffers carry
types). Because the inherited GetContentType *must* be overridden, and must
return a MediaContainerType, we needed a valid type even though it should not
be seen in the real world. I've chosen "application/x.mediasource" for that.

MozReview-Commit-ID: 1aCH75Kh2e6

--HG--
extra : rebase_source : 0d9cd9b69c264e5dcfc3845f80ee107f4bcbcd9a
2016-12-28 18:59:02 +11:00
Gerald Squelart
5745998021 Bug 1331770 - Rename 'MediaContentType' to 'MediaContainerType' - r=jya
MozReview-Commit-ID: F0BWai8vPyo

--HG--
rename : dom/media/MediaContentType.cpp => dom/media/MediaContainerType.cpp
rename : dom/media/MediaContentType.h => dom/media/MediaContainerType.h
extra : rebase_source : 640ada96750b4496055087e80ae3f600c9df31c9
2017-01-18 11:59:03 +11:00
Gerald Squelart
f3a92fa0a6 Bug 1330284 - Use MediaContentType in MP4Decoder - r=jya
MozReview-Commit-ID: 9Npl40Iicjc

--HG--
extra : rebase_source : 27df1df1cdf8eb8b608e155c0146c8b09d655de4
2017-01-01 12:27:45 +11:00
Gerald Squelart
843031e2a5 Bug 1330284 - Use MediaContentType in WebMDecoder - r=jya
MozReview-Commit-ID: 5tcc9of73WR

--HG--
extra : rebase_source : 38ef74afdf27fec45f84f33f539717b3595358f2
2017-01-01 12:16:38 +11:00
Gerald Squelart
e0f7233057 Bug 1329568 - gtest for MediaMIMEType and family - r=jya
MozReview-Commit-ID: BhQR490Tn7U

--HG--
extra : rebase_source : 21313dfd4d86ae0e4c7d5de4f4f59cc96f79fec6
2016-12-30 17:41:17 +11:00
JW Wang
4f5754ca55 Bug 1328130. Part 2 - remove MozPromiseRequestHolder::Begin(). r=gerald
MozReview-Commit-ID: JL27n0Era6E

--HG--
extra : rebase_source : e6de76db3fb35b110370497f4060ea1c3f527f23
extra : intermediate-source : 5bc39a45ef042b895a5abda59cc0796e8cfb4be3
extra : source : a7f7faded7b112e8a971ca96b091a9a22214a2bb
2017-01-11 16:33:29 +08:00
Wes Kocher
e7af9d37e0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 1X0vSt6PtFn
2017-01-12 16:20:57 -08:00
Wes Kocher
48f75e3c03 Backed out 13 changesets (bug 1329568) for wpt-11 failures in mediasource-addsourcebuffer.html a=backout CLOSED TREE
Backed out changeset 8f37ee96bd78 (bug 1329568)
Backed out changeset 706da9f85272 (bug 1329568)
Backed out changeset c316c8d24d32 (bug 1329568)
Backed out changeset 90a091e65db3 (bug 1329568)
Backed out changeset da855d6a78bb (bug 1329568)
Backed out changeset 3a49367220e3 (bug 1329568)
Backed out changeset 453851b40e3e (bug 1329568)
Backed out changeset 662529436cc4 (bug 1329568)
Backed out changeset 7c62078beb88 (bug 1329568)
Backed out changeset 99758b5f7918 (bug 1329568)
Backed out changeset 2ce9dcf0c274 (bug 1329568)
Backed out changeset 644f206d06d6 (bug 1329568)
Backed out changeset e1ed12f057c8 (bug 1329568)

MozReview-Commit-ID: FhJlySehxHi
2017-01-12 15:10:52 -08:00
Andrea Marchesini
359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Gerald Squelart
bd202b4535 Bug 1329568 - gtest for MediaMIMEType and family - r=jya
MozReview-Commit-ID: BhQR490Tn7U

--HG--
extra : rebase_source : c128443b631300d26083141afe2b844c340d1dde
2016-12-30 17:41:17 +11:00
Gerald Squelart
c0cf767767 Bug 1329564 - Option to process empty items in StringListRange - r=jya
By default StringListRange skips empty items.
Two new template options allow handling empty items:
- ProcessEmptyItems: Process all, *except* if string is empty.
- ProcessAll: Process all, including 1 empty item in an empty string.

MozReview-Commit-ID: WNRHU5iCHt

--HG--
extra : rebase_source : 994bf1364a705c8280473635a2a6a685d267ec44
2016-11-28 22:45:58 +11:00
Chris Peterson
4b28bd3f34 Bug 1329547 - Remove EME checks for Vista. r=cpearce
MozReview-Commit-ID: J1ww70KMQuw

--HG--
extra : rebase_source : 8cbf795562a02469ce1c5629c5c693700ee8fcea
2017-01-08 00:56:45 -08:00
Gerald Squelart
b3e89a3af9 Bug 1322964 - MozPromise.Then() taking only one resolve+reject function - r=jwwang
Then and ThenPromise can now be given only one function object, which takes a
`const MozPromise::ResolveOrRejectValue&`.

MozReview-Commit-ID: BEtc3spK9Yh

--HG--
extra : rebase_source : 1b16ad15ebfcdfb653d8d98073adee0f8b27b46e
2017-01-03 16:15:14 +11:00
Markus Stange
692210bd80 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : c7e335dac2e0f02782f0eb229a7181c8d01317a2
2016-12-21 11:43:50 +01:00
Chris Pearce
80a5e71248 Bug 1325185 - Fix operator precedence in GMPUtils' ToHexString(). r=gerald
MozReview-Commit-ID: 41KoItfOYts

--HG--
extra : rebase_source : b42a325a00f5939ee3c4945c1a5cee826f89c385
2016-12-22 09:20:17 +13:00
Eugen Sawin
e586fb1608 Bug 1324789 - [1.0] Add MP3 demuxer test for a file with partial optional XING header fields. r=jya 2016-12-20 22:21:00 +01:00
Jean-Yves Avenard
7569b21aa8 Bug 1324381: P1. Add gtest. r=gerald
Invalid videos with negative duration. Exception had been added to handle 32 bits encoded duration, not 64 bits one.

MozReview-Commit-ID: 8jwDwpMREmc

--HG--
extra : rebase_source : 0304db69d06590b65f5c64ae481be6a75b53a24e
2016-12-19 21:04:22 +11:00
JW Wang
d4d5d4d5bb Bug 1321744. Part 3 - remove ThenPromise and replace its use with Then. r=gerald
MozReview-Commit-ID: AsmePdCp2tC

--HG--
extra : rebase_source : e08ac48584375d2bc12f5b73a1e60f2800359ed9
extra : intermediate-source : 94e727f7cd11bb04812da3662a0ee1fd461cc832
extra : source : 5307716231f93b01c0357011f8849015d4d97d0a
2016-12-04 08:51:25 +08:00
Andrea Marchesini
f7f5990527 Bug 1317927 - Media caching needs to use origin attributes, r=cpearce, r=jesup 2016-12-07 07:07:09 -10:00
JW Wang
c1ec600a1a Bug 1321471. Part 1 - Use of MozPromise::ThenPromise() in place of CompletionPromise(). r=jya.
MozReview-Commit-ID: INbGpzwK4f9

--HG--
extra : rebase_source : 76942aa9741f2ce59f6208cfb0699ad3718a25d4
extra : intermediate-source : 61f3ade0fb73f6318ae616393d66e3dc21d68323
extra : source : 92e78c9b199b252da5d219f8d68902ce353aa4c7
2016-11-30 18:19:26 +08:00
James Cheng
ca86869cd0 Bug 1318225 - Part1 - Remove Test Case. r=jya
MozReview-Commit-ID: 8rtS6jlIV3d

--HG--
extra : rebase_source : 3c123b85aaaa2ecaa8859d782c86a0fdf9ca742f
2016-11-17 14:58:35 +08:00
Carsten "Tomcat" Book
59bb309e38 merge mozilla-inbound to mozilla-central a=merge 2016-11-21 15:44:20 +01:00
Gerald Squelart
c22dcadd40 Bug 1318228 - Replace nsAutoPtr with UniquePtr in GMPCDMProxy - r=cpearce
MozReview-Commit-ID: Hy4rag5UbsZ

--HG--
extra : rebase_source : d3802b3e0e22cb1ef982eecc4c1a5b016f0ff6aa
2016-11-17 18:40:28 +11:00
James Cheng
01e09b0a7f Bug 1317660 - Fix CID 1394336: Resource leaks in TestAudioPacketizer.cpp r=padenot
MozReview-Commit-ID: GAKgI6JVm52

--HG--
extra : rebase_source : d682b06c1d07bb089b73ff4d1473ff6b58b223d0
2016-11-15 18:20:32 +08:00
Carsten "Tomcat" Book
8cfa5253e8 merge mozilla-inbound to mozilla-central a=merge 2016-11-15 12:26:41 +01:00
Chris Pearce
b430a8a481 Bug 1306314 - Add an ID to GMPDecryptor instances, reflect that on CDMProxy. r=gerald
This enables us to identify GMPDecryptor instances in the child process, so that
in a later patch when we create a GMPVideoDecoder instance, we can associate it
with a GMPDecryptor. Then the cdm::ContentDecryptionModule8 instance that these
two actors are adapted to can know whom it's supposed to respond to.

We use the IPDL PGMPDecryptorChild actor ID as the GMPDecryptor's ID. This is unique
per GMP process, which is sufficient.

MozReview-Commit-ID: 7NKND9VjPUW

--HG--
extra : rebase_source : da14d9a8a7313a609e30649af1a23e79b3e401fe
2016-11-11 12:10:43 +13:00
Iris Hsiao
d9a1a0a083 Backed out changeset 9e9727bdc484 (bug 1306314) 2016-11-14 11:07:39 +08:00
Chris Pearce
ec543ad267 Bug 1306314 - Add an ID to GMPDecryptor instances, reflect that on CDMProxy. r=gerald
This enables us to identify GMPDecryptor instances in the child process, so that
in a later patch when we create a GMPVideoDecoder instance, we can associate it
with a GMPDecryptor. Then the cdm::ContentDecryptionModule8 instance that these
two actors are adapted to can know whom it's supposed to respond to.

We use the IPDL PGMPDecryptorChild actor ID as the GMPDecryptor's ID. This is unique
per GMP process, which is sufficient.

MozReview-Commit-ID: 7NKND9VjPUW

--HG--
extra : rebase_source : 6ea7dfa358f8d13f7d36db5a581fc075268038b7
2016-11-11 12:10:43 +13:00
Nicholas Nethercote
7f263d232a Bug 1317221 - Used vector delete where required in TestAudioSegment.cpp. r=padenot. 2016-11-14 17:20:05 +11:00
Nicholas Nethercote
5daac04ccf Bug 1316792 - gtestify toolkit/components/places/tests/cpp/test_IHistory.cpp. r=mak.
This is a most minimal gtest conversion possible. It leaves in place
significant amounts of non-typical-for-gtest code.

Notable changes:

- All the mock Link and URLSearchParams method definitions are no longer
  needed.

- The changes adds a new constructor for Link that doesn't set mHistory.
  Without that, leaked URLs occur at shutdown.

- The output printed by the test is slightly streamlined, mostly by omitting
  the test filename.

- It disables TestMediaFormatReader.cpp, which was causing problems. That test
  is slated for removal in bug 1318225 anyway.

--HG--
rename : toolkit/components/places/tests/cpp/mock_Link.h => toolkit/components/places/tests/gtest/mock_Link.h
rename : toolkit/components/places/tests/cpp/moz.build => toolkit/components/places/tests/gtest/moz.build
rename : toolkit/components/places/tests/cpp/places_test_harness.h => toolkit/components/places/tests/gtest/places_test_harness.h
rename : toolkit/components/places/tests/cpp/places_test_harness_tail.h => toolkit/components/places/tests/gtest/places_test_harness_tail.h
rename : toolkit/components/places/tests/cpp/test_IHistory.cpp => toolkit/components/places/tests/gtest/test_IHistory.cpp
extra : rebase_source : b7def3f9afce3a44e99f5ed35cb220f7814551cd
2016-11-12 06:22:01 +11:00
Nicholas Nethercote
bea3aefea7 Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot.
The only complication was that I had to add namespaces to TestAudioMixer.cpp
and TestAudioSegment.cpp to avoid multiple definitions of a few small helper
functions like GetLowValue().

--HG--
rename : dom/media/compiledtest/TestAudioBuffers.cpp => dom/media/gtest/TestAudioBuffers.cpp
rename : dom/media/compiledtest/TestAudioMixer.cpp => dom/media/gtest/TestAudioMixer.cpp
rename : dom/media/compiledtest/TestAudioPacketizer.cpp => dom/media/gtest/TestAudioPacketizer.cpp
rename : dom/media/compiledtest/TestAudioSegment.cpp => dom/media/gtest/TestAudioSegment.cpp
extra : rebase_source : f42a1209b98a344c77e1245815eebc86a16866c0
2016-11-09 08:47:23 +11:00
Chris Pearce
d5c366c045 Bug 1314445 - Remove unused ParseKeySystem(). r=gerald
MozReview-Commit-ID: KdIpvet73LR

--HG--
extra : rebase_source : aed95e2b024af6fa36f0da96f564966c8d7f3a7d
2016-11-02 13:56:23 +13:00
Kilik Kuo
55bf555b74 Bug 1303922 - Part 2: Remove KeyStatusChanged/ForgetKeyStatus IPDL messages. r=cpearce
MozReview-Commit-ID: Flx2SQI7lM0

--HG--
extra : transplant_source : %40p%5C%C3%06%D0m%0C/%7B%0C%5B%A2%93o%F6%A1%1B%00%7D
2016-10-04 17:19:53 +08:00
Kilik Kuo
4d162fcd4a Bug 1303922 - Part 1: Make EME keystatuschanged information notified in batch. r=cpearce
MozReview-Commit-ID: IeExaQ62qTF

--HG--
extra : transplant_source : t%D4%AFxu%D6%40%F8hU%D2%94%D4q8q%EDy%08-
2016-10-04 17:18:46 +08:00
James Cheng
48efb9caad Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
MozReview-Commit-ID: JboGO0w4tcE

--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Jean-Yves Avenard
20dc9102e8 Bug 1299072: P12. Use MediaResult for MediaDataDemuxer promises. r=gerald
MozReview-Commit-ID: JeQrmoHbb8m

--HG--
extra : rebase_source : 1f4581e5789f18b358a6f5bb5f8595cc7a75110b
2016-09-12 12:22:20 +10:00
Jean-Yves Avenard
6a25692b20 Bug 1299072: P10. Pass decoding error details to media element's error attribute. r=jwwang
MozReview-Commit-ID: 49DurV9WI5S

--HG--
extra : rebase_source : 469e6ed4e222fb6d6ac34843c3c3346a044c6023
2016-09-11 00:56:09 +10:00