rdesktop/tests/ewmh_mock.c
Cendio d10df452ee Ensure (partial) resize functionality with automated tests
This test suite was built with cgreen, and has various tests that
tries to ensure that we didn't break something while developing the
dynamic resize feature.

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Karl Mikaelsson <derfian@cendio.se>
Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
2017-12-07 11:15:03 +01:00

88 lines
1.1 KiB
C

#include <cgreen/mocks.h>
#include "../rdesktop.h"
#include <X11/Xlib.h>
int
ewmh_get_window_state(Window w)
{
return mock(w);
}
int
ewmh_change_state(Window wnd, int state)
{
return mock(wnd, state);
}
int
ewmh_move_to_desktop(Window wnd, unsigned int desktop)
{
return mock(wnd, desktop);
}
int
ewmh_get_window_desktop(Window wnd)
{
return mock(wnd);
}
void
ewmh_set_wm_name(Window wnd, const char *title)
{
mock(wnd, title);
}
void
ewmh_set_wm_pid(Window wnd, pid_t pid)
{
mock(wnd, pid);
}
int
ewmh_set_window_popup(Window wnd)
{
return mock(wnd);
}
int
ewmh_set_window_modal(Window wnd)
{
return mock(wnd);
}
void
ewmh_set_icon(Window wnd, int width, int height, const char *rgba_data)
{
mock(wnd, width, height, rgba_data);
}
void
ewmh_del_icon(Window wnd, int width, int height)
{
mock(wnd, width, height);
}
int
ewmh_set_window_above(Window wnd)
{
return mock(wnd);
}
RD_BOOL
ewmh_is_window_above(Window w)
{
return mock(w);
}
int
get_current_workarea(uint32 *x, uint32 *y, uint32 *width, uint32 *height)
{
return mock(x, y, width, height);
}
void
ewmh_init()
{
mock();
}