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

64 lines
1007 B
C

#include <cgreen/mocks.h>
#include "../rdesktop.h"
#include <X11/Xlib.h>
unsigned int read_keyboard_state()
{
return mock();
}
void
xkeymap_init()
{
mock();
}
void
xkeymap_send_keys(uint32 keysym, unsigned int keycode, unsigned int state, uint32 ev_time,
RD_BOOL pressed, uint8 nesting)
{
mock(keysym, keycode, state, ev_time, pressed, nesting);
}
uint16
xkeymap_translate_button(unsigned int button, uint16 * input_type)
{
return mock(button, input_type);
}
RD_BOOL
handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, RD_BOOL pressed)
{
return mock(keysym, state, ev_time, pressed);
}
void
set_keypress_keysym(unsigned int keycode, KeySym keysym)
{
mock(keycode, keysym);
}
KeySym
reset_keypress_keysym(unsigned int keycode, KeySym keysym)
{
return mock(keycode, keysym);
}
void
reset_modifier_keys()
{
mock();
}
char *
get_ksname(uint32 keysym)
{
return (char *) mock(keysym);
}
uint16 ui_get_numlock_state(unsigned int state)
{
return mock(state);
}