#include "third_party/blink/renderer/core/scheduler/idle_deadline.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_mock_time_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/scheduler/web_agent_group_scheduler.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/testing/scoped_scheduler_overrider.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
namespace {
class MockIdleDeadlineScheduler final : public ThreadScheduler { … };
}
class IdleDeadlineTest : public testing::Test { … };
TEST_F(IdleDeadlineTest, DeadlineInFuture) { … }
TEST_F(IdleDeadlineTest, DeadlineInPast) { … }
TEST_F(IdleDeadlineTest, YieldForHighPriorityWork) { … }
}