gecko-dev/dom/media/gtest
Chris Pearce 8eff3a166e Bug 1426291 - Add Rust style mutex template which wraps data with the mutex that synchronizes it. r=jwwang
Rust's std::sync::Mutex has some nice properties. Its philosphy is to lock
data, rather than code.

It wraps data you're trying to make thread safe with a mutex, and in order to
get a reference to the wrapped data you need to lock the mutex and access it
through an intermediate layer. This is good, as the mutex that's protecting
access to the data is explicitly associated with the data, and it's impossible
to forget to take the lock before accessing the data.

This patch adds a similar mutex wrapper to Media Playback code. If it works
well, we can look at moving it into xpcom.

MozReview-Commit-ID: 4APAic6Fh8m

--HG--
extra : rebase_source : 3dc2b4916d3fd31f622af2b0c26ac3c0707d3300
2017-12-20 16:15:09 +13:00
..
mp4_demuxer Bug 1407810 - Use DDLogger in media stack - r=jwwang 2017-10-10 17:55:27 +11:00
Cargo.toml
GMPTestMonitor.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
MockMediaDecoderOwner.h Bug 1414680 - Make MediaDecoderOwner::DispatchAsyncEvent() return void. r=jwwang 2017-11-05 09:12:44 +01:00
MockMediaResource.cpp Bug 1388228. P6 - following P5, we are now able to move some methods that are related to nsIChannel to BaseMediaResource. r=gerald 2017-08-07 18:09:56 +08:00
MockMediaResource.h Bug 1407810 - Use DDLogger in media stack - r=jwwang 2017-10-10 17:55:27 +11:00
TestAudioBuffers.cpp Bug 1378070 - Implement multichannel WebAudio. r=padenot 2017-08-28 17:16:20 +03:00
TestAudioCompactor.cpp Bug 1392508 - Don't include nsRect.h, nsSize.h and nsIMemoryReporter.h in MediaData.h as they're unused. r=gerald 2017-08-22 03:44:32 +12:00
TestAudioMixer.cpp
TestAudioPacketizer.cpp
TestAudioSegment.cpp
TestAudioTrackEncoder.cpp Bug 1296531 - Change track encoder gtests to better mimic Gecko usage. r=jesup 2017-05-16 13:29:43 +02:00
TestBlankVideoDataCreator.cpp
TestCDMStorage.cpp Bug 1404230 - Part4 - Add GetStatusForPolicy method in ipdl and implement it by calling CDM. r=cpearce 2017-10-24 10:55:03 +08:00
TestDataMutex.cpp Bug 1426291 - Add Rust style mutex template which wraps data with the mutex that synchronizes it. r=jwwang 2017-12-20 16:15:09 +13:00
TestGMPCrossOrigin.cpp Bug 1396493 - Part5 - Split out the CDM testing from TestGMPCrossOrigin.cpp to TestCDMStorage.cpp and rename GMPStorage into CDMStorage. r=cpearce 2017-09-26 17:24:04 +08:00
TestGMPRemoveAndDelete.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
TestGMPUtils.cpp
TestIntervalSet.cpp Bug 1392498 - Move TimeIntervals to dom::TimeRanges conversion into TimeRanges class. r=jya 2017-08-21 15:08:25 +12:00
TestMP3Demuxer.cpp Bug 1419736 - Calculate the mp3 duration by bitrate if it's CBR; r=jya 2017-12-19 15:14:57 +08:00
TestMP4Demuxer.cpp Bug 1417795 - remove mp4_demuxer namespace part5. r=kinetik 2017-11-17 14:30:09 +08:00
TestMediaDataDecoder.cpp Bug 1390748 - Remove some unnecessary includes. r=jwwang 2017-08-16 17:18:39 +12:00
TestMediaEventSource.cpp Bug 1396493 - Part6 - Fix unified build error due to adding a new gtest unit. r=cpearce 2017-09-26 17:28:43 +08:00
TestMediaMIMETypes.cpp Bug 1336367 - Fix unified build issues from previous changes. r=pehrsons 2017-09-14 14:15:22 +12:00
TestRust.cpp
TestTimeUnit.cpp
TestVPXDecoding.cpp Bug 1396515: Fix incorrect && and || operator placements. r=sylvestre 2017-09-04 11:27:43 +02:00
TestVideoSegment.cpp
TestVideoTrackEncoder.cpp Bug 1409727 - Add a mode and pref to disallow frame drops in MediaRecorder. r=SingingTree 2017-10-19 14:38:07 +02:00
TestVideoUtils.cpp
TestWebMBuffered.cpp
TestWebMWriter.cpp Bug 1409727 - Add a mode and pref to disallow frame drops in MediaRecorder. r=SingingTree 2017-10-19 14:38:07 +02:00
dash_dashinit.mp4
hello.rs
id3v2header.mp3
moz.build Bug 1426291 - Add Rust style mutex template which wraps data with the mutex that synchronizes it. r=jwwang 2017-12-20 16:15:09 +13:00
negative_duration.mp4
noise.mp3
noise_vbr.mp3
short-zero-in-moov.mp4
short-zero-inband.mov
small-shot-false-positive.mp3
small-shot-partial-xing.mp3
small-shot.mp3
test.webm
test_case_1224361.vp8.ivf
test_case_1224363.vp8.ivf
test_case_1224369.vp8.ivf