#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_impl.h"
#include <stddef.h>
#include <memory>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/message_loop/message_pump.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h"
#include "base/task/sequence_manager/sequence_manager.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/scheduler/common/task_priority.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_scheduler_impl.h"
#include "third_party/blink/renderer/platform/testing/scoped_scheduler_overrider.h"
namespace blink {
namespace scheduler {
namespace main_thread_unittest {
const int kWorkBatchSize = …;
_;
class MockTask { … };
class MockTaskObserver : public Thread::TaskObserver { … };
class MainThreadTest : public testing::Test { … };
TEST_F(MainThreadTest, TestTaskObserver) { … }
TEST_F(MainThreadTest, TestWorkBatchWithOneTask) { … }
TEST_F(MainThreadTest, TestWorkBatchWithTwoTasks) { … }
TEST_F(MainThreadTest, TestWorkBatchWithThreeTasks) { … }
void EnterRunLoop(scoped_refptr<base::SingleThreadTaskRunner> task_runner) { … }
TEST_F(MainThreadTest, TestNestedRunLoop) { … }
}
}
}