style: adjust clang-format rules (#2186)
Co-authored-by: Vithorio Polten <reach@vithor.io>
This commit is contained in:
@@ -2,21 +2,19 @@
|
||||
* @file tests/unit/test_video.cpp
|
||||
* @brief Test src/video.*.
|
||||
*/
|
||||
#include <src/video.h>
|
||||
|
||||
#include "../tests_common.h"
|
||||
|
||||
#include <src/video.h>
|
||||
|
||||
struct EncoderTest: PlatformTestSuite, testing::WithParamInterface<video::encoder_t *> {
|
||||
void
|
||||
SetUp() override {
|
||||
void SetUp() override {
|
||||
auto &encoder = *GetParam();
|
||||
if (!video::validate_encoder(encoder, false)) {
|
||||
// Encoder failed validation,
|
||||
// if it's software - fail, otherwise skip
|
||||
if (encoder.name == "software") {
|
||||
FAIL() << "Software encoder not available";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GTEST_SKIP() << "Encoder not available";
|
||||
}
|
||||
}
|
||||
@@ -40,8 +38,12 @@ INSTANTIATE_TEST_SUITE_P(
|
||||
#ifdef __APPLE__
|
||||
&video::videotoolbox,
|
||||
#endif
|
||||
&video::software),
|
||||
[](const auto &info) { return std::string(info.param->name); });
|
||||
&video::software
|
||||
),
|
||||
[](const auto &info) {
|
||||
return std::string(info.param->name);
|
||||
}
|
||||
);
|
||||
|
||||
TEST_P(EncoderTest, ValidateEncoder) {
|
||||
// todo:: test something besides fixture setup
|
||||
|
||||
Reference in New Issue
Block a user