#include "media/gpu/h264_rate_controller.h"
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace {
constexpr uint32_t kCommonAvgBitrate = …;
constexpr uint32_t kCommonPeakBitrate = …;
constexpr int kCommonFps = …;
constexpr int kCommonFpsMax = …;
constexpr uint32_t kCommonFrameHeight = …;
constexpr uint32_t kCommonFrameWidth = …;
constexpr size_t kCommonHRDBufferSize = …;
constexpr base::TimeDelta kCommonGopMaxDuration = …;
constexpr uint32_t kCommonQpMax = …;
constexpr uint32_t kCommonQpMin = …;
constexpr size_t kLayer0Index = …;
constexpr size_t kLayer1Index = …;
class H264RateControllerTest : public testing::Test { … };
TEST_F(H264RateControllerTest, RunH264RateController1TemporalLayerTest) { … }
TEST_F(H264RateControllerTest, RunH264RateController2TemporalLayersTest) { … }
TEST_F(H264RateControllerTest,
RunH264RateController2TemporalLayersFixedDeltaQPTest) { … }
TEST_F(H264RateControllerTest, RunH264RateControllerFramerateMeanTest) { … }
TEST_F(H264RateControllerTest, RunH264RateControllerSetBufferParametersTest) { … }
TEST_F(H264RateControllerTest, RunH264RateControllerIntraEncodedFrameTest) { … }
}
}