#include "content/public/test/content_browser_test_shell_main_delegate.h"
#include <optional>
#include "base/test/task_environment.h"
#include "content/public/test/content_browser_test_content_browser_client.h"
#include "content/shell/browser/shell_content_browser_client.h"
namespace content {
ContentBrowserTestShellMainDelegate::ContentBrowserTestShellMainDelegate()
: ShellMainDelegate(true) {}
ContentBrowserTestShellMainDelegate::~ContentBrowserTestShellMainDelegate() =
default;
void ContentBrowserTestShellMainDelegate::CreateThreadPool(
std::string_view name) {
base::test::TaskEnvironment::CreateThreadPool();
}
ContentBrowserClient*
ContentBrowserTestShellMainDelegate::CreateContentBrowserClient() {
browser_client_ = std::make_unique<ContentBrowserTestContentBrowserClient>();
return browser_client_.get();
}
}