ReactOS 0.4.16-dev-725-g22577ae
|
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winreg.h"
#include "setupapi.h"
#include "wine/test.h"
Go to the source code of this file.
Macros | |
#define | A255 |
#define | A256 "a" A255 |
#define | A400 |
#define | A1200 A400 A400 A400 |
#define | A511 A255 A256 |
#define | A4096 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 |
#define | A4097 "a" A4096 |
#define | STD_HEADER "[Version]\r\nSignature=\"$CHICAGO$\"\r\n" |
#define | STR_SECTION |
Functions | |
static | LPCSTR (WINAPI *pSetupGetFieldA)(PINFCONTEXT |
static | LPCWSTR (WINAPI *pSetupGetFieldW)(PINFCONTEXT |
static | BOOL (WINAPI *pSetupEnumInfSectionsA)(HINF hinf |
static void | init_function_pointers (void) |
static HINF | test_file_contents (const char *data, UINT *err_line) |
static const char * | get_string_field (INFCONTEXT *context, DWORD index) |
static const char * | get_line_text (INFCONTEXT *context) |
static void | test_invalid_files (void) |
static void | test_section_names (void) |
static void | test_enum_sections (void) |
static const char * | check_key (INFCONTEXT *context, const char *wanted) |
static void | test_key_names (void) |
static void | test_close_inf_file (void) |
static void | test_pSetupGetField (void) |
static void | test_SetupGetIntField (void) |
static void | test_GLE (void) |
START_TEST (parser) | |
Variables | |
static HMODULE | hSetupAPI |
static | DWORD |
static UINT | index |
static UINT PSTR | buffer |
static UINT PSTR DWORD | size |
static UINT PSTR DWORD UINT * | need |
static const char | tmpfilename [] = ".\\tmp.inf" |
struct { | |
const char * data | |
DWORD error | |
UINT err_line | |
BOOL todo | |
} | invalid_files [] |
struct { | |
const char * data | |
const char * section | |
DWORD error | |
} | section_names [] |
struct { | |
const char * data | |
const char * key | |
const char * fields [10] | |
} | key_names [] |
static const char * | contents |
static const CHAR | getfield_resA [][20] |
static const WCHAR | getfield_resW [][20] |
#define A255 |
#define A400 |
#define STD_HEADER "[Version]\r\nSignature=\"$CHICAGO$\"\r\n" |
#define STR_SECTION |
|
static |
Definition at line 393 of file parser.c.
Referenced by test_key_names().
|
static |
Definition at line 92 of file parser.c.
Referenced by test_key_names().
|
static |
Definition at line 85 of file parser.c.
Referenced by check_key(), and test_key_names().
Definition at line 38 of file parser.c.
Referenced by START_TEST().
START_TEST | ( | parser | ) |
Definition at line 784 of file parser.c.
Definition at line 496 of file parser.c.
Referenced by START_TEST().
Definition at line 260 of file parser.c.
Referenced by START_TEST().
Definition at line 74 of file parser.c.
Referenced by test_enum_sections(), test_GLE(), test_invalid_files(), test_key_names(), test_pSetupGetField(), test_section_names(), and test_SetupGetIntField().
Definition at line 670 of file parser.c.
Referenced by START_TEST().
Definition at line 151 of file parser.c.
Referenced by START_TEST().
Definition at line 411 of file parser.c.
Referenced by START_TEST().
Definition at line 533 of file parser.c.
Referenced by START_TEST().
Definition at line 225 of file parser.c.
Referenced by START_TEST().
Definition at line 608 of file parser.c.
Referenced by START_TEST().
Definition at line 511 of file parser.c.
Referenced by create_cdf_file(), create_stream(), D3DReadFileToBlob(), DataCacheEntry_Save(), DoReadAllOfFile(), import_reg(), CZipCreatorImpl::JustDoIt(), makeFile(), merge_old_directory_into_tree(), save_dib(), save_emf(), save_mfpict(), test__hwrite(), test__lwrite(), test_create_file_imp(), test_enum_sections(), test_profile_delete_on_close(), test_pSetupGetField(), test_read_write(), tmp_fill_segdir_seg(), write_reg_file(), and xwin_toggle_fullscreen().
UINT err_line |
Definition at line 106 of file parser.c.
Referenced by inf_open_file_content(), test_file_contents(), test_invalid_files(), test_key_names(), test_section_names(), test_SetupAddInstallSectionToDiskSpaceListA(), and test_SetupAddSectionToDiskSpaceListA().
Definition at line 313 of file parser.c.
Referenced by fields_memsize(), find_array_or_string_in_struct(), find_identifier(), FT_Stream_ReadFields(), get_padding(), get_struct_fc(), MSI_CreateRecord(), msi_query_merge_record(), pcf_get_metric(), test_DeviceCapabilities(), test_key_names(), test_SetupGetIntField(), type_buffer_alignment(), type_has_full_pointer(), type_has_pointers(), type_new_nonencapsulated_union(), type_new_struct(), union_memsize(), write_conf_or_var_desc(), write_fields(), write_struct_members(), write_struct_tfs(), and write_union_tfs().
Definition at line 519 of file parser.c.
Referenced by test_pSetupGetField().
Definition at line 526 of file parser.c.
Referenced by test_pSetupGetField().
|
static |
Definition at line 33 of file parser.c.
Referenced by init_function_pointers().
const struct { ... } invalid_files[] |
Referenced by test_invalid_files().
Definition at line 312 of file parser.c.
Referenced by check_key(), and test_SetupGetIntField().
const struct { ... } key_names[] |
Referenced by test_key_names().
Definition at line 36 of file parser.c.
Referenced by buffered_fullread(), mbedtls_ssl_chk_buf_ptr(), ME_StreamInText(), SetupEnumInfSectionsA(), SetupEnumInfSectionsW(), translate_data_def(), and ZSTD_decodeLiteralsBlock().
const struct { ... } section_names[] |
Referenced by test_section_names().
Definition at line 36 of file parser.c.
Referenced by xmlParseBalancedChunkMemoryInternal().
Definition at line 49 of file parser.c.
Referenced by inf_open_file_content(), START_TEST(), test_file_contents(), test_ok(), test_SetupAddInstallSectionToDiskSpaceListA(), and test_SetupAddSectionToDiskSpaceListA().
BOOL todo |
Definition at line 107 of file parser.c.
Referenced by test_invalid_files().