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

// Copyright 2018 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/mock_clipboard_host.h"

#include "base/containers/contains.h"
#include "build/build_config.h"
#include "mojo/public/cpp/base/big_buffer.h"
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/renderer/core/clipboard/clipboard_mime_types.h"
#include "third_party/blink/renderer/platform/graphics/color_behavior.h"
#include "third_party/blink/renderer/platform/image-encoders/image_encoder.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "third_party/skia/include/core/SkBitmap.h"

namespace blink {

MockClipboardHost::MockClipboardHost() = default;

MockClipboardHost::~MockClipboardHost() = default;

void MockClipboardHost::Bind(
    mojo::PendingReceiver<mojom::blink::ClipboardHost> receiver) {}

void MockClipboardHost::Reset() {}

void MockClipboardHost::WriteRtf(const String& rtf_text) {}

void MockClipboardHost::WriteFiles(mojom::blink::ClipboardFilesPtr files) {}

void MockClipboardHost::GetSequenceNumber(
    mojom::ClipboardBuffer clipboard_buffer,
    GetSequenceNumberCallback callback) {}

Vector<String> MockClipboardHost::ReadStandardFormatNames() {}

void MockClipboardHost::ReadAvailableTypes(
    mojom::ClipboardBuffer clipboard_buffer,
    ReadAvailableTypesCallback callback) {}

void MockClipboardHost::IsFormatAvailable(
    mojom::ClipboardFormat format,
    mojom::ClipboardBuffer clipboard_buffer,
    IsFormatAvailableCallback callback) {}

void MockClipboardHost::ReadText(mojom::ClipboardBuffer clipboard_buffer,
                                 ReadTextCallback callback) {}

void MockClipboardHost::ReadHtml(mojom::ClipboardBuffer clipboard_buffer,
                                 ReadHtmlCallback callback) {}

void MockClipboardHost::ReadSvg(mojom::ClipboardBuffer clipboard_buffer,
                                ReadSvgCallback callback) {}

void MockClipboardHost::ReadRtf(mojom::ClipboardBuffer clipboard_buffer,
                                ReadRtfCallback callback) {}

void MockClipboardHost::ReadPng(mojom::ClipboardBuffer clipboard_buffer,
                                ReadPngCallback callback) {}

void MockClipboardHost::ReadFiles(mojom::ClipboardBuffer clipboard_buffer,
                                  ReadFilesCallback callback) {}

void MockClipboardHost::ReadDataTransferCustomData(
    mojom::ClipboardBuffer clipboard_buffer,
    const String& type,
    ReadDataTransferCustomDataCallback callback) {}

void MockClipboardHost::WriteText(const String& text) {}

void MockClipboardHost::WriteHtml(const String& markup, const KURL& url) {}

void MockClipboardHost::WriteSvg(const String& markup) {}

void MockClipboardHost::WriteSmartPasteMarker() {}

void MockClipboardHost::WriteDataTransferCustomData(
    const HashMap<String, String>& data) {}

void MockClipboardHost::WriteBookmark(const String& url, const String& title) {}

void MockClipboardHost::WriteImage(const SkBitmap& bitmap) {}

void MockClipboardHost::CommitWrite() {}

void MockClipboardHost::ReadAvailableCustomAndStandardFormats(
    ReadAvailableCustomAndStandardFormatsCallback callback) {}

void MockClipboardHost::ReadUnsanitizedCustomFormat(
    const String& format,
    ReadUnsanitizedCustomFormatCallback callback) {}

void MockClipboardHost::WriteUnsanitizedCustomFormat(
    const String& format,
    mojo_base::BigBuffer data) {}

#if BUILDFLAG(IS_MAC)
void MockClipboardHost::WriteStringToFindPboard(const String& text) {}
#endif

}  // namespace blink