#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/mediastream/low_latency_video_renderer_algorithm.h"
#include <queue>
#include "base/time/time.h"
#include "media/base/video_frame_pool.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
class LowLatencyVideoRendererAlgorithmTest : public testing::Test { … };
TEST_F(LowLatencyVideoRendererAlgorithmTest, Empty) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalMode60Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalMode30Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalMode90Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalMode120Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalMode600Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest,
DropAllFramesIfQueueExceedsMaxSize) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, EnterDrainMode60Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, ExitDrainMode60Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, EnterDrainMode120Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, SteadyStateQueueReduction60Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, SteadyStateReduction90Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest,
RenderFrameImmediatelyAfterOutage) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalModeWithGlitch60Hz) { … }
TEST_F(LowLatencyVideoRendererAlgorithmTest, NormalModeWithGlitch120Hz) { … }
}