MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / SetUp

Method SetUp

tests/unit/test_video.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9struct 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
24INSTANTIATE_TEST_SUITE_P(

Callers

nothing calls this directly

Calls 1

validate_encoderFunction · 0.85

Tested by

no test coverage detected