chromium/content/public/test/test_web_ui.cc

// Copyright 2015 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/test_web_ui.h"

#include <string_view>
#include <utility>

#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_message_handler.h"

namespace content {

TestWebUI::TestWebUI() = default;

TestWebUI::~TestWebUI() {}

void TestWebUI::ClearTrackedCalls() {}

void TestWebUI::HandleReceivedMessage(const std::string& handler_name,
                                      const base::Value::List& args) {}

WebContents* TestWebUI::GetWebContents() {}

WebUIController* TestWebUI::GetController() {}

RenderFrameHost* TestWebUI::GetRenderFrameHost() {}

void TestWebUI::SetController(std::unique_ptr<WebUIController> controller) {}

float TestWebUI::GetDeviceScaleFactor() {}

const std::u16string& TestWebUI::GetOverriddenTitle() {}

BindingsPolicySet TestWebUI::GetBindings() {}

void TestWebUI::SetBindings(BindingsPolicySet bindings) {}

const std::vector<std::string>& TestWebUI::GetRequestableSchemes() {}

void TestWebUI::AddRequestableScheme(const char* scheme) {}

void TestWebUI::AddMessageHandler(
    std::unique_ptr<WebUIMessageHandler> handler) {}

void TestWebUI::RegisterMessageCallback(std::string_view message,
                                        MessageCallback callback) {}

void TestWebUI::ProcessWebUIMessage(const GURL& source_url,
                                    const std::string& message,
                                    base::Value::List args) {}

bool TestWebUI::CanCallJavascript() {}

void TestWebUI::CallJavascriptFunctionUnsafe(
    std::string_view function_name,
    base::span<const base::ValueView> args) {}

void TestWebUI::OnJavascriptCall(const CallData& call_data) {}

std::vector<std::unique_ptr<WebUIMessageHandler>>*
TestWebUI::GetHandlersForTesting() {}

TestWebUI::CallData::CallData(std::string_view function_name)
    :{}

TestWebUI::CallData::~CallData() {}

void TestWebUI::CallData::AppendArgument(base::Value arg) {}

}  // namespace content