#include "content/public/test/browser_task_environment.h"
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/task/current_thread.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "content/browser/after_startup_task_utils.h"
#include "content/browser/browser_process_io_thread.h"
#include "content/browser/browser_thread_impl.h"
#include "content/browser/scheduler/browser_io_thread_delegate.h"
#include "content/browser/scheduler/browser_task_executor.h"
#include "content/browser/scheduler/browser_task_priority.h"
#include "content/browser/scheduler/browser_ui_thread_scheduler.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_utils.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/task_scheduler/post_task_android.h"
#endif
#if BUILDFLAG(IS_WIN)
#include "base/win/scoped_com_initializer.h"
#endif
namespace content {
class TestBrowserThread { … };
std::unique_ptr<TestBrowserThread> TestBrowserThread::StartIOThread() { … }
TestBrowserThread::TestBrowserThread(
BrowserThread::ID identifier,
std::unique_ptr<BrowserProcessIOThread> real_thread)
: … { … }
TestBrowserThread::TestBrowserThread(
BrowserThread::ID identifier,
scoped_refptr<base::SingleThreadTaskRunner> thread_runner)
: … { … }
TestBrowserThread::~TestBrowserThread() { … }
void TestBrowserThread::Stop() { … }
base::sequence_manager::SequenceManager::PrioritySettings
BrowserTaskEnvironment::CreateBrowserTaskPrioritySettings() { … }
BrowserTaskEnvironment::~BrowserTaskEnvironment() { … }
BrowserTaskEnvironment::BrowserTaskEnvironment(
base::test::TaskEnvironment&& task_environment,
bool real_io_thread)
: … { … }
void BrowserTaskEnvironment::Init() { … }
void BrowserTaskEnvironment::RunIOThreadUntilIdle() { … }
}