#include "third_party/blink/renderer/platform/scheduler/common/blink_scheduler_single_thread_task_runner.h"
#include <memory>
#include <utility>
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/task/sequence_manager/sequence_manager.h"
#include "base/task/sequence_manager/task_queue.h"
#include "base/task/sequence_manager/test/sequence_manager_for_test.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/platform/scheduler/public/non_main_thread.h"
namespace blink::scheduler {
QueueName;
TaskQueue;
TaskEnvironment;
namespace {
class TestObject { … };
}
class BlinkSchedulerSingleThreadTaskRunnerTest : public testing::Test { … };
TEST_F(BlinkSchedulerSingleThreadTaskRunnerTest, TargetTaskRunnerOnly) { … }
TEST_F(BlinkSchedulerSingleThreadTaskRunnerTest,
TargetTaskRunnerOnlyShutDownAfterPosting) { … }
TEST_F(BlinkSchedulerSingleThreadTaskRunnerTest, BackupTaskRunner) { … }
TEST_F(BlinkSchedulerSingleThreadTaskRunnerTest,
BackupTaskRunnerShutDownAfterPosting) { … }
TEST_F(BlinkSchedulerSingleThreadTaskRunnerTest,
SynchronousDeleteAfterShutdownOnSameThread) { … }
TEST_F(BlinkSchedulerSingleThreadTaskRunnerTest,
PostingToShutDownThreadLeaksObject) { … }
}