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>
47 lines
831 B
C
47 lines
831 B
C
#include <cgreen/mocks.h>
|
|
#include "../rdesktop.h"
|
|
|
|
RD_HCURSOR
|
|
cache_get_cursor(uint16 cache_idx)
|
|
{
|
|
return (RD_HCURSOR)mock(cache_idx);
|
|
}
|
|
|
|
void
|
|
cache_put_cursor(uint16 cache_idx, RD_HCURSOR cursor)
|
|
{
|
|
mock(cache_idx, cursor);
|
|
}
|
|
|
|
|
|
FONTGLYPH *
|
|
cache_get_font(uint8 font, uint16 character)
|
|
{
|
|
return (FONTGLYPH *) mock(font, character);
|
|
}
|
|
|
|
DATABLOB *
|
|
cache_get_text(uint8 cache_id)
|
|
{
|
|
return (DATABLOB *)mock(cache_id);
|
|
}
|
|
|
|
void
|
|
cache_put_text(uint8 cache_id, void *data, int length)
|
|
{
|
|
mock(cache_id, data, length);
|
|
}
|
|
|
|
uint8 *
|
|
cache_get_desktop(uint32 offset, int cx, int cy, int bytes_per_pixel)
|
|
{
|
|
return (uint8 *) mock(offset, cx, cy, bytes_per_pixel);
|
|
}
|
|
|
|
void
|
|
cache_put_desktop(uint32 offset, int cx, int cy, int scanline,
|
|
int bytes_per_pixel, uint8 * data)
|
|
{
|
|
mock(offset, cx, cy, scanline, bytes_per_pixel, data);
|
|
}
|