chromium/content/browser/service_worker/fake_embedded_worker_instance_client.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/service_worker/fake_embedded_worker_instance_client.h"

#include <utility>

#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "content/browser/service_worker/embedded_worker_test_helper.h"
#include "content/browser/service_worker/service_worker_context_core.h"
#include "services/network/public/cpp/record_ontransfersizeupdate_utils.h"
#include "services/network/public/mojom/early_hints.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_client.h"
#include "third_party/blink/public/mojom/devtools/devtools_agent.mojom.h"

namespace content {

class FakeServiceWorkerInstalledScriptsManager
    : public blink::mojom::ServiceWorkerInstalledScriptsManager {};

// URLLoaderClient lives until OnComplete() is called.
class FakeEmbeddedWorkerInstanceClient::LoaderClient final
    : public network::mojom::URLLoaderClient {};

FakeEmbeddedWorkerInstanceClient::FakeEmbeddedWorkerInstanceClient(
    EmbeddedWorkerTestHelper* helper)
    :{}

FakeEmbeddedWorkerInstanceClient::~FakeEmbeddedWorkerInstanceClient() = default;

base::WeakPtr<FakeEmbeddedWorkerInstanceClient>
FakeEmbeddedWorkerInstanceClient::GetWeakPtr() {}

void FakeEmbeddedWorkerInstanceClient::Bind(
    mojo::PendingReceiver<blink::mojom::EmbeddedWorkerInstanceClient>
        receiver) {}

void FakeEmbeddedWorkerInstanceClient::RunUntilBound() {}

blink::mojom::ServiceWorkerScriptInfoPtr
FakeEmbeddedWorkerInstanceClient::WaitForTransferInstalledScript() {}

void FakeEmbeddedWorkerInstanceClient::Disconnect() {}

void FakeEmbeddedWorkerInstanceClient::StartWorker(
    blink::mojom::EmbeddedWorkerStartParamsPtr params) {}

void FakeEmbeddedWorkerInstanceClient::StopWorker() {}

void FakeEmbeddedWorkerInstanceClient::DidPopulateScriptCacheMap() {}

void FakeEmbeddedWorkerInstanceClient::OnConnectionError() {}

void FakeEmbeddedWorkerInstanceClient::CallOnConnectionError() {}

void FakeEmbeddedWorkerInstanceClient::EvaluateScript() {}

DelayedFakeEmbeddedWorkerInstanceClient::
    DelayedFakeEmbeddedWorkerInstanceClient(EmbeddedWorkerTestHelper* helper)
    :{}

DelayedFakeEmbeddedWorkerInstanceClient::
    ~DelayedFakeEmbeddedWorkerInstanceClient() = default;

void DelayedFakeEmbeddedWorkerInstanceClient::UnblockStartWorker() {}

void DelayedFakeEmbeddedWorkerInstanceClient::UnblockStopWorker() {}

void DelayedFakeEmbeddedWorkerInstanceClient::RunUntilStartWorker() {}

void DelayedFakeEmbeddedWorkerInstanceClient::RunUntilStopWorker() {}

void DelayedFakeEmbeddedWorkerInstanceClient::StartWorker(
    blink::mojom::EmbeddedWorkerStartParamsPtr params) {}

void DelayedFakeEmbeddedWorkerInstanceClient::StopWorker() {}

void DelayedFakeEmbeddedWorkerInstanceClient::CompleteStopWorker() {}

}  // namespace content