#include "content/browser/service_worker/embedded_worker_instance.h"
#include <stdint.h>
#include <utility>
#include <vector>
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_future.h"
#include "content/browser/service_worker/embedded_worker_test_helper.h"
#include "content/browser/service_worker/fake_embedded_worker_instance_client.h"
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/browser/service_worker/service_worker_version.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/test/embedded_worker_instance_test_harness.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"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/service_worker/embedded_worker_status.h"
#include "third_party/blink/public/mojom/service_worker/embedded_worker.mojom.h"
namespace content {
namespace {
RegistrationAndVersionPair;
}
class EmbeddedWorkerInstanceTest : public EmbeddedWorkerInstanceTestHarness,
public EmbeddedWorkerInstance::Listener { … };
TEST_F(EmbeddedWorkerInstanceTest, StartAndStop) { … }
TEST_F(EmbeddedWorkerInstanceTest, ForceNewProcess) { … }
TEST_F(EmbeddedWorkerInstanceTest, StopWhenDevToolsAttached) { … }
TEST_F(EmbeddedWorkerInstanceTest, DetachAfterSendingStartWorkerMessage) { … }
TEST_F(EmbeddedWorkerInstanceTest, StopAfterSendingStartWorkerMessage) { … }
TEST_F(EmbeddedWorkerInstanceTest, Detach) { … }
TEST_F(EmbeddedWorkerInstanceTest, FailToSendStartIPC) { … }
TEST_F(EmbeddedWorkerInstanceTest, RemoveRemoteInterface) { … }
class RecordCacheStorageInstanceClient
: public FakeEmbeddedWorkerInstanceClient { … };
TEST_F(EmbeddedWorkerInstanceTest, CacheStorageOptimization) { … }
class AbruptCompletionInstanceClient : public FakeEmbeddedWorkerInstanceClient { … };
TEST_F(EmbeddedWorkerInstanceTest, AbruptCompletion) { … }
class FetchHandlerInstanceClient : public FakeEmbeddedWorkerInstanceClient { … };
TEST_F(EmbeddedWorkerInstanceTest, HasFetchHandler) { … }
}