#include "gtest/gtest.h"
#include "./vpx_config.h"
#include "test/codec_factory.h"
#include "test/encode_test_driver.h"
#include "test/i420_video_source.h"
#include "test/util.h"
#include "test/y4m_video_source.h"
namespace {
const int kMaxPsnr = …;
class LosslessTest
: public ::libvpx_test::EncoderTest,
public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> { … };
TEST_P(LosslessTest, TestLossLessEncoding) { … }
TEST_P(LosslessTest, TestLossLessEncoding444) { … }
TEST_P(LosslessTest, TestLossLessEncodingCtrl) { … }
#if CONFIG_REALTIME_ONLY
VP9_INSTANTIATE_TEST_SUITE(…);
#else
VP9_INSTANTIATE_TEST_SUITE(LosslessTest,
::testing::Values(::libvpx_test::kRealTime,
::libvpx_test::kOnePassGood,
::libvpx_test::kTwoPassGood));
#endif
}