#include <memory>
#include <string>
#include <unordered_map>
#include "gtest/gtest.h"
#include "test/codec_factory.h"
#include "test/encode_test_driver.h"
#include "test/util.h"
#include "test/y4m_video_source.h"
#include "test/yuv_video_source.h"
namespace {
const unsigned int kFrames = …;
const int kBitrate = …;
std::unordered_map<std::string,
std::unordered_map<int, std::unordered_map<int, double>>>
kPsnrThreshold = …;
TestVideoParam;
std::ostream &operator<<(std::ostream &os, const TestVideoParam &test_arg) { … }
const TestVideoParam kTestVectors[] = …;
class LFControlEndToEndTest
: public ::libaom_test::CodecTestWith5Params<TestVideoParam, int,
unsigned int, int, int>,
public ::libaom_test::EncoderTest { … };
class LFControlEndToEndTestThreaded : public LFControlEndToEndTest { … };
TEST_P(LFControlEndToEndTest, EndtoEndPSNRTest) { … }
TEST_P(LFControlEndToEndTestThreaded, EndtoEndPSNRTest) { … }
TEST(LFControlGetterTest, NullptrInput) { … }
AV1_INSTANTIATE_TEST_SUITE(…) …;
AV1_INSTANTIATE_TEST_SUITE(…) …;
}