chromium/remoting/protocol/capture_scheduler_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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) {}

// Verify that we never have more than 2 encoding frames.
TEST_F(CaptureSchedulerTest, MaximumEncodingFrames) {}

// Verify that the scheduler doesn't exceed maximum number of pending frames.
TEST_F(CaptureSchedulerTest, MaximumPendingFrames) {}

}  // namespace remoting::protocol