chromium/third_party/blink/renderer/core/testing/page_test_base.cc

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

#include "third_party/blink/renderer/core/testing/page_test_base.h"

#include <sstream>

#include "base/containers/span.h"
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "base/time/default_clock.h"
#include "base/time/default_tick_clock.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_font_face_descriptors.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_arraybuffer_arraybufferview_string.h"
#include "third_party/blink/renderer/core/css/css_default_style_sheets.h"
#include "third_party/blink/renderer/core/css/font_face_set_document.h"
#include "third_party/blink/renderer/core/frame/csp/conversion_util.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/html_collection.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/layout/layout_text_fragment.h"
#include "third_party/blink/renderer/core/testing/mock_policy_container_host.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/loader/fetch/memory_cache.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

namespace {

Element* GetOrCreateElement(ContainerNode* parent,
                            const HTMLQualifiedName& tag_name) {}

void ToSimpleLayoutTree(std::ostream& ostream,
                        const LayoutObject& layout_object,
                        int depth) {}

}  // namespace

PageTestBase::MockClipboardHostProvider::MockClipboardHostProvider(
    const blink::BrowserInterfaceBrokerProxy& interface_broker) {}

PageTestBase::MockClipboardHostProvider::MockClipboardHostProvider() = default;

PageTestBase::MockClipboardHostProvider::~MockClipboardHostProvider() {}

void PageTestBase::MockClipboardHostProvider::Install(
    const blink::BrowserInterfaceBrokerProxy& interface_broker) {}

void PageTestBase::MockClipboardHostProvider::BindClipboardHost(
    mojo::ScopedMessagePipeHandle handle) {}

PageTestBase::PageTestBase() = default;

PageTestBase::PageTestBase(base::test::TaskEnvironment::TimeSource time_source)
    :{}

PageTestBase::~PageTestBase() {}

void PageTestBase::EnableCompositing() {}

void PageTestBase::SetUp() {}

void PageTestBase::SetUp(gfx::Size size) {}

void PageTestBase::SetupPageWithClients(
    ChromeClient* chrome_client,
    LocalFrameClient* local_frame_client,
    FrameSettingOverrideFunction setting_overrider,
    gfx::Size size) {}

void PageTestBase::TearDown() {}

Document& PageTestBase::GetDocument() const {}

Page& PageTestBase::GetPage() const {}

LocalFrame& PageTestBase::GetFrame() const {}

FrameSelection& PageTestBase::Selection() const {}

void PageTestBase::LoadAhem() {}

void PageTestBase::LoadAhem(LocalFrame& frame) {}

void PageTestBase::LoadFontFromFile(LocalFrame& frame,
                                    String font_path,
                                    const AtomicString& family_name) {}

void PageTestBase::LoadNoto() {}

void PageTestBase::LoadNoto(LocalFrame& frame) {}

// Both sets the inner html and runs the document lifecycle.
void PageTestBase::SetBodyInnerHTML(const String& body_content) {}

void PageTestBase::SetBodyContent(const std::string& body_content) {}

void PageTestBase::SetHtmlInnerHTML(const std::string& html_content) {}

void PageTestBase::InsertStyleElement(const std::string& style_rules) {}

void PageTestBase::NavigateTo(const KURL& url,
                              const WTF::HashMap<String, String>& headers) {}

void PageTestBase::UpdateAllLifecyclePhasesForTest() {}

StyleEngine& PageTestBase::GetStyleEngine() {}

Element* PageTestBase::GetElementById(const char* id) const {}

AnimationClock& PageTestBase::GetAnimationClock() {}

PendingAnimations& PageTestBase::GetPendingAnimations() {}

FocusController& PageTestBase::GetFocusController() const {}

void PageTestBase::EnablePlatform() {}

// See also LayoutTreeAsText to dump with geometry and paint layers.
// static
std::string PageTestBase::ToSimpleLayoutTree(
    const LayoutObject& layout_object) {}

void PageTestBase::SetPreferCompositingToLCDText(bool enable) {}

const base::TickClock* PageTestBase::GetTickClock() {}

void PageTestBase::FastForwardBy(base::TimeDelta delta) {}

void PageTestBase::FastForwardUntilNoTasksRemain() {}

void PageTestBase::AdvanceClock(base::TimeDelta delta) {}

}  // namespace blink