ReactOS 0.4.16-dev-736-g28b802b
|
Go to the source code of this file.
Classes | |
struct | _bin_file |
struct | _patch_data |
Macros | |
#define | WIN32_NO_STATUS |
#define | MAKE_BIN(data_) { data_, sizeof(data_) } |
#define | compare_file(filename, data, len, test_name) compare_file_(filename, data, len, test_name, __LINE__) |
Typedefs | |
typedef struct _bin_file | bin_file |
typedef struct _patch_data | patch_data |
Functions | |
BOOL | extract2 (char *filename, const unsigned char *data, size_t len) |
BOOL | extract (char *filename, const bin_file *bin) |
HANDLE | open_file (char *filename, BOOL bWrite) |
void | compare_file_ (char *filename, const unsigned char *data, size_t len, const char *test_name, int line) |
static void | validate_signature (const char *casename, const char *fieldname, const bin_file *bin, const char *expected) |
unsigned int | crc32 (unsigned int seed, unsigned char *msg, unsigned int msglen) |
static void | validate_patch (patch_data *current) |
static void | apply_patch (patch_data *current) |
void | test_one (patch_data *current) |
START_TEST (mspatcha) | |
Variables | |
unsigned char | in1_bin [8] |
unsigned char | out1_bin [26] |
unsigned char | patch1_bin [75] |
unsigned char | patch1_header_bin [31] |
unsigned char | in2_bin [25] |
unsigned char | out2_bin [25] |
unsigned char | patch2_bin [75] |
unsigned char | patch2_header_bin [31] |
unsigned char | in3_bin [138] |
unsigned char | out3_bin [152] |
unsigned char | patch3_bin [88] |
unsigned char | patch3_header_bin [32] |
char | temp_path [MAX_PATH] |
static const unsigned int | crc_32_tab [] |
static patch_data | data [] |
#define compare_file | ( | filename, | |
data, | |||
len, | |||
test_name | |||
) | compare_file_(filename, data, len, test_name, __LINE__) |
Definition at line 209 of file mspatcha.c.
Definition at line 121 of file mspatcha.c.
#define WIN32_NO_STATUS |
Definition at line 8 of file mspatcha.c.
typedef struct _patch_data patch_data |
|
static |
Definition at line 343 of file mspatcha.c.
Referenced by test_one().
void compare_file_ | ( | char * | filename, |
const unsigned char * | data, | ||
size_t | len, | ||
const char * | test_name, | ||
int | line | ||
) |
Definition at line 171 of file mspatcha.c.
Definition at line 319 of file mspatcha.c.
Definition at line 158 of file mspatcha.c.
Referenced by apply_patch(), and validate_signature().
Definition at line 125 of file mspatcha.c.
Referenced by apply_patch(), and extract().
Definition at line 163 of file mspatcha.c.
Referenced by apply_patch().
START_TEST | ( | mspatcha | ) |
Definition at line 509 of file mspatcha.c.
void test_one | ( | patch_data * | current | ) |
Definition at line 467 of file mspatcha.c.
Referenced by START_TEST().
|
static |
Definition at line 332 of file mspatcha.c.
Referenced by test_one().
|
static |
Definition at line 211 of file mspatcha.c.
Referenced by test_one().
Definition at line 272 of file mspatcha.c.
Referenced by crc32().
|
static |
Definition at line 477 of file mspatcha.c.
Definition at line 16 of file mspatcha.c.
Definition at line 39 of file mspatcha.c.
Definition at line 64 of file mspatcha.c.
Definition at line 20 of file mspatcha.c.
Definition at line 44 of file mspatcha.c.
Definition at line 76 of file mspatcha.c.
Definition at line 25 of file mspatcha.c.
Definition at line 33 of file mspatcha.c.
Definition at line 49 of file mspatcha.c.
Definition at line 57 of file mspatcha.c.
Definition at line 89 of file mspatcha.c.
Definition at line 98 of file mspatcha.c.
Definition at line 123 of file mspatcha.c.
Referenced by apply_patch(), copy_dll_file(), create_avi_file(), create_temp_file(), create_test_dll(), create_test_dll_sections(), create_test_file(), extract2(), print_something(), START_TEST(), test_CopyFile2(), test_CopyFileA(), test_CopyFileEx(), test_CopyFileW(), test_CopyMetaFile(), test_CreateFile(), test_CreateFile2(), test_CreateFileA(), test_CreateFileMapping_protection(), test_CreateFileW(), test_DeleteFileA(), test_ExitProcess(), test_file_security(), test_filemap_security(), test_GetFinalPathNameByHandleA(), test_GetFinalPathNameByHandleW(), test_GetMappedFileName(), test_GetVolumeNameForVolumeMountPointA(), test_import_resolution(), test_iocp_callback(), test_mapping(), test_MoveFileW(), test_offset_in_overlapped_structure(), test_OleLoadPicturePath(), test_query_recyclebin(), test_read_write(), test_ReplaceFileA(), test_ReplaceFileW(), test_ResolveDelayLoadedAPI(), test_section_access(), test_WriteFileGather(), and unpack_avi_file().