Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: source/libvpx/test/invalid_file_test.cc

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/test/idct8x8_test.cc ('k') | source/libvpx/test/lpf_8_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void HandlePeekResult(libvpx_test::Decoder *const /*decoder*/, 138 virtual void HandlePeekResult(libvpx_test::Decoder *const /*decoder*/,
139 libvpx_test::CompressedVideoSource* /*video*/, 139 libvpx_test::CompressedVideoSource* /*video*/,
140 const vpx_codec_err_t /*res_peek*/) {} 140 const vpx_codec_err_t /*res_peek*/) {}
141 }; 141 };
142 142
143 TEST_P(InvalidFileInvalidPeekTest, ReturnCode) { 143 TEST_P(InvalidFileInvalidPeekTest, ReturnCode) {
144 RunTest(); 144 RunTest();
145 } 145 }
146 146
147 const DecodeParam kVP9InvalidFileInvalidPeekTests[] = { 147 const DecodeParam kVP9InvalidFileInvalidPeekTests[] = {
148 {1, "invalid-vp90-01-v2.webm"}, 148 {1, "invalid-vp90-01-v3.webm"},
149 }; 149 };
150 150
151 VP9_INSTANTIATE_TEST_CASE(InvalidFileInvalidPeekTest, 151 VP9_INSTANTIATE_TEST_CASE(InvalidFileInvalidPeekTest,
152 ::testing::ValuesIn(kVP9InvalidFileInvalidPeekTests)); 152 ::testing::ValuesIn(kVP9InvalidFileInvalidPeekTests));
153 153
154 const DecodeParam kMultiThreadedVP9InvalidFileTests[] = { 154 const DecodeParam kMultiThreadedVP9InvalidFileTests[] = {
155 {4, "invalid-vp90-2-08-tile_1x4_frame_parallel_all_key.webm"}, 155 {4, "invalid-vp90-2-08-tile_1x4_frame_parallel_all_key.webm"},
156 {4, "invalid-" 156 {4, "invalid-"
157 "vp90-2-08-tile_1x2_frame_parallel.webm.ivf.s47039_r01-05_b6-.ivf"}, 157 "vp90-2-08-tile_1x2_frame_parallel.webm.ivf.s47039_r01-05_b6-.ivf"},
158 {4, "invalid-vp90-2-08-tile_1x8_frame_parallel.webm.ivf.s288_r01-05_b6-.ivf"}, 158 {4, "invalid-vp90-2-08-tile_1x8_frame_parallel.webm.ivf.s288_r01-05_b6-.ivf"},
159 {2, "invalid-vp90-2-09-aq2.webm.ivf.s3984_r01-05_b6-.v2.ivf"}, 159 {2, "invalid-vp90-2-09-aq2.webm.ivf.s3984_r01-05_b6-.v2.ivf"},
160 {4, "invalid-vp90-2-09-subpixel-00.ivf.s19552_r01-05_b6-.v2.ivf"}, 160 {4, "invalid-vp90-2-09-subpixel-00.ivf.s19552_r01-05_b6-.v2.ivf"},
161 }; 161 };
162 162
163 INSTANTIATE_TEST_CASE_P( 163 INSTANTIATE_TEST_CASE_P(
164 VP9MultiThreaded, InvalidFileTest, 164 VP9MultiThreaded, InvalidFileTest,
165 ::testing::Combine( 165 ::testing::Combine(
166 ::testing::Values( 166 ::testing::Values(
167 static_cast<const libvpx_test::CodecFactory*>(&libvpx_test::kVP9)), 167 static_cast<const libvpx_test::CodecFactory*>(&libvpx_test::kVP9)),
168 ::testing::ValuesIn(kMultiThreadedVP9InvalidFileTests))); 168 ::testing::ValuesIn(kMultiThreadedVP9InvalidFileTests)));
169 } // namespace 169 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/idct8x8_test.cc ('k') | source/libvpx/test/lpf_8_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698