chromium/components/viz/service/display/frame_interval_matchers_unittest.cc

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

#include "components/viz/service/display/frame_interval_matchers.h"

#include <optional>

#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace viz {
namespace {

FrameIntervalClass;
Result;
FixedIntervalSettings;
ContinuousRangeSettings;
Settings;
Inputs;

constexpr base::TimeTicks kNow =;

void ExpectResult(const std::optional<Result> result_opt,
                  FrameIntervalClass frame_interval_class) {}

void ExpectResult(const std::optional<Result> result_opt,
                  base::TimeDelta interval) {}

void ExpectNullResult(const std::optional<Result> result_opt) {}

FixedIntervalSettings BuildDefaultFixedIntervalSettings() {}

// Returns a list of fixed intervals settings where the supported intervals are
// extremely close in value. Some displays (usually desktop) can support this.
// 60Hz & 59.94Hz are a real example.
FixedIntervalSettings BuildDenseFixedIntervalSettings() {}

ContinuousRangeSettings BuildContinuousRangeSettings(
    base::TimeDelta min_interval = base::Hertz(120),
    base::TimeDelta max_interval = base::Hertz(40)) {}

Inputs BuildDefaultInputs(Settings& settings, uint32_t num_sinks) {}

TEST(FrameIntervalMatchersTest, InputBoost) {}

TEST(FrameIntervalMatchersTest, InputBoostFixedInterval) {}

TEST(FrameIntervalMatchersTest, InputBoostIgnoreOldSinks) {}

TEST(FrameIntervalMatchersTest, OnlyVideo) {}

TEST(FrameIntervalMatchersTest, OnlyVideoFixedInterval) {}

TEST(FrameIntervalMatchersTest, OnlyVideoFixedIntervalNoSimpleCadence) {}

TEST(FrameIntervalMatchersTest, OnlyVideoDifferentIntervals) {}

TEST(FrameIntervalMatchersTest, OnlyVideoContinuousRange) {}

TEST(FrameIntervalMatchersTest, VideoConference) {}

TEST(FrameIntervalMatchersTest, VideoConferenceFixedInterval) {}

TEST(FrameIntervalMatchersTest, VideoConferenceDenseFixedInterval) {}

TEST(FrameIntervalMatchersTest, VideoConferenceDuplicateCount) {}

TEST(FrameIntervalMatchersTest, VideoConferenceIgnoreOldSinks) {}

TEST(FrameIntervalMatchersTest, VideoConferenceContinuousRange) {}

}  // namespace
}  // namespace viz