ReactOS
0.4.14-dev-608-gd495a4f
|
#include <wine/test.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "urlmon.h"
#include "initguid.h"
#include <wine/heap.h>
Go to the source code of this file.
Classes | |
struct | secmgr_test |
struct | zone_domain_mapping |
struct | zone_mapping_test |
Macros | |
#define | COBJMACROS |
#define | CONST_VTABLE |
#define | _WIN32_IE 0x0700 |
#define | URLZONE_CUSTOM URLZONE_USER_MIN+1 |
#define | URLZONE_CUSTOM2 URLZONE_CUSTOM+1 |
#define | DEFINE_EXPECT(func) static BOOL expect_ ## func = FALSE, called_ ## func = FALSE |
#define | SET_EXPECT(func) expect_ ## func = TRUE |
#define | CHECK_EXPECT(func) |
#define | CHECK_EXPECT2(func) |
#define | CHECK_CALLED(func) |
#define | SET_CALLED(func) |
Variables | |
static IInternetSecurityManager | DWORD |
static LPWSTR | PSUACTION |
static IUri | DWORD_PTR |
static | LPCWSTR |
static const WCHAR | url1 [] |
static const WCHAR | url2 [] = {'i','n','d','e','x','.','h','t','m',0} |
static const WCHAR | url3 [] = {'f','i','l','e',':','/','/','c',':','\\','I','n','d','e','x','.','h','t','m',0} |
static const WCHAR | url4 [] |
static const WCHAR | url5 [] |
static const WCHAR | url6 [] = {'a','b','o','u','t',':','b','l','a','n','k',0} |
static const WCHAR | url7 [] |
static const WCHAR | url8 [] = {'t','e','s','t',':','1','2','3','a','b','c',0} |
static const WCHAR | url9 [] |
static const WCHAR | url10 [] |
static const WCHAR | url11 [] = {'f','i','l','e',':','/','/','c',':','/','I','n','d','e','x','.','h','t','m',0} |
static const WCHAR | url12 [] = {'f','i','l','e',':','/','/','/','c',':','/','I','n','d','e','x','.','h','t','m',0} |
static const WCHAR | url13 [] = {'h','t','t','p',':','g','o','o','g','l','e','.','c','o','m',0} |
static const WCHAR | url14 [] = {'z','i','p',':','t','e','s','t','i','n','g','.','c','o','m','/','t','e','s','t','i','n','g',0} |
static const WCHAR | url15 [] = {'h','t','t','p',':','/','/','g','o','o','g','l','e','.','c','o','m','.','u','k',0} |
static const WCHAR | url16 [] = {'f','i','l','e',':','/','/','/','c',':',0} |
static const WCHAR | url17 [] = {'f','i','l','e',':','/','/','/','c',':','c','\\',0} |
static const WCHAR | url18 [] = {'c',':','\\','t','e','s','t','.','h','t','m',0} |
static const WCHAR | winetestW [] = {'w','i','n','e','t','e','s','t',0} |
static const WCHAR | security_urlW [] = {'w','i','n','e','t','e','s','t',':','t','e','s','t','i','n','g',0} |
static const WCHAR | security_url2W [] = {'w','i','n','e','t','e','s','t',':','t','e','s','t','i','n','g','2',0} |
static const WCHAR | security_expectedW [] = {'w','i','n','e','t','e','s','t',':','z','i','p',0} |
static const WCHAR | winetest_to_httpW [] = {'w','i','n','e','t','e','s','t',':','h',0} |
static const char * | szZoneMapDomainsKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains" |
static const char * | szInternetSettingsKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" |
static const BYTE | secid1 [] = {'f','i','l','e',':',0,0,0,0} |
static const BYTE | secid2 [] = {'*',':','i','n','d','e','x','.','h','t','m',3,0,0,0} |
static const BYTE | secid5 [] |
static const BYTE | secid6 [] = {'a','b','o','u','t',':','b','l','a','n','k',3,0,0,0} |
static const BYTE | secid7 [] |
static const BYTE | secid10 [] |
static const BYTE | secid14 [] |
static const BYTE | secid10_2 [] |
static const BYTE | secid13 [] = {'h','t','t','p',':','c','o','m','.','u','k',3,0,0,0} |
static const BYTE | secid13_2 [] = {'h','t','t','p',':','g','o','o','g','l','e','.','c','o','m','.','u','k',3,0,0,0} |
static const GUID | CLSID_TestActiveX |
const GUID | GUID_CUSTOM_CONFIRMOBJECTSAFETY |
static int | called_securl_http |
static DWORD | ProcessUrlAction_policy |
static struct secmgr_test | secmgr_tests [] |
static const IInternetSecurityManagerVtbl | SecurityManagerVtbl |
static IInternetSecurityManager | security_manager = { &SecurityManagerVtbl } |
static const zone_domain_mapping | zone_domain_mappings [] |
static const zone_mapping_test | zone_mapping_tests [] |
static const IInternetProtocolInfoVtbl | InternetProtocolInfoVtbl |
static IInternetProtocolInfo | protocol_info = { &InternetProtocolInfoVtbl } |
static const IClassFactoryVtbl | ClassFactoryVtbl |
static IClassFactory | protocol_cf = { &ClassFactoryVtbl } |
struct { | |
const char * uri | |
DWORD create_flags | |
const char * security_uri | |
HRESULT security_hres | |
const char * default_uri | |
HRESULT default_hres | |
BOOL todo | |
} | sec_url_ex_tests [] |
static const BYTE | secidex2_1 [] = {'z','i','p',':','/','/','t','e','s','t','i','n','g','.','c','o','m','/',3,0,0,0} |
static const BYTE | secidex2_2 [] = {'z','i','p',':','t','e','s','t','i','n','g','.','c','o','m',3,0,0,0} |
static const BYTE | secidex2_3 [] = {'*',':','t','e','s','t','i','n','g','.','c','o','m',3,0,0,0} |
struct { | |
const char * uri | |
DWORD create_flags | |
HRESULT map_hres | |
DWORD zone | |
BOOL map_todo | |
const BYTE * secid | |
DWORD secid_size | |
HRESULT secid_hres | |
BOOL secid_todo | |
} | sec_mgr_ex2_tests [] |
#define URLZONE_CUSTOM2 URLZONE_CUSTOM+1 |
Definition at line 183 of file sec_mgr.c.
Referenced by strcmp_aw(), test_CoInternetIsFeatureZoneElevationEnabled(), test_InternetGetSecurityUrlEx(), test_SecurityManagerEx2(), and test_zone_domain_mappings().
|
static |
|
static |
|
static |
|
static |
|
static |
DEFINE_EXPECT | ( | ParseUrl_SECURITY_URL_input | ) |
DEFINE_EXPECT | ( | ParseUrl_SECURITY_URL_input2 | ) |
DEFINE_EXPECT | ( | ParseUrl_SECURITY_URL_expected | ) |
DEFINE_EXPECT | ( | ParseUrl_SECURITY_URL_http | ) |
DEFINE_EXPECT | ( | ParseUrl_SECURITY_DOMAIN_expected | ) |
DEFINE_EXPECT | ( | ProcessUrlAction | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 481 of file sec_mgr.c.
Referenced by test_url_action(), and test_zone_domains().
Definition at line 205 of file sec_mgr.c.
Referenced by test_SetZoneAttributes().
Definition at line 1561 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 760 of file sec_mgr.c.
Referenced by test_zone_domains().
Definition at line 858 of file sec_mgr.c.
Referenced by test_zone_domains().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 315 of file sec_mgr.c.
|
static |
|
static |
|
static |
|
static |
|
static |
START_TEST | ( | sec_mgr | ) |
Definition at line 1973 of file sec_mgr.c.
Definition at line 174 of file sec_mgr.c.
Referenced by InternetProtocolInfo_ParseUrl(), test_InternetGetSecurityUrl(), and test_InternetGetSecurityUrlEx_Pluggable().
|
static |
Definition at line 636 of file sec_mgr.c.
Referenced by test_polices().
Definition at line 978 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1894 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1023 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1093 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1136 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1187 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1350 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1615 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1320 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 657 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 368 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1782 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1243 of file sec_mgr.c.
Referenced by START_TEST().
|
static |
Definition at line 613 of file sec_mgr.c.
Referenced by test_polices().
|
static |
Definition at line 500 of file sec_mgr.c.
Referenced by test_polices().
Definition at line 689 of file sec_mgr.c.
Referenced by test_zone_domains().
Definition at line 917 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 1578 of file sec_mgr.c.
Referenced by START_TEST().
Definition at line 821 of file sec_mgr.c.
Referenced by test_zone_domains().
|
static |
Definition at line 150 of file sec_mgr.c.
Referenced by InternetProtocolInfo_ParseUrl(), and test_url_action().
|
static |
Definition at line 143 of file sec_mgr.c.
Referenced by test_activex().
DWORD create_flags |
Definition at line 1595 of file sec_mgr.c.
Referenced by build_uri(), combine_uri(), ensure_prop_name(), test_InternetGetSecurityUrlEx(), test_overlapped_transport(), and test_SecurityManagerEx2().
HRESULT default_hres |
Definition at line 1599 of file sec_mgr.c.
Referenced by test_InternetGetSecurityUrlEx().
Definition at line 1598 of file sec_mgr.c.
Referenced by test_InternetGetSecurityUrlEx().
Definition at line 83 of file sec_mgr.c.
Referenced by generate_security_id(), get_dword_from_reg(), get_zone_for_scheme(), get_zone_from_reg(), is_ie_hardened(), IsInternetESCEnabledLocal(), and test_url_action().
Definition at line 147 of file sec_mgr.c.
Referenced by test_activex().
|
static |
IInternetSecurityManager* static LPCWSTR |
HRESULT map_hres |
Definition at line 1759 of file sec_mgr.c.
Referenced by compile_error(), Err_Raise(), exec_script(), and test_SecurityManagerEx2().
BOOL map_todo |
Definition at line 1761 of file sec_mgr.c.
Referenced by test_SecurityManagerEx2().
|
static |
Definition at line 151 of file sec_mgr.c.
Referenced by SecurityManager_ProcessUrlAction(), and test_CoInternetIsFeatureZoneElevationEnabled().
|
static |
Definition at line 1559 of file sec_mgr.c.
Referenced by register_protocols(), and unregister_protocols().
|
static |
Definition at line 1515 of file sec_mgr.c.
Referenced by ClassFactory_QueryInterface(), and parse_security_url().
const { ... } sec_mgr_ex2_tests[] |
Referenced by test_SecurityManagerEx2().
const { ... } sec_url_ex_tests[] |
Referenced by test_InternetGetSecurityUrlEx().
Definition at line 1762 of file sec_mgr.c.
Referenced by generate_security_id(), get_security_id_for_uri(),