OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 TEST(VP9DecodeMTTest, MTDecode2) { | 135 TEST(VP9DecodeMTTest, MTDecode2) { |
136 static const struct { | 136 static const struct { |
137 const char *name; | 137 const char *name; |
138 const char *expected_md5; | 138 const char *expected_md5; |
139 } files[] = { | 139 } files[] = { |
140 { "vp90-2-08-tile_1x2_frame_parallel.webm", | 140 { "vp90-2-08-tile_1x2_frame_parallel.webm", |
141 "68ede6abd66bae0a2edf2eb9232241b6" }, | 141 "68ede6abd66bae0a2edf2eb9232241b6" }, |
142 { "vp90-2-08-tile_1x4_frame_parallel.webm", | 142 { "vp90-2-08-tile_1x4_frame_parallel.webm", |
143 "368ebc6ebf3a5e478d85b2c3149b2848" }, | 143 "368ebc6ebf3a5e478d85b2c3149b2848" }, |
| 144 { "vp90-2-08-tile_1x8_frame_parallel.webm", |
| 145 "17e439da2388aff3a0f69cb22579c6c1" }, |
144 }; | 146 }; |
145 | 147 |
146 for (int i = 0; i < static_cast<int>(sizeof(files) / sizeof(files[0])); ++i) { | 148 for (int i = 0; i < static_cast<int>(sizeof(files) / sizeof(files[0])); ++i) { |
147 for (int t = 2; t <= 4; ++t) { | 149 for (int t = 2; t <= 8; ++t) { |
148 EXPECT_STREQ(files[i].expected_md5, DecodeFile(files[i].name, t).c_str()) | 150 EXPECT_STREQ(files[i].expected_md5, DecodeFile(files[i].name, t).c_str()) |
149 << "threads = " << t; | 151 << "threads = " << t; |
150 } | 152 } |
151 } | 153 } |
152 } | 154 } |
153 | 155 |
154 INSTANTIATE_TEST_CASE_P(Synchronous, VP9WorkerThreadTest, ::testing::Bool()); | 156 INSTANTIATE_TEST_CASE_P(Synchronous, VP9WorkerThreadTest, ::testing::Bool()); |
155 | 157 |
156 } // namespace | 158 } // namespace |
OLD | NEW |