chromium/third_party/blink/renderer/platform/scheduler/test/web_scheduling_test_helper.h

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

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_TEST_WEB_SCHEDULING_TEST_HELPER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_TEST_WEB_SCHEDULING_TEST_HELPER_H_

#include <memory>

#include "base/memory/raw_ref.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/platform/scheduler/public/web_scheduling_priority.h"
#include "third_party/blink/renderer/platform/scheduler/public/web_scheduling_queue_type.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"

namespace blink {
class FrameOrWorkerScheduler;
class WebSchedulingTaskQueue;
}  // namespace blink

namespace blink::scheduler {

// Helper class for running tests using `WebSchedulingTaskQueue`s. This manages
// one task queue and continuation queue for each priority, and test tasks can
// be scheduled on the queues using `PostTestTasks()`. Queues can be accessed,
// e.g. to change priority, using `GetWebSchedulingTaskQueue()`.
class WebSchedulingTestHelper {};

}  // namespace blink::scheduler

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_TEST_WEB_SCHEDULING_TEST_HELPER_H_