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

Class EncoderTest

tests/unit/test_video.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <src/video.h>
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(
25 EncoderVariants,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected