OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // the files list will cause a test failure. | 87 // the files list will cause a test failure. |
88 const std::string res_filename = filename + ".res"; | 88 const std::string res_filename = filename + ".res"; |
89 OpenResFile(res_filename); | 89 OpenResFile(res_filename); |
90 | 90 |
91 // Decode frame, and check the md5 matching. | 91 // Decode frame, and check the md5 matching. |
92 ASSERT_NO_FATAL_FAILURE(RunLoop(video)); | 92 ASSERT_NO_FATAL_FAILURE(RunLoop(video)); |
93 delete video; | 93 delete video; |
94 } | 94 } |
95 | 95 |
96 const char *const kVP9InvalidFileTests[] = { | 96 const char *const kVP9InvalidFileTests[] = { |
97 "invalid-vp90-01.webm" | 97 "invalid-vp90-01.webm", |
| 98 "invalid-vp90-02.webm", |
| 99 "invalid-vp90-2-00-quantizer-00.webm.ivf.s5861_r01-05_b6-.ivf", |
| 100 "invalid-vp90-03.webm", |
| 101 "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-.ivf", |
| 102 "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-z.ivf", |
98 }; | 103 }; |
99 | 104 |
100 #define NELEMENTS(x) static_cast<int>(sizeof(x) / sizeof(x[0])) | 105 #define NELEMENTS(x) static_cast<int>(sizeof(x) / sizeof(x[0])) |
101 | 106 |
102 VP9_INSTANTIATE_TEST_CASE(InvalidFileTest, | 107 VP9_INSTANTIATE_TEST_CASE(InvalidFileTest, |
103 ::testing::ValuesIn(kVP9InvalidFileTests, | 108 ::testing::ValuesIn(kVP9InvalidFileTests, |
104 kVP9InvalidFileTests + | 109 kVP9InvalidFileTests + |
105 NELEMENTS(kVP9InvalidFileTests))); | 110 NELEMENTS(kVP9InvalidFileTests))); |
106 | 111 |
107 } // namespace | 112 } // namespace |
OLD | NEW |