chromium/ui/ozone/platform/wayland/test/test_gtk_primary_selection.cc

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

#include "ui/ozone/platform/wayland/test/test_gtk_primary_selection.h"

#include <gtk-primary-selection-server-protocol.h>
#include <wayland-server-core.h>

#include <cstdint>
#include <memory>

#include "base/memory/raw_ptr.h"
#include "base/notreached.h"
#include "ui/ozone/platform/wayland/test/test_selection_device_manager.h"
#include "ui/ozone/platform/wayland/test/test_wayland_server_thread.h"

// GtkPrimarySelection* classes contain protocol-specific implementation of
// TestSelection*::Delegate interfaces, such that primary selection test
// cases may be set-up and run against test wayland compositor.

namespace wl {

namespace {

void Destroy(wl_client* client, wl_resource* resource) {}

struct GtkPrimarySelectionOffer final : public TestSelectionOffer::Delegate {};

struct GtkPrimarySelectionDevice final : public TestSelectionDevice::Delegate {};

struct GtkPrimarySelectionSource : public TestSelectionSource::Delegate {};

struct GtkPrimarySelectionDeviceManager
    : public TestSelectionDeviceManager::Delegate {};

}  // namespace

std::unique_ptr<TestSelectionDeviceManager> CreateTestSelectionManagerGtk() {}

}  // namespace wl