#include "ui/ozone/platform/wayland/test/mock_surface.h"
#include "ui/ozone/platform/wayland/test/mock_xdg_surface.h"
#include "ui/ozone/platform/wayland/test/test_positioner.h"
#include "ui/ozone/platform/wayland/test/test_xdg_popup.h"
namespace wl {
void SetTitle(wl_client* client, wl_resource* resource, const char* title) { … }
void SetAppId(wl_client* client, wl_resource* resource, const char* app_id) { … }
void Move(wl_client* client,
wl_resource* resource,
wl_resource* seat,
uint32_t serial) { … }
void Resize(wl_client* client,
wl_resource* resource,
wl_resource* seat,
uint32_t serial,
uint32_t edges) { … }
void AckConfigure(wl_client* client, wl_resource* resource, uint32_t serial) { … }
void SetWindowGeometry(wl_client* client,
wl_resource* resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height) { … }
void SetMaximized(wl_client* client, wl_resource* resource) { … }
void UnsetMaximized(wl_client* client, wl_resource* resource) { … }
void SetFullscreen(wl_client* client,
wl_resource* resource,
wl_resource* output) { … }
void UnsetFullscreen(wl_client* client, wl_resource* resource) { … }
void SetMinimized(wl_client* client, wl_resource* resource) { … }
void SetMaxSize(wl_client* client,
wl_resource* resource,
int32_t width,
int32_t height) { … }
void SetMinSize(wl_client* client,
wl_resource* resource,
int32_t width,
int32_t height) { … }
void GetTopLevel(wl_client* client, wl_resource* resource, uint32_t id) { … }
void GetXdgPopup(struct wl_client* client,
struct wl_resource* resource,
uint32_t id,
struct wl_resource* parent,
struct wl_resource* positioner_resource) { … }
const struct xdg_surface_interface kMockXdgSurfaceImpl = …;
const struct xdg_toplevel_interface kMockXdgToplevelImpl = …;
MockXdgSurface::MockXdgSurface(wl_resource* resource, wl_resource* surface)
: … { … }
MockXdgSurface::~MockXdgSurface() { … }
MockXdgTopLevel::MockXdgTopLevel(wl_resource* resource,
const void* implementation)
: … { … }
MockXdgTopLevel::~MockXdgTopLevel() { … }
}