1 #ifndef _WIMLIB_TEST_SUPPORT_H
2 #define _WIMLIB_TEST_SUPPORT_H
4 #ifdef ENABLE_TEST_SUPPORT
7 #include "wimlib/types.h"
9 #define WIMLIB_ERR_IMAGES_ARE_DIFFERENT 200
11 #define WIMLIB_ADD_FLAG_GENERATE_TEST_DATA 0x08000000
13 #define WIMLIB_CMP_FLAG_UNIX_MODE 0x00000001
14 #define WIMLIB_CMP_FLAG_NTFS_3G_MODE 0x00000002
15 #define WIMLIB_CMP_FLAG_WINDOWS_MODE 0x00000004
16 #define WIMLIB_CMP_FLAG_EXT4 0x00000008
19 wimlib_seed_random(u64 seed);
22 wimlib_compare_images(WIMStruct *wim1, int image1,
23 WIMStruct *wim2, int image2, int cmp_flags);
26 wimlib_parse_and_write_xml_doc(const tchar *in, tchar **out_ret);
29 wimlib_utf8_to_utf16le(const char *in, size_t in_nbytes,
30 utf16lechar **out_ret, size_t *out_nbytes_ret);
33 wimlib_utf16le_to_utf8(const utf16lechar *in, size_t in_nbytes,
34 char **out_ret, size_t *out_nbytes_ret);
36 #endif /* ENABLE_TEST_SUPPORT */
38 #endif /* _WIMLIB_TEST_SUPPORT_H */