chromium/content/public/test/mojo_capability_control_test_util.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 "content/public/test/mojo_capability_control_test_util.h"

#include "base/functional/bind.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "third_party/blink/public/mojom/browser_interface_broker.mojom.h"

namespace content::test {

MojoCapabilityControlTestHelper::MojoCapabilityControlTestHelper() = default;
MojoCapabilityControlTestHelper::~MojoCapabilityControlTestHelper() = default;

void MojoCapabilityControlTestHelper::
    RegisterTestBrowserInterfaceBindersForFrame(
        RenderFrameHost* render_frame_host,
        mojo::BinderMapWithContext<RenderFrameHost*>* map) {}

void MojoCapabilityControlTestHelper::RegisterTestMojoBinderPolicies(
    MojoBinderPolicyMap& policy_map) {}

void MojoCapabilityControlTestHelper::BindDeferInterface(
    RenderFrameHost* render_frame_host,
    mojo::PendingReceiver<mojom::TestInterfaceForDefer> receiver) {}

void MojoCapabilityControlTestHelper::BindGrantInterface(
    RenderFrameHost* render_frame_host,
    mojo::PendingReceiver<mojom::TestInterfaceForGrant> receiver) {}

void MojoCapabilityControlTestHelper::BindCancelInterface(
    RenderFrameHost* render_frame_host,
    mojo::PendingReceiver<mojom::TestInterfaceForCancel> receiver) {}

void MojoCapabilityControlTestHelper::BindUnexpectedInterface(
    RenderFrameHost* render_frame_host,
    mojo::PendingReceiver<mojom::TestInterfaceForUnexpected> receiver) {}

void MojoCapabilityControlTestHelper::GetInterface(
    RenderFrameHost* render_frame_host,
    mojo::GenericPendingReceiver receiver) {}

void MojoCapabilityControlTestHelper::Ping(PingCallback callback) {}

size_t MojoCapabilityControlTestHelper::GetDeferReceiverSetSize() {}

size_t MojoCapabilityControlTestHelper::GetGrantReceiverSetSize() {}

}  // namespace content::test