#include "content/browser/service_worker/service_worker_script_loader_factory.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "content/browser/service_worker/embedded_worker_test_helper.h"
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/browser/service_worker/service_worker_test_utils.h"
#include "content/public/test/browser_task_environment.h"
#include "content/test/fake_network.h"
#include "mojo/public/cpp/system/data_pipe_utils.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/test/test_url_loader_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration_options.mojom.h"
#include "url/origin.h"
namespace content {
class ServiceWorkerScriptLoaderFactoryTest : public testing::Test { … };
TEST_F(ServiceWorkerScriptLoaderFactoryTest, Success) { … }
TEST_F(ServiceWorkerScriptLoaderFactoryTest, Redundant) { … }
TEST_F(ServiceWorkerScriptLoaderFactoryTest, NoWorkerHost) { … }
TEST_F(ServiceWorkerScriptLoaderFactoryTest, ContextDestroyed) { … }
class ServiceWorkerScriptLoaderFactoryCopyResumeTest
: public ServiceWorkerScriptLoaderFactoryTest { … };
TEST_F(ServiceWorkerScriptLoaderFactoryCopyResumeTest, CopyScript) { … }
TEST_F(ServiceWorkerScriptLoaderFactoryCopyResumeTest,
CreateResumeTypeScriptLoader) { … }
}