#include "third_party/blink/renderer/platform/scheduler/public/dummy_schedulers.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/platform/scheduler/common/simple_main_thread_scheduler.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_scheduler_impl.h"
#include "third_party/blink/renderer/platform/scheduler/public/agent_group_scheduler.h"
#include "third_party/blink/renderer/platform/scheduler/public/frame_scheduler.h"
#include "third_party/blink/renderer/platform/scheduler/public/main_thread.h"
#include "third_party/blink/renderer/platform/scheduler/public/main_thread_scheduler.h"
#include "third_party/blink/renderer/platform/scheduler/public/page_scheduler.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/scheduler/public/web_scheduling_task_queue.h"
#include "third_party/blink/renderer/platform/scheduler/public/widget_scheduler.h"
#include "third_party/blink/renderer/platform/wtf/wtf.h"
namespace blink {
class VirtualTimeController;
namespace scheduler {
namespace {
class DummyWidgetScheduler final : public WidgetScheduler { … };
class DummyFrameScheduler : public FrameScheduler { … };
class DummyPageScheduler : public PageScheduler { … };
class SimpleMainThread : public MainThread { … };
class SimpleMainThreadWithScheduler : public SimpleMainThread { … };
class DummyWebMainThreadScheduler : public WebThreadScheduler,
public MainThreadScheduler { … };
class DummyAgentGroupScheduler : public AgentGroupScheduler { … };
}
std::unique_ptr<FrameScheduler> CreateDummyFrameScheduler(
v8::Isolate* isolate) { … }
std::unique_ptr<PageScheduler> CreateDummyPageScheduler(v8::Isolate* isolate) { … }
AgentGroupScheduler* CreateDummyAgentGroupScheduler(v8::Isolate* isolate) { … }
std::unique_ptr<WebThreadScheduler> CreateDummyWebMainThreadScheduler() { … }
std::unique_ptr<MainThread> CreateSimpleMainThread() { … }
void SetMainThreadTaskRunnerForTesting() { … }
void UnsetMainThreadTaskRunnerForTesting() { … }
}
}