gecko-dev/dom/media/gtest
Gerald Squelart 5c90401225 Bug 1368837 - MockMediaResource should fread individual bytes - r=cpearce
`fread(buf, count, 1, f)` meant that exactly one object of size `count` could
be read.
Changing that to `fread(buf, 1, count, f)` now reads up to `count` size-1
objects (aka bytes) up to `count` and returns that number of bytes read, which
is usually what we want from a read, i.e. as much as possible even if it's less
than requested.

MozReview-Commit-ID: 3Lgvws19SFd

--HG--
extra : rebase_source : e5b89a7073d2a5a0365c6fe6aa938bd17cf37935
2017-05-26 15:15:14 +12:00
..
Cargo.toml
GMPTestMonitor.h Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
MockMediaDecoderOwner.h Bug 1344357 P1 - move the MediaDecoder::mSeekDOMPromise to HTMLMediaElement; r=jwwang 2017-04-17 18:25:26 +08:00
MockMediaResource.cpp Bug 1368837 - MockMediaResource should fread individual bytes - r=cpearce 2017-05-26 15:15:14 +12:00
MockMediaResource.h Bug 1331289 - Use MediaContainerType in MediaResource, SourceBuffer, TrackBuffersManager, and dependencies - r=jya 2016-12-28 18:59:02 +11:00
TestAudioBuffers.cpp Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot. 2016-11-09 08:47:23 +11:00
TestAudioCompactor.cpp
TestAudioMixer.cpp Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot. 2016-11-09 08:47:23 +11:00
TestAudioPacketizer.cpp Bug 1317660 - Fix CID 1394336: Resource leaks in TestAudioPacketizer.cpp r=padenot 2016-11-15 18:20:32 +08:00
TestAudioSegment.cpp Bug 1317221 - Used vector delete where required in TestAudioSegment.cpp. r=padenot. 2016-11-14 17:20:05 +11:00
TestBlankVideoDataCreator.cpp Bug 1349129 - Fix CID 1403176 and CID 1403178 for memory leak. r=jwwang 2017-03-21 16:25:29 +08:00
TestGMPCrossOrigin.cpp Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
TestGMPRemoveAndDelete.cpp
TestGMPUtils.cpp Bug 1325185 - Fix operator precedence in GMPUtils' ToHexString(). r=gerald 2016-12-22 09:20:17 +13:00
TestIntervalSet.cpp Bug 1339537 - Part 3: Pass IntIntervals by const reference in TestIntervalSet, r=jya 2017-04-27 12:44:51 -04:00
TestMP3Demuxer.cpp Bug 1357986 - Use helper functions of TimeUnit to make code more readable. r=kaku 2017-04-17 16:35:04 +08:00
TestMP4Demuxer.cpp Bug 1357986 - Use helper functions of TimeUnit to make code more readable. r=kaku 2017-04-17 16:35:04 +08:00
TestMediaDataDecoder.cpp Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
TestMediaEventSource.cpp Bug 1361305. P2 - add a gtest to test an rvalue lambda is moved instead of copied when adding a listener. r=gerald 2017-05-02 17:33:23 +08:00
TestMediaMIMETypes.cpp Bug 1333314 - MediaCodecs::operator==(ascii literal) - r=jya 2017-01-24 15:42:48 +11:00
TestMozPromise.cpp Bug 1338635 - Declare |holder| before |atq| to ensure the destructor is run after |holder.Disconnect()|. r=gerald 2017-05-29 09:38:14 +08:00
TestRust.cpp Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot. 2016-11-09 08:47:23 +11:00
TestTimeUnit.cpp
TestTrackEncoder.cpp
TestVPXDecoding.cpp
TestVideoSegment.cpp
TestVideoTrackEncoder.cpp Bug 1333341 - Add gtest for per-frame rounding error. r=jesup 2017-01-24 09:26:51 +01:00
TestVideoUtils.cpp Bug 1329568 - gtest for MediaMIMEType and family - r=jya 2016-12-30 17:41:17 +11:00
TestWebMBuffered.cpp
TestWebMWriter.cpp
dash_dashinit.mp4
hello.rs
id3v2header.mp3
moz.build Bug 1363500 - Remove TestMP4Reader. r=jya 2017-05-09 12:03:07 -07:00
negative_duration.mp4 Bug 1324381: P1. Add gtest. r=gerald 2016-12-19 21:04:22 +11:00
noise.mp3
noise_vbr.mp3
short-zero-in-moov.mp4
short-zero-inband.mov
small-shot-false-positive.mp3
small-shot-partial-xing.mp3 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
small-shot.mp3
test.webm
test_case_1224361.vp8.ivf
test_case_1224363.vp8.ivf
test_case_1224369.vp8.ivf