#include "content/public/test/embedded_worker_instance_test_harness.h"
#include <stdint.h>
#include "base/run_loop.h"
#include "base/test/test_future.h"
#include "content/browser/service_worker/embedded_worker_instance.h"
#include "content/browser/service_worker/embedded_worker_test_helper.h"
#include "content/browser/service_worker/service_worker_hid_delegate_observer.h"
#include "content/browser/service_worker/service_worker_test_utils.h"
#include "content/browser/service_worker/service_worker_usb_delegate_observer.h"
#include "content/public/test/test_browser_context.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
EmbeddedWorkerInstanceTestHarness::~EmbeddedWorkerInstanceTestHarness() =
default;
void EmbeddedWorkerInstanceTestHarness::SetUp() { … }
void EmbeddedWorkerInstanceTestHarness::TearDown() { … }
std::unique_ptr<BrowserContext>
EmbeddedWorkerInstanceTestHarness::CreateBrowserContext() { … }
void EmbeddedWorkerInstanceTestHarness::CreateAndStartWorker(
const GURL& origin,
const GURL& worker_url) { … }
void EmbeddedWorkerInstanceTestHarness::StopAndResetWorker() { … }
#if !BUILDFLAG(IS_ANDROID)
void EmbeddedWorkerInstanceTestHarness::BindHidServiceToWorker(
const GURL& origin,
mojo::PendingReceiver<blink::mojom::HidService> receiver) { … }
#endif
void EmbeddedWorkerInstanceTestHarness::BindUsbServiceToWorker(
const GURL& origin,
mojo::PendingReceiver<blink::mojom::WebUsbService> receiver) { … }
EmbeddedWorkerInstanceTestHarness::EmbeddedWorkerInstanceTestHarness(
std::unique_ptr<BrowserTaskEnvironment> task_environment)
: … { … }
}