chromium/ui/ozone/platform/wayland/test/test_zwp_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_zwp_primary_selection.h"

#include <primary-selection-unstable-v1-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"

// ZwpPrimarySelection* 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 ZwpPrimarySelectionOffer final : public TestSelectionOffer::Delegate {};

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

struct ZwpPrimarySelectionSource : public TestSelectionSource::Delegate {};

struct ZwpPrimarySelectionDeviceManager
    : public TestSelectionDeviceManager::Delegate {};

}  // namespace

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

}  // namespace wl