|
FreeRDP
|
#include <stdio.h>#include <winpr/wtypes.h>#include <winpr/crt.h>#include <winpr/assert.h>#include <winpr/error.h>#include <winpr/print.h>#include <winpr/windows.h>Macros | |
| #define | TESTCASE_BUFFER_SIZE 8192 |
| #define | MIN(x, y) (((x) < (y)) ? (x) : (y)) |
| #define | compare_utf16(what, buffersize, rc, inputlen, test) compare_utf16_int((what), (buffersize), (rc), (inputlen), (test), __func__, __LINE__) |
| #define | compare_utf8(what, buffersize, rc, inputlen, test) compare_utf8_int((what), (buffersize), (rc), (inputlen), (test), __func__, __LINE__) |
Functions | |
| static void | create_prefix (char *prefix, size_t prefixlen, size_t buffersize, SSIZE_T rc, SSIZE_T inputlen, const testcase_t *test, const char *fkt, size_t line) |
| static BOOL | check_short_buffer (const char *prefix, int rc, size_t buffersize, const testcase_t *test, BOOL utf8) |
| static BOOL | compare_utf16_int (const WCHAR *what, size_t buffersize, SSIZE_T rc, SSIZE_T inputlen, const testcase_t *test, const char *fkt, size_t line) |
| static BOOL | compare_utf8_int (const char *what, size_t buffersize, SSIZE_T rc, SSIZE_T inputlen, const testcase_t *test, const char *fkt, size_t line) |
| static BOOL | test_convert_to_utf16 (const testcase_t *test) |
| static BOOL | test_convert_to_utf16_n (const testcase_t *test) |
| static BOOL | test_convert_to_utf8 (const testcase_t *test) |
| static BOOL | test_convert_to_utf8_n (const testcase_t *test) |
| static BOOL | test_conversion (const testcase_t *testcases, size_t count) |
| int | TestUnicodeConversion (int argc, char *argv[]) |
Variables | |
| static const testcase_t | unit_testcases [] |
| #define compare_utf16 | ( | what, | |
| buffersize, | |||
| rc, | |||
| inputlen, | |||
| test | |||
| ) | compare_utf16_int((what), (buffersize), (rc), (inputlen), (test), __func__, __LINE__) |
| #define compare_utf8 | ( | what, | |
| buffersize, | |||
| rc, | |||
| inputlen, | |||
| test | |||
| ) | compare_utf8_int((what), (buffersize), (rc), (inputlen), (test), __func__, __LINE__) |
| #define TESTCASE_BUFFER_SIZE 8192 |
|
static |


|
static |

|
static |

|
static |

|
static |


|
static |


|
static |


|
static |


|
static |


| int TestUnicodeConversion | ( | int | argc, |
| char * | argv[] | ||
| ) |

|
static |