Bug 1204580 - p1: Added test case files. r=rillian
authorGerald Squelart <gsquelart@mozilla.com>
Fri, 02 Oct 2015 09:20:13 +0200
changeset 265709 0f18e328113b444de6b8002e621250ab0170fef7
parent 265708 f6c99c8baa9b0b6a34d6791e5d4031a2de8f2087
child 265710 35958f485b2987e8b54fa3e66500174ba5cda867
push id29467
push userkwierso@gmail.com
push dateFri, 02 Oct 2015 20:33:25 +0000
treeherdermozilla-central@2308353160d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrillian
bugs1204580
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1204580 - p1: Added test case files. r=rillian
media/libstagefright/gtest/TestParser.cpp
media/libstagefright/gtest/moz.build
media/libstagefright/gtest/test_case_1204580.mp4
--- a/media/libstagefright/gtest/TestParser.cpp
+++ b/media/libstagefright/gtest/TestParser.cpp
@@ -160,17 +160,18 @@ struct TestFileData
 {
   const char* mFilename;
   uint32_t mNumberVideoTracks;
   int32_t mWidth;
   int32_t mHeight;
 };
 static const TestFileData testFiles[] = {
   { "test_case_1187067.mp4", 1, 160, 90 },
-  { "test_case_1200326.mp4", 0, 0, 0 }
+  { "test_case_1200326.mp4", 0, 0, 0 },
+  { "test_case_1204580.mp4", 1, 320, 180 }
 };
 
 TEST(stagefright_MPEG4Metadata, test_case_mp4)
 {
   for (size_t test = 0; test < ArrayLength(testFiles); ++test) {
     nsTArray<uint8_t> buffer = ReadTestFile(testFiles[test].mFilename);
     ASSERT_FALSE(buffer.IsEmpty());
     nsRefPtr<Stream> stream = new TestStream(buffer.Elements(), buffer.Length());
--- a/media/libstagefright/gtest/moz.build
+++ b/media/libstagefright/gtest/moz.build
@@ -9,16 +9,17 @@ Library('stagefright_gtest')
 SOURCES += [
     'TestInterval.cpp',
     'TestParser.cpp',
 ]
 
 TEST_HARNESS_FILES.gtest += [
     'test_case_1187067.mp4',
     'test_case_1200326.mp4',
+    'test_case_1204580.mp4',
 ]
 
 if CONFIG['MOZ_RUST']:
     UNIFIED_SOURCES += ['TestMP4Rust.cpp',]
     TEST_HARNESS_FILES.gtest += [
         '../../../dom/media/test/street.mp4',
     ]
 
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4e55b05719230440851fd678096967f6def883d5
GIT binary patch
literal 5833
zc$|$m2UJtpwh1NDq$@>~P()B#5;_D7Qk5n}K)?`E07*zlLI**S;)o!ilqe!7y*Fu6
z6hsk47y&7wqNpHUkS68d;Ji1!`Ro1l&${RCz0d9?H^~KoKu`ibnBq+%lRzLA5EB9$
zjtRiRNE9^~2n6CFQ1N&WNN|aS!_WblatQm*PVrmgspc=kW_78GL(pNFx%nWth8k1}
ziX~I=P?(wqlnPfzXhC6c7(!bE3oy)-0Ra_D8)H)?H7M%L2|yBuXEIKZDZxZMfewYM
zsv?x&sxWon(2Gu|=%}a!1_mkzc;oP7BF0ylO!ZV@dQtYGlZb!}nL_s_`_govSd0e-
zi-bX`cmfgu#o;}OWULPorlYE(3dQ(hh`}^GQZ)#nqZ$N*A)q8Y(hDC1rTKdRm?o4$
z3kFnyJDQ3^!jx43CEx}nc?aQfXr@INpn;}hd_D0<m<AN<MJ1CkXh0PPrBm@lqBjk|
zw1Tv7SUP}U{YXevAOs99gzSq)!eNRq7?gma(a{u|k2i%W@ymc81x+RpXm~nO2@a)u
zQ2`CW5FAP*lYKB=0EPbdA(Te+#^V1zP=)$Zcb#CpNf<ga5N}^Po=U_3LcqBP(VvP5
zMq|k&3Wg5QSfEC9D#qIvFaZcsG06K+4+0fK!qb3id7vr50Pc-L!T}tE!%&!Mc%VJJ
zF-%W5Zz_H_u|T}Hrx)D=z{nK5FWQq#0l2>oDS)aEJ{Yi#gsZFmg`!E`z5ofOVe!6r
ztUn#8rV8El&a5dFPxAuQsaW*C(`E9hSR|H8fRa3b!ZOnW2qZ#XSrzKXOa`f{tO1}D
zrr}+P2|{XU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