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

// Copyright 2024 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/mock_xdg_toplevel_icon.h"

#include <wayland-server-core.h>

#include "base/check_op.h"
#include "ui/ozone/platform/wayland/host/wayland_shm_buffer.h"
#include "ui/ozone/platform/wayland/test/server_object.h"

namespace wl {

namespace {

void DestroyManager(struct wl_client* client, struct wl_resource* resource) {}

void CreateIcon(struct wl_client* client,
                struct wl_resource* resource,
                uint32_t id) {}

void SetIcon(struct wl_client* client,
             struct wl_resource* resource,
             struct wl_resource* toplevel,
             struct wl_resource* icon) {}

}  // namespace

const struct xdg_toplevel_icon_manager_v1_interface
    kMockXdgToplevelIconManagerImpl =;

MockXdgToplevelIconManagerV1::MockXdgToplevelIconManagerV1()
    :{}

MockXdgToplevelIconManagerV1::~MockXdgToplevelIconManagerV1() = default;

namespace {

void DestroyIcon(struct wl_client* client, struct wl_resource* resource) {}

void SetName(struct wl_client* client,
             struct wl_resource* resource,
             const char* icon_name) {}

void AddBuffer(struct wl_client* client,
               struct wl_resource* resource,
               struct wl_resource* buffer,
               int32_t scale) {}

}  // namespace

const struct xdg_toplevel_icon_v1_interface kMockXdgToplevelIconImpl =;

MockXdgToplevelIconV1::MockXdgToplevelIconV1(
    wl_resource* resource,
    MockXdgToplevelIconManagerV1* global)
    :{}

MockXdgToplevelIconV1::~MockXdgToplevelIconV1() {}

}  // namespace wl