| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <inttypes.h> | 5 #include <inttypes.h> |
| 6 #include <stddef.h> | 6 #include <stddef.h> |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2217 VideoEncodeAcceleratorTest, | 2217 VideoEncodeAcceleratorTest, |
| 2218 ::testing::Values( | 2218 ::testing::Values( |
| 2219 std::make_tuple(1, false, 0, true, false, false, false, false, false))); | 2219 std::make_tuple(1, false, 0, true, false, false, false, false, false))); |
| 2220 | 2220 |
| 2221 INSTANTIATE_TEST_CASE_P( | 2221 INSTANTIATE_TEST_CASE_P( |
| 2222 MidStreamParamSwitchBitrate, | 2222 MidStreamParamSwitchBitrate, |
| 2223 VideoEncodeAcceleratorTest, | 2223 VideoEncodeAcceleratorTest, |
| 2224 ::testing::Values( | 2224 ::testing::Values( |
| 2225 std::make_tuple(1, false, 0, true, false, true, false, false, false))); | 2225 std::make_tuple(1, false, 0, true, false, true, false, false, false))); |
| 2226 | 2226 |
| 2227 // TODO(kcwu): add back bitrate test after crbug.com/693336 fixed. |
| 2227 INSTANTIATE_TEST_CASE_P( | 2228 INSTANTIATE_TEST_CASE_P( |
| 2228 MidStreamParamSwitchFPS, | 2229 DISABLED_MidStreamParamSwitchFPS, |
| 2229 VideoEncodeAcceleratorTest, | 2230 VideoEncodeAcceleratorTest, |
| 2230 ::testing::Values( | 2231 ::testing::Values( |
| 2231 std::make_tuple(1, false, 0, true, false, false, true, false, false))); | 2232 std::make_tuple(1, false, 0, true, false, false, true, false, false))); |
| 2232 | 2233 |
| 2233 INSTANTIATE_TEST_CASE_P( | 2234 INSTANTIATE_TEST_CASE_P( |
| 2234 MultipleEncoders, | 2235 MultipleEncoders, |
| 2235 VideoEncodeAcceleratorTest, | 2236 VideoEncodeAcceleratorTest, |
| 2236 ::testing::Values( | 2237 ::testing::Values( |
| 2237 std::make_tuple(3, false, 0, false, false, false, false, false, false), | 2238 std::make_tuple(3, false, 0, false, false, false, false, false, false), |
| 2238 std::make_tuple(3, false, 0, true, false, false, true, false, false), | |
| 2239 std::make_tuple(3, false, 0, true, false, true, false, false, false))); | 2239 std::make_tuple(3, false, 0, true, false, true, false, false, false))); |
| 2240 | 2240 |
| 2241 INSTANTIATE_TEST_CASE_P( | 2241 INSTANTIATE_TEST_CASE_P( |
| 2242 VerifyTimestamp, | 2242 VerifyTimestamp, |
| 2243 VideoEncodeAcceleratorTest, | 2243 VideoEncodeAcceleratorTest, |
| 2244 ::testing::Values( | 2244 ::testing::Values( |
| 2245 std::make_tuple(1, false, 0, false, false, false, false, false, true))); | 2245 std::make_tuple(1, false, 0, false, false, false, false, false, true))); |
| 2246 | 2246 |
| 2247 INSTANTIATE_TEST_CASE_P(NoInputTest, | 2247 INSTANTIATE_TEST_CASE_P(NoInputTest, |
| 2248 VideoEncodeAcceleratorSimpleTest, | 2248 VideoEncodeAcceleratorSimpleTest, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2375 | 2375 |
| 2376 media::g_env = | 2376 media::g_env = |
| 2377 reinterpret_cast<media::VideoEncodeAcceleratorTestEnvironment*>( | 2377 reinterpret_cast<media::VideoEncodeAcceleratorTestEnvironment*>( |
| 2378 testing::AddGlobalTestEnvironment( | 2378 testing::AddGlobalTestEnvironment( |
| 2379 new media::VideoEncodeAcceleratorTestEnvironment( | 2379 new media::VideoEncodeAcceleratorTestEnvironment( |
| 2380 std::move(test_stream_data), log_path, run_at_fps, | 2380 std::move(test_stream_data), log_path, run_at_fps, |
| 2381 needs_encode_latency, verify_all_output))); | 2381 needs_encode_latency, verify_all_output))); |
| 2382 | 2382 |
| 2383 return RUN_ALL_TESTS(); | 2383 return RUN_ALL_TESTS(); |
| 2384 } | 2384 } |
| OLD | NEW |