d10df452ee
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>
73 lines
1.1 KiB
C
73 lines
1.1 KiB
C
#include <cgreen/mocks.h>
|
|
#include "../rdesktop.h"
|
|
|
|
time_t g_wait_for_deactivate_ts;
|
|
|
|
/* Mock implementation of F1 */
|
|
void ui_resize_window(uint32 width, uint32 height)
|
|
{
|
|
mock(width, height);
|
|
}
|
|
|
|
void ui_set_cursor(RD_HCURSOR cursor)
|
|
{
|
|
mock(cursor);
|
|
}
|
|
|
|
void ui_set_standard_cursor()
|
|
{
|
|
mock();
|
|
}
|
|
|
|
void ui_bell()
|
|
{
|
|
mock();
|
|
}
|
|
|
|
void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 * data)
|
|
{
|
|
mock(x,y,cx,cy,width,height,data);
|
|
}
|
|
|
|
void ui_begin_update()
|
|
{
|
|
mock();
|
|
}
|
|
|
|
RD_HCOLOURMAP ui_create_colourmap(COLOURMAP * colours)
|
|
{
|
|
return (RD_HCOLOURMAP) mock(colours);
|
|
}
|
|
|
|
RD_HCURSOR ui_create_cursor(unsigned int x, unsigned int y, uint32 width, uint32 height, uint8 * andmask,
|
|
uint8 * xormask, int bpp)
|
|
{
|
|
return (RD_HCURSOR) mock(x, y, width, height, andmask, xormask, bpp);
|
|
}
|
|
|
|
void ui_end_update()
|
|
{
|
|
mock();
|
|
}
|
|
|
|
void ui_move_pointer(int x, int y)
|
|
{
|
|
mock(x, y);
|
|
}
|
|
|
|
void ui_set_colourmap(RD_HCOLOURMAP map)
|
|
{
|
|
mock(map);
|
|
}
|
|
|
|
void ui_set_null_cursor()
|
|
{
|
|
mock();
|
|
}
|
|
|
|
|
|
void ui_set_clip(int x,int y, int cx, int cy)
|
|
{
|
|
mock(x,y,cx,cy);
|
|
}
|