Bug 1324381: P2. Adjust existing gtest. r=gerald a=gchang
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 20 Dec 2016 09:59:09 +1100
changeset 353166 4070d051554a33efee85fdb3e9c5ccdb5e38d9ee
parent 353165 ffcb1f3d8cbe58eb612c4578d9ad70c81eff864f
child 353167 a368c15c83ace70e2e9a95a308a876e7689b4a8c
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald, gchang
bugs1324381
milestone52.0a2
Bug 1324381: P2. Adjust existing gtest. r=gerald a=gchang The file did set a duration of -1, which is now considered as 0. MozReview-Commit-ID: 6HMeRw4Q8uT
media/libstagefright/gtest/TestParser.cpp
--- a/media/libstagefright/gtest/TestParser.cpp
+++ b/media/libstagefright/gtest/TestParser.cpp
@@ -195,17 +195,17 @@ static const TestFileData testFiles[] = 
                                                             false,   0, false, false },
   { "test_case_1301065-harder.mp4", 0, -1,   0,   0, 1, 209146758205328,
                                                             false,   0, false, false },
   { "test_case_1301065-max-ok.mp4", 0, -1,   0,   0, 1, 9223372036854775804,
                                                             false,   0, false, false },
   { "test_case_1301065-overfl.mp4", 0, -1,   0,   0, 0, -1, false,   0, false, false },
   { "test_case_1301065-i64max.mp4", 0, -1,   0,   0, 0, -1, false,   0, false, false },
   { "test_case_1301065-i64min.mp4", 0, -1,   0,   0, 0, -1, false,   0, false, false },
-  { "test_case_1301065-u64max.mp4", 0, -1,   0,   0, 0, -1, false,   0, false, false },
+  { "test_case_1301065-u64max.mp4", 0, -1,   0,   0, 1,  0, false,   0, false, false },
 };
 
 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());
     RefPtr<Stream> stream = new TestStream(buffer.Elements(), buffer.Length());