Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
099f0310
Commit
099f0310
authored
Jul 08, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Add tests for CoInternetCreateZoneManager.
parent
1c6efb42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+42
-0
No files found.
dlls/urlmon/tests/sec_mgr.c
View file @
099f0310
...
...
@@ -282,6 +282,47 @@ static void test_polices(void)
IInternetZoneManager_Release
(
zonemgr
);
}
static
void
test_CoInternetCreateZoneManager
(
void
)
{
IInternetZoneManager
*
zonemgr
=
NULL
;
IUnknown
*
punk
=
NULL
;
HRESULT
hr
;
hr
=
CoInternetCreateZoneManager
(
NULL
,
&
zonemgr
,
0
);
ok
(
hr
==
S_OK
,
"CoInternetCreateZoneManager result: 0x%x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
hr
=
IInternetZoneManager_QueryInterface
(
zonemgr
,
&
IID_IUnknown
,
(
void
**
)
&
punk
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%x with %p (expected Success)n"
,
hr
,
punk
);
if
(
punk
)
IUnknown_Release
(
punk
);
hr
=
IInternetZoneManager_QueryInterface
(
zonemgr
,
&
IID_IInternetZoneManager
,
(
void
**
)
&
punk
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%x with %p (expected Success)n"
,
hr
,
punk
);
if
(
punk
)
IUnknown_Release
(
punk
);
hr
=
IInternetZoneManager_QueryInterface
(
zonemgr
,
&
IID_IInternetZoneManagerEx
,
(
void
**
)
&
punk
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
punk
);
hr
=
IInternetZoneManager_QueryInterface
(
zonemgr
,
&
IID_IInternetZoneManagerEx2
,
(
void
**
)
&
punk
);
if
(
punk
)
IUnknown_Release
(
punk
);
else
win_skip
(
"InternetZoneManagerEx2 not supported
\n
"
);
}
else
win_skip
(
"InternetZoneManagerEx not supported
\n
"
);
hr
=
IInternetZoneManager_Release
(
zonemgr
);
ok
(
hr
==
S_OK
,
"got 0x%x (expected S_OK)
\n
"
,
hr
);
}
static
void
test_CreateZoneEnumerator
(
void
)
{
IInternetZoneManager
*
zonemgr
=
NULL
;
...
...
@@ -500,6 +541,7 @@ START_TEST(sec_mgr)
test_SecurityManager
();
test_polices
();
test_CoInternetCreateZoneManager
();
test_CreateZoneEnumerator
();
test_GetZoneActionPolicy
();
test_GetZoneAt
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment