chromium/content/browser/renderer_host/clipboard_host_impl_unittest.cc

// Copyright 2014 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/browser/renderer_host/clipboard_host_impl.h"

#include <stddef.h>
#include <stdint.h>

#include <string>
#include <vector>

#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/pickle.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "base/test/test_future.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/message_pipe.h"
#include "skia/ext/skia_utils_base.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "third_party/blink/public/mojom/tokens/tokens.mojom-forward.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/clipboard/clipboard_buffer.h"
#include "ui/base/clipboard/clipboard_format_type.h"
#include "ui/base/clipboard/custom_data_helper.h"
#include "ui/base/clipboard/scoped_clipboard_writer.h"
#include "ui/base/clipboard/test/clipboard_test_util.h"
#include "ui/base/clipboard/test/test_clipboard.h"
#include "ui/base/data_transfer_policy/data_transfer_policy_controller.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/gfx/skia_util.h"
#include "url/gurl.h"

namespace ui {
class DataTransferEndpoint;
}
namespace content {

class ClipboardHostImplTest : public RenderViewHostTestHarness {};

TEST_F(ClipboardHostImplTest, SimpleImage_ReadPng) {}

TEST_F(ClipboardHostImplTest, DoesNotCacheClipboard) {}

TEST_F(ClipboardHostImplTest, ReadAvailableTypes_TextUriList) {}

class ClipboardHostImplWriteTest : public RenderViewHostTestHarness {};

TEST_F(ClipboardHostImplWriteTest, MainFrameURL) {}

TEST_F(ClipboardHostImplWriteTest, GetSourceEndpoint) {}

TEST_F(ClipboardHostImplWriteTest, WriteText) {}

TEST_F(ClipboardHostImplWriteTest, WriteText_Empty) {}

TEST_F(ClipboardHostImplWriteTest, WriteHtml) {}

TEST_F(ClipboardHostImplWriteTest, WriteHtml_Empty) {}

TEST_F(ClipboardHostImplWriteTest, WriteSvg) {}

TEST_F(ClipboardHostImplWriteTest, WriteSvg_Empty) {}

TEST_F(ClipboardHostImplWriteTest, WriteBitmap) {}

TEST_F(ClipboardHostImplWriteTest, WriteBitmap_Empty) {}

TEST_F(ClipboardHostImplWriteTest, WriteDataTransferCustomData) {}

TEST_F(ClipboardHostImplWriteTest, WriteDataTransferCustomData_Empty) {}

class ClipboardHostImplAsyncWriteTest : public RenderViewHostTestHarness {};

TEST_F(ClipboardHostImplAsyncWriteTest, WriteText) {}

TEST_F(ClipboardHostImplAsyncWriteTest, WriteHtml) {}

TEST_F(ClipboardHostImplAsyncWriteTest, WriteTextAndHtml) {}

TEST_F(ClipboardHostImplAsyncWriteTest, ConcurrentWrites) {}

}  // namespace content