rdesktop/tests/seamless_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

59 lines
1.0 KiB
C

#include <cgreen/mocks.h>
#include "../rdesktop.h"
RD_BOOL seamless_init()
{
return mock();
}
void seamless_reset_state()
{
mock();
}
unsigned int seamless_send_sync(void)
{
return mock();
}
unsigned int seamless_send_state(unsigned long id, unsigned int state, unsigned long flags)
{
return mock(id, state, flags);
}
unsigned int seamless_send_position(unsigned long id, int x, int y,
int width, int height, unsigned long flags)
{
return mock(id, x, y, width, height, flags);
}
void seamless_select_timeout(struct timeval *tv)
{
mock(tv);
}
unsigned int seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags)
{
return mock(id, below, flags);
}
unsigned int seamless_send_focus(unsigned long id, unsigned long flags)
{
return mock(id, flags);
}
unsigned int seamless_send_destroy(unsigned long id)
{
return mock(id);
}
unsigned int seamless_send_spawn(char *cmd)
{
return mock(cmd);
}
unsigned int seamless_send_persistent(RD_BOOL enable)
{
return mock(enable);
}