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

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

Issue 375983002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/decode_test_driver.cc ('k') | source/libvpx/test/md5_helper.h » ('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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « source/libvpx/test/decode_test_driver.cc ('k') | source/libvpx/test/md5_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698