#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() { … }
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) { … }
}
}