#include <cmath>
#include <map>
#include "gtest/gtest.h"
#include "test/codec_factory.h"
#include "test/encode_test_driver.h"
#include "test/i420_video_source.h"
#include "test/util.h"
#include "vpx_config.h"
namespace {
const int kCQLevelMin = …;
const int kCQLevelMax = …;
const int kCQLevelStep = …;
const unsigned int kCQTargetBitrate = …;
class CQTest : public ::libvpx_test::EncoderTest,
public ::libvpx_test::CodecTestWithParam<int> { … };
CQTest::BitrateMap CQTest::bitrates_;
TEST_P(CQTest, LinearPSNRIsHigherForCQLevel) { … }
VP8_INSTANTIATE_TEST_SUITE(…);
}