ReactOS 0.4.16-dev-297-gc569aee
|
#include <stdio.h>
#include <windows.h>
#include <objidl.h>
#include <msi.h>
#include <msidefs.h>
#include <msiquery.h>
#include "wine/test.h"
#include "utils.h"
Go to the source code of this file.
Macros | |
#define | COBJMACROS |
#define | check_record(rec, ...) check_record_(__LINE__, rec, __VA_ARGS__) |
#define | add_component_entry(hdb, values) |
#define | add_custom_action_entry(hdb, values) |
#define | add_feature_components_entry(hdb, values) |
#define | add_std_dlls_entry(hdb, values) |
#define | add_binary_entry(hdb, values) |
#define | MY_NVIEWS 4000 /* Largest installer I've seen uses < 2000 */ |
Variables | |
static const char * | msifile = "winetest-db.msi" |
static const char * | msifile2 = "winetst2-db.msi" |
static const char * | mstfile = "winetst-db.mst" |
static const WCHAR | msifileW [] = L"winetest-db.msi" |
static const WCHAR | msifile2W [] = L"winetst2-db.msi" |
static const CHAR | test_data [] |
static const CHAR | two_primary [] |
static const CHAR | endlines1 [] |
static const CHAR | endlines2 [] |
static const CHAR | suminfo [] |
static const CHAR | bin_import_dat [] |
static const WCHAR | name1 [] = { 0x4840, 0x3a8a, 0x481b, 0 } |
static const WCHAR | name2 [] = { 0x4840, 0x3b3f, 0x43f2, 0x4438, 0x45b1, 0 } |
static const WCHAR | name3 [] = { 0x4840, 0x3f7f, 0x4164, 0x422f, 0x4836, 0 } |
static const WCHAR | name4 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3b6a, 0x45e4, 0x4824, 0 } |
static const WCHAR | name5 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3e6a, 0x44b2, 0x482f, 0 } |
static const WCHAR | name6 [] = { 0x4840, 0x3e16, 0x4818, 0} |
static const WCHAR | name7 [] = { 0x4840, 0x3c8b, 0x3a97, 0x409b, 0 } |
static const WCHAR | name8 [] = { 0x3c8b, 0x3a97, 0x409b, 0x387e, 0 } |
static const WCHAR | name9 [] = { 0x4840, 0x4559, 0x44f2, 0x4568, 0x4737, 0 } |
static const WCHAR | data1 [] |
static const WCHAR | data2 [] |
static const WCHAR | data3 [] |
static const char | data4 [] |
static const WCHAR | data5 [] |
static const WCHAR | data6 [] |
static const WCHAR | data7 [] |
static const char | data8 [] |
static const WCHAR | data9 [] |
struct { | |
LPCWSTR name | |
const void * data | |
DWORD size | |
} | table_transform_data [] |
static const char * | join_res_first [][2] |
static const char * | join_res_second [][2] |
static const char * | join_res_third [][2] |
static const char * | join_res_fourth [][2] |
static const char * | join_res_fifth [][2] |
static const char * | join_res_sixth [][2] |
static const char * | join_res_seventh [][2] |
static const char * | join_res_eighth [][4] |
static const char * | join_res_ninth [][6] |
static const WCHAR | data10 [] |
static const WCHAR | data11 [] |
static const char | data12 [] |
static const WCHAR | data13 [] |
static const WCHAR | _Tables [] = {0x4840, 0x3f7f, 0x4164, 0x422f, 0x4836, 0} |
static const WCHAR | _StringData [] = {0x4840, 0x3f3f, 0x4577, 0x446c, 0x3b6a, 0x45e4, 0x4824, 0} |
static const WCHAR | _StringPool [] = {0x4840, 0x3f3f, 0x4577, 0x446c, 0x3e6a, 0x44b2, 0x482f, 0} |
static const WCHAR | data14 [] |
struct { | |
LPCWSTR name | |
const void * data | |
DWORD size | |
} | database_table_data [] |
static const CHAR | import_dat [] |
static const UINT | ordervals [6][3] |
#define check_record | ( | rec, | |
... | |||
) | check_record_(__LINE__, rec, __VA_ARGS__) |
|
inlinestatic |
Definition at line 305 of file db.c.
Definition at line 2194 of file db.c.
Referenced by test_msiimport(), and test_suminfo_import().
Definition at line 40 of file db.c.
Definition at line 294 of file db.c.
Referenced by test_join().
Definition at line 232 of file db.c.
Referenced by test_join().
Definition at line 247 of file db.c.
Referenced by test_dbtopackage().
Definition at line 1148 of file db.c.
Referenced by test_alter(), test_columnorder(), test_createtable(), test_getcolinfo(), test_handle_limit(), test_insertorder(), test_join(), test_markers(), test_order(), test_primary_keys(), test_select_markers(), test_select_with_tablenames(), test_storages_table(), test_streamtable(), test_temporary_table(), test_view_get_error(), test_viewgetcolumninfo(), test_viewmodify_insert(), test_viewmodify_merge(), test_where(), and test_where_not_in_selected().
Definition at line 260 of file db.c.
Referenced by create_package_db(), and test_dbtopackage().
Definition at line 272 of file db.c.
Referenced by test_join().
Definition at line 3002 of file db.c.
Definition at line 283 of file db.c.
Referenced by test_join().
Definition at line 7044 of file db.c.
Definition at line 191 of file db.c.
Referenced by test_alter(), test_binary(), test_binary_import(), test_columnorder(), test_dbmerge(), test_droptable(), test_embedded_nulls(), test_integers(), test_msiimport(), test_msiinsert(), test_temporary_table(), test_try_transform(), and test_where().
Definition at line 5845 of file db.c.
Referenced by test_defaultdatabase().
Definition at line 2743 of file db.c.
Referenced by test_try_transform().
Definition at line 2917 of file db.c.
Referenced by test_try_transform().
|
static |
Definition at line 1219 of file db.c.
Referenced by test_storages_table(), test_streamtable(), and test_viewgetcolumninfo().
Definition at line 1238 of file db.c.
Referenced by test_viewgetcolumninfo().
Definition at line 3026 of file db.c.
Referenced by test_try_transform().
Definition at line 6753 of file db.c.
Referenced by test_embedded_nulls(), and test_forcecodepage().
Definition at line 216 of file db.c.
Referenced by test_collation().
Definition at line 2958 of file db.c.
Referenced by create_package_db(), and test_dbtopackage().
START_TEST | ( | db | ) |
Definition at line 9368 of file db.c.
Definition at line 3928 of file db.c.
Referenced by START_TEST().
Definition at line 1813 of file db.c.
Referenced by START_TEST().
Definition at line 2468 of file db.c.
Referenced by START_TEST().
Definition at line 6447 of file db.c.
Referenced by START_TEST().
Definition at line 4755 of file db.c.
Referenced by START_TEST().
Definition at line 8266 of file db.c.
Referenced by START_TEST().
Definition at line 8441 of file db.c.
Referenced by START_TEST().
Definition at line 7490 of file db.c.
Referenced by START_TEST().
Definition at line 7194 of file db.c.
Referenced by START_TEST().
Definition at line 5903 of file db.c.
Referenced by START_TEST().
Definition at line 6295 of file db.c.
Referenced by START_TEST().
Definition at line 7320 of file db.c.
Referenced by START_TEST().
Definition at line 8539 of file db.c.
Referenced by START_TEST().
Definition at line 6764 of file db.c.
Referenced by START_TEST().
Definition at line 1167 of file db.c.
Referenced by START_TEST().
Definition at line 2704 of file db.c.
Referenced by START_TEST().
Definition at line 8130 of file db.c.
Referenced by START_TEST().
Definition at line 4125 of file db.c.
Referenced by START_TEST().
Definition at line 3374 of file db.c.
Referenced by START_TEST().
Definition at line 1432 of file db.c.
Referenced by START_TEST().
Definition at line 2519 of file db.c.
Referenced by START_TEST().
Definition at line 632 of file db.c.
Referenced by START_TEST().
Definition at line 65 of file db.c.
Referenced by START_TEST().
Definition at line 496 of file db.c.
Referenced by START_TEST().
Definition at line 1357 of file db.c.
Referenced by START_TEST().
Definition at line 2328 of file db.c.
Referenced by START_TEST().
Definition at line 338 of file db.c.
Referenced by START_TEST().
Definition at line 6616 of file db.c.
Referenced by START_TEST().
Definition at line 5930 of file db.c.
Referenced by START_TEST().
Definition at line 8771 of file db.c.
Referenced by START_TEST().
Definition at line 6355 of file db.c.
Referenced by START_TEST().
Definition at line 4649 of file db.c.
Referenced by START_TEST().
Definition at line 8604 of file db.c.
Referenced by START_TEST().
Definition at line 4893 of file db.c.
Referenced by START_TEST().
Definition at line 8046 of file db.c.
Referenced by START_TEST().
Definition at line 4503 of file db.c.
Referenced by START_TEST().
Definition at line 7075 of file db.c.
Referenced by START_TEST().
Definition at line 1490 of file db.c.
Referenced by START_TEST().
Definition at line 5536 of file db.c.
Referenced by START_TEST().
Definition at line 2205 of file db.c.
Referenced by START_TEST().
Definition at line 4541 of file db.c.
Referenced by START_TEST().
Definition at line 3818 of file db.c.
Referenced by START_TEST().
Definition at line 3048 of file db.c.
Referenced by START_TEST().
Definition at line 4234 of file db.c.
Referenced by START_TEST().
Definition at line 9171 of file db.c.
Referenced by main_test(), and START_TEST().
Definition at line 9286 of file db.c.
Referenced by START_TEST().
Definition at line 1269 of file db.c.
Referenced by START_TEST().
Definition at line 851 of file db.c.
Referenced by START_TEST().
Definition at line 5238 of file db.c.
Referenced by START_TEST().
Definition at line 5741 of file db.c.
Referenced by START_TEST().
Definition at line 6179 of file db.c.
Referenced by START_TEST().
Definition at line 9007 of file db.c.
Referenced by START_TEST().
Definition at line 8810 of file db.c.
Referenced by START_TEST().
Definition at line 6834 of file db.c.
Referenced by START_TEST().
Definition at line 4980 of file db.c.
Referenced by START_TEST().
Definition at line 2019 of file db.c.
Referenced by START_TEST().
Definition at line 1927 of file db.c.
Referenced by START_TEST().
Definition at line 6943 of file db.c.
Referenced by START_TEST().
Definition at line 618 of file db.c.
Referenced by test_msibadqueries().
Definition at line 613 of file db.c.
Referenced by test_longstrings(), test_markers(), test_msibadqueries(), and test_select_column_names().
Definition at line 588 of file db.c.
Referenced by try_insert_query(), and try_query().
Definition at line 2184 of file db.c.
Referenced by add_table_to_db(), generate_transform(), test_binary_import(), test_embedded_nulls(), test_quotes(), and test_try_transform().
Definition at line 2463 of file db.c.
Referenced by test_binary_import().
Definition at line 5507 of file db.c.
Referenced by test_stringtable().
Definition at line 5510 of file db.c.
Referenced by test_stringtable().
Definition at line 5516 of file db.c.
Referenced by test_stringtable().
Definition at line 2860 of file db.c.
Referenced by START_TEST().
Definition at line 2864 of file db.c.
Referenced by START_TEST().
Definition at line 2866 of file db.c.
Referenced by START_TEST().
Definition at line 2884 of file db.c.
Referenced by START_TEST().
const struct { ... } database_table_data[] |
Referenced by enum_stream_names().
Definition at line 2154 of file db.c.
Referenced by test_msiimport().
Definition at line 2160 of file db.c.
Referenced by test_msiimport().
Definition at line 6350 of file db.c.
Referenced by test_quotes().
Definition at line 3354 of file db.c.
Referenced by test_join().
Definition at line 3332 of file db.c.
Referenced by test_join().
Definition at line 3306 of file db.c.
Referenced by test_join().
Definition at line 3327 of file db.c.
Referenced by test_join().
Definition at line 3364 of file db.c.
Referenced by test_join().
Definition at line 3315 of file db.c.
Referenced by test_join().
Definition at line 3347 of file db.c.
Referenced by test_join().
Definition at line 3337 of file db.c.
Referenced by test_join().
Definition at line 3321 of file db.c.
Referenced by test_join().
Definition at line 34 of file db.c.
Referenced by generate_transform(), test_alter(), test_binary(), test_carriagereturn(), test_collation(), test_columnorder(), test_createtable(), test_dbmerge(), test_dbtopackage(), test_defaultdatabase(), test_deleterow(), test_droptable(), test_embedded_nulls(), test_forcecodepage(), test_insertorder(), test_integers(), test_join(), test_longstrings(), test_markers(), test_msibadqueries(), test_msidatabase(), test_msiexport(), test_msiimport(), test_msiinsert(), test_noquotes(), test_primary_keys(), test_quotes(), test_rows_order(), test_select_column_names(), test_select_markers(), test_select_with_tablenames(), test_storages_table(), test_streamtable(), test_stringtable(), test_suminfo_import(), test_tables_order(), test_temporary_table(), test_try_transform(), test_update(), test_view_get_error(), test_viewfetch_wraparound(), test_viewmodify(), test_viewmodify_assign(), test_viewmodify_delete(), test_viewmodify_delete_temporary(), test_viewmodify_insert(), test_viewmodify_merge(), test_viewmodify_refresh(), test_viewmodify_update(), test_where(), test_where_not_in_selected(), and test_where_viewmodify().
Definition at line 35 of file db.c.
Referenced by generate_transform(), test_msidatabase(), and test_states().
Definition at line 38 of file db.c.
Referenced by generate_transform(), test_msidatabase(), and test_states().
Definition at line 37 of file db.c.
Referenced by create_db(), create_package_db(), generate_transform(), test_binary(), test_binary_import(), test_carriagereturn(), test_collation(), test_createtable(), test_dbmerge(), test_dbtopackage(), test_defaultdatabase(), test_deleterow(), test_droptable(), test_embedded_nulls(), test_forcecodepage(), test_integers(), test_longstrings(), test_msibadqueries(), test_msidatabase(), test_msiexport(), test_msiimport(), test_msiinsert(), test_noquotes(), test_quotes(), test_rows_order(), test_select_column_names(), test_special_tables(), test_storages_table(), test_streamtable(), test_stringtable(), test_suminfo_import(), test_tables_order(), test_try_transform(), test_update(), test_viewfetch_wraparound(), test_viewmodify(), test_viewmodify_assign(), test_viewmodify_delete(), test_viewmodify_delete_temporary(), test_viewmodify_refresh(), test_viewmodify_update(), and test_where_viewmodify().
Definition at line 36 of file db.c.
Referenced by generate_transform(), generate_transform_manual(), and test_try_transform().
Definition at line 2839 of file db.c.
Referenced by test_ParseDisplayName(), xmlHashAddEntry3(), xmlHashComputeKey(), xmlHashComputeQKey(), xmlHashGrow(), xmlHashLookup3(), xmlHashQLookup3(), xmlHashRemoveEntry3(), xmlHashScan3(), xmlHashScanFull3(), and xmlHashUpdateEntry3().
Definition at line 2840 of file db.c.
Referenced by test_ParseDisplayName().
Definition at line 8120 of file db.c.
Referenced by test_insertorder().
Definition at line 2903 of file db.c.
Referenced by test_binary(), test_binary_import(), test_createtable(), test_dbmerge(), test_dbtopackage(), test_primary_keys(), test_storages_table(), test_streamtable(), test_suminfo_import(), and write_file().
Definition at line 2166 of file db.c.
Referenced by helper_createpackage(), s_remote_DatabaseGetSummaryInformation(), s_remote_SummaryInfoGetProperty(), s_remote_SummaryInfoGetPropertyCount(), set_summary_info(), set_transform_summary_info(), test_db(), and test_suminfo_import().
const struct { ... } table_transform_data[] |
Referenced by generate_transform_manual().
Definition at line 2148 of file db.c.
Referenced by test_msiimport().