| 8 | |
| 9 | struct EncoderTest: PlatformTestSuite, testing::WithParamInterface<video::encoder_t *> { |
| 10 | void SetUp() override { |
| 11 | auto &encoder = *GetParam(); |
| 12 | if (!video::validate_encoder(encoder, false)) { |
| 13 | // Encoder failed validation, |
| 14 | // if it's software - fail, otherwise skip |
| 15 | if (encoder.name == "software") { |
| 16 | FAIL() << "Software encoder not available"; |
| 17 | } else { |
| 18 | GTEST_SKIP() << "Encoder not available"; |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | }; |
| 23 | |
| 24 | INSTANTIATE_TEST_SUITE_P( |
nothing calls this directly
no test coverage detected