| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 const DecodeParam kVP9InvalidFileTests[] = { | 113 const DecodeParam kVP9InvalidFileTests[] = { |
| 114 {1, "invalid-vp90-02-v2.webm"}, | 114 {1, "invalid-vp90-02-v2.webm"}, |
| 115 {1, "invalid-vp90-2-00-quantizer-00.webm.ivf.s5861_r01-05_b6-.v2.ivf"}, | 115 {1, "invalid-vp90-2-00-quantizer-00.webm.ivf.s5861_r01-05_b6-.v2.ivf"}, |
| 116 {1, "invalid-vp90-03-v3.webm"}, | 116 {1, "invalid-vp90-03-v3.webm"}, |
| 117 {1, "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-.ivf"}, | 117 {1, "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-.ivf"}, |
| 118 {1, "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-z.ivf"}, | 118 {1, "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-z.ivf"}, |
| 119 {1, "invalid-vp90-2-12-droppable_1.ivf.s3676_r01-05_b6-.ivf"}, | 119 {1, "invalid-vp90-2-12-droppable_1.ivf.s3676_r01-05_b6-.ivf"}, |
| 120 {1, "invalid-vp90-2-05-resize.ivf.s59293_r01-05_b6-.ivf"}, | 120 {1, "invalid-vp90-2-05-resize.ivf.s59293_r01-05_b6-.ivf"}, |
| 121 {1, "invalid-vp90-2-09-subpixel-00.ivf.s20492_r01-05_b6-.ivf"}, | 121 {1, "invalid-vp90-2-09-subpixel-00.ivf.s20492_r01-05_b6-.v2.ivf"}, |
| 122 {1, "invalid-vp91-2-mixedrefcsp-444to420.ivf"}, |
| 123 {1, "invalid-vp90-2-12-droppable_1.ivf.s73804_r01-05_b6-.ivf"}, |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 VP9_INSTANTIATE_TEST_CASE(InvalidFileTest, | 126 VP9_INSTANTIATE_TEST_CASE(InvalidFileTest, |
| 125 ::testing::ValuesIn(kVP9InvalidFileTests)); | 127 ::testing::ValuesIn(kVP9InvalidFileTests)); |
| 126 | 128 |
| 127 // This class will include test vectors that are expected to fail | 129 // This class will include test vectors that are expected to fail |
| 128 // peek. However they are still expected to have no fatal failures. | 130 // peek. However they are still expected to have no fatal failures. |
| 129 class InvalidFileInvalidPeekTest : public InvalidFileTest { | 131 class InvalidFileInvalidPeekTest : public InvalidFileTest { |
| 130 protected: | 132 protected: |
| 131 InvalidFileInvalidPeekTest() : InvalidFileTest() {} | 133 InvalidFileInvalidPeekTest() : InvalidFileTest() {} |
| (...skipping 10 matching lines...) Expand all Loading... |
| 142 {1, "invalid-vp90-01-v2.webm"}, | 144 {1, "invalid-vp90-01-v2.webm"}, |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 VP9_INSTANTIATE_TEST_CASE(InvalidFileInvalidPeekTest, | 147 VP9_INSTANTIATE_TEST_CASE(InvalidFileInvalidPeekTest, |
| 146 ::testing::ValuesIn(kVP9InvalidFileInvalidPeekTests)); | 148 ::testing::ValuesIn(kVP9InvalidFileInvalidPeekTests)); |
| 147 | 149 |
| 148 const DecodeParam kMultiThreadedVP9InvalidFileTests[] = { | 150 const DecodeParam kMultiThreadedVP9InvalidFileTests[] = { |
| 149 {4, "invalid-vp90-2-08-tile_1x4_frame_parallel_all_key.webm"}, | 151 {4, "invalid-vp90-2-08-tile_1x4_frame_parallel_all_key.webm"}, |
| 150 {4, "invalid-" | 152 {4, "invalid-" |
| 151 "vp90-2-08-tile_1x2_frame_parallel.webm.ivf.s47039_r01-05_b6-.ivf"}, | 153 "vp90-2-08-tile_1x2_frame_parallel.webm.ivf.s47039_r01-05_b6-.ivf"}, |
| 152 {2, "invalid-vp90-2-09-aq2.webm.ivf.s3984_r01-05_b6-.ivf"}, | 154 {2, "invalid-vp90-2-09-aq2.webm.ivf.s3984_r01-05_b6-.v2.ivf"}, |
| 153 {4, "invalid-vp90-2-09-subpixel-00.ivf.s19552_r01-05_b6-.ivf"}, | 155 {4, "invalid-vp90-2-09-subpixel-00.ivf.s19552_r01-05_b6-.v2.ivf"}, |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 INSTANTIATE_TEST_CASE_P( | 158 INSTANTIATE_TEST_CASE_P( |
| 157 VP9MultiThreaded, InvalidFileTest, | 159 VP9MultiThreaded, InvalidFileTest, |
| 158 ::testing::Combine( | 160 ::testing::Combine( |
| 159 ::testing::Values( | 161 ::testing::Values( |
| 160 static_cast<const libvpx_test::CodecFactory*>(&libvpx_test::kVP9)), | 162 static_cast<const libvpx_test::CodecFactory*>(&libvpx_test::kVP9)), |
| 161 ::testing::ValuesIn(kMultiThreadedVP9InvalidFileTests))); | 163 ::testing::ValuesIn(kMultiThreadedVP9InvalidFileTests))); |
| 162 } // namespace | 164 } // namespace |
| OLD | NEW |