#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/protocol/capture_scheduler.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "base/timer/mock_timer.h"
#include "remoting/proto/video.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting::protocol {
static const int kTestInputs[] = …;
static const int kMinumumFrameIntervalMs = …;
class CaptureSchedulerTest : public testing::Test { … };
TEST_F(CaptureSchedulerTest, SingleSampleSameTimes) { … }
TEST_F(CaptureSchedulerTest, SingleSampleDifferentTimes) { … }
TEST_F(CaptureSchedulerTest, RollingAverageDifferentTimes) { … }
TEST_F(CaptureSchedulerTest, MaximumEncodingFrames) { … }
TEST_F(CaptureSchedulerTest, MaximumPendingFrames) { … }
}