#include <set>
#include "media/base/video_bitrate_allocation.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
TEST(VideoBitrateAllocationTest, Constructor_DefaultsModeConstant) { … }
TEST(VideoBitrateAllocationTest, Constructor_ConstantBitrate_CorrectMode) { … }
TEST(VideoBitrateAllocationTest, Constructor_VariableBitrate_CorrectMode) { … }
TEST(VideoBitrateAllocationTest,
Constructor_ConstantBitrate_InitializesTargetZero) { … }
TEST(VideoBitrateAllocationTest,
Constructor_VariableBitrate_InitializesTargetZero) { … }
TEST(VideoBitrateAllocationTest, SetAndGet) { … }
TEST(VideoBitrateAllocationTest, SetBitrate_VariableBitrate_CorrectSum) { … }
TEST(VideoBitrateAllocationTest, SetBitrate_PeakTooLow_IncreasesPeak) { … }
TEST(VideoBitrateAllocationTest, SetPeakBps_GreaterThanSum_Succeeds) { … }
TEST(VideoBitrateAllocationTest, SetPeakBps_EqualToSum_Succeeds) { … }
TEST(VideoBitrateAllocationTest, SetPeakBps_ImplicitConstantBitrate_Fails) { … }
TEST(VideoBitrateAllocationTest, SetPeakBps_ConstantBitrate_Fails) { … }
TEST(VideoBitrateAllocationTest, SetPeakBps_PeakLessThanSum_Fails) { … }
TEST(VideoBitrateAllocationTest, CanSetMaxValue) { … }
TEST(VideoBitrateAllocationTest, ValidatesSumWhenOverwriting) { … }
TEST(VideoBitrateAllocationTest, CanCopyAndCompare) { … }
TEST(VideoBitrateAllocationTest, ToString) { … }
TEST(VideoBitrateAllocationTest, ToString_VariableBitrateAndSingleLayer) { … }
TEST(VideoBitrateAllocationTest, ToString_VariableBitrateAndMultiLayer) { … }
}