Skip to content

Commit

Permalink
Bug 1244523: [mp4] P4. Add gtest. r=kentuckyfriedtakahe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Yves Avenard committed Feb 2, 2016
1 parent fbeebd3 commit 13208cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dom/media/gtest/TestMP4Demuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ TEST(MP4Demuxer, GetNextKeyframe)
});
}

TEST(MP4Demuxer, ZeroInMoov)
TEST(MP4Demuxer, ZeroInLastMoov)
{
RefPtr<MP4DemuxerBinding> binding = new MP4DemuxerBinding("short-zero-in-moov.mp4");
binding->RunTestAndWait([binding] () {
Expand All @@ -436,3 +436,12 @@ TEST(MP4Demuxer, ZeroInMoov)
});
}


TEST(MP4Demuxer, ZeroInMoovQuickTime)
{
RefPtr<MP4DemuxerBinding> binding = new MP4DemuxerBinding("short-zero-inband.mov");
binding->RunTestAndWait([binding] () {
// It demuxes without error. That is sufficient.
binding->mTaskQueue->BeginShutdown();
});
}
1 change: 1 addition & 0 deletions dom/media/gtest/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ TEST_HARNESS_FILES.gtest += [
'noise.mp3',
'noise_vbr.mp3',
'short-zero-in-moov.mp4',
'short-zero-inband.mov',
'small-shot.mp3',
'test.webm',
'test_case_1224361.vp8.ivf',
Expand Down
Binary file added dom/media/gtest/short-zero-inband.mov
Binary file not shown.

0 comments on commit 13208cc

Please sign in to comment.