Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/FreeRDP-old.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2011-06-15 10:06:29 +0400
committerVic Lee <llyzs@163.com>2011-06-15 10:06:29 +0400
commitd1f33d54f0c79879fc5ede07e3e0c61ce054e382 (patch)
tree5fd663e7bce450d61f434f96f51e707b7306cf64
parentb324fb23749fb8e5a96047850d0c6e7e1cfa0938 (diff)
libfreerdp-rfx: add unit test for encoder data message.
-rw-r--r--cunit/test_librfx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cunit/test_librfx.c b/cunit/test_librfx.c
index f5ab229..f7a49c1 100644
--- a/cunit/test_librfx.c
+++ b/cunit/test_librfx.c
@@ -344,6 +344,7 @@ test_message(void)
RFX_CONTEXT * context;
uint8 buffer[16384];
int size;
+ RFX_RECT rect = {0, 0, 64, 64};
context = rfx_context_new();
context->mode = RLGR3;
@@ -351,9 +352,13 @@ test_message(void)
context->height = 600;
rfx_context_set_pixel_format(context, RFX_PIXEL_FORMAT_RGB);
- size = rfx_compose_message_header(context, buffer, sizeof(buffer));
+ size = rfx_compose_message_header(context, buffer, sizeof(buffer));
/*hexdump(buffer, size);*/
rfx_process_message(context, buffer, size);
+ size = rfx_compose_message_data(context, buffer, sizeof(buffer),
+ &rect, 1, rgb_data, 64, 64, 64 * 3);
+ hexdump(buffer, size);
+
rfx_context_free(context);
}