#include "components/viz/common/frame_sinks/delay_based_time_source.h"
#include <stdint.h>
#include "base/test/simple_test_tick_clock.h"
#include "base/test/test_mock_time_task_runner.h"
#include "components/viz/test/fake_delay_based_time_source.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace viz {
namespace {
base::TimeDelta Interval() { … }
class DelayBasedTimeSourceTest : public ::testing::Test { … };
TEST_F(DelayBasedTimeSourceTest, TaskPostedAndTickCalled) { … }
TEST_F(DelayBasedTimeSourceTest, TickNotCalledWithTaskPosted) { … }
TEST_F(DelayBasedTimeSourceTest, StartTwiceEnqueuesOneTask) { … }
TEST_F(DelayBasedTimeSourceTest, StartWhenRunningDoesntTick) { … }
TEST_F(DelayBasedTimeSourceTest, NextDelaySaneWhenExactlyOnRequestedTime) { … }
TEST_F(DelayBasedTimeSourceTest, NextDelaySaneWhenSlightlyAfterRequestedTime) { … }
TEST_F(DelayBasedTimeSourceTest,
NextDelaySaneWhenExactlyTwiceAfterRequestedTime) { … }
TEST_F(DelayBasedTimeSourceTest,
NextDelaySaneWhenSlightlyAfterTwiceRequestedTime) { … }
TEST_F(DelayBasedTimeSourceTest, NextDelaySaneWhenHalfAfterRequestedTime) { … }
TEST_F(DelayBasedTimeSourceTest, JitteryRuntimeWithFutureTimebases) { … }
TEST_F(DelayBasedTimeSourceTest, AchievesTargetRateWithNoNoise) { … }
TEST_F(DelayBasedTimeSourceTest, TestDeactivateWhilePending) { … }
TEST_F(DelayBasedTimeSourceTest,
TestDeactivateAndReactivateBeforeNextTickTime) { … }
TEST_F(DelayBasedTimeSourceTest, TestDeactivateAndReactivateAfterNextTickTime) { … }
}
}