chromium/chrome/browser/private_network_access/private_network_device_browser_test_utils.cc

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

#include "chrome/browser/private_network_access/private_network_device_browser_test_utils.h"

#include "chrome/browser/private_network_access/chrome_private_network_device_chooser.h"
#include "chrome/browser/private_network_access/private_network_device_chooser_controller.h"
#include "components/permissions/chooser_controller.h"
#include "content/public/common/content_client.h"

class FakeChooserView : public permissions::ChooserController::View {};

class FakePNAChooser : public ChromePrivateNetworkDeviceChooser {};

TestPNADelegate::TestPNADelegate() = default;
TestPNADelegate::~TestPNADelegate() = default;

void TestPNADelegate::RequestPermission(
    content::RenderFrameHost& frame,
    blink::mojom::PrivateNetworkDevicePtr device,
    network::mojom::URLLoaderNetworkServiceObserver::
        OnPrivateNetworkAccessPermissionRequiredCallback callback) {}

std::unique_ptr<ChromePrivateNetworkDeviceChooser> TestPNADelegate::RunChooser(
    content::RenderFrameHost& frame,
    blink::mojom::PrivateNetworkDevicePtr device,
    network::mojom::URLLoaderNetworkServiceObserver::
        OnPrivateNetworkAccessPermissionRequiredCallback callback,
    bool is_device_valid) {}

TestPNAContentBrowserClient::TestPNAContentBrowserClient()
    :{}
TestPNAContentBrowserClient::~TestPNAContentBrowserClient() = default;

ChromePrivateNetworkDeviceDelegate*
TestPNAContentBrowserClient::GetPrivateNetworkDeviceDelegate() {}

void TestPNAContentBrowserClient::SetAsBrowserClient() {}

void TestPNAContentBrowserClient::UnsetAsBrowserClient() {}