Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d5e0a2ed
Commit
d5e0a2ed
authored
Jun 01, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Added tests for IUri_GetHost.
parent
68db56d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
uri.c
dlls/urlmon/tests/uri.c
+24
-0
uri.c
dlls/urlmon/uri.c
+4
-0
No files found.
dlls/urlmon/tests/uri.c
View file @
d5e0a2ed
...
@@ -710,6 +710,9 @@ static void test_IUri_GetStrProperties(void) {
...
@@ -710,6 +710,9 @@ static void test_IUri_GetStrProperties(void) {
hr
=
IUri_GetFragment
(
uri
,
NULL
);
hr
=
IUri_GetFragment
(
uri
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Error: GetFragment returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
ok
(
hr
==
E_POINTER
,
"Error: GetFragment returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
hr
=
IUri_GetHost
(
uri
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Error: GetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
hr
=
IUri_GetPassword
(
uri
,
NULL
);
hr
=
IUri_GetPassword
(
uri
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Error: GetPassword returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
ok
(
hr
==
E_POINTER
,
"Error: GetPassword returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
...
@@ -883,6 +886,27 @@ static void test_IUri_GetStrProperties(void) {
...
@@ -883,6 +886,27 @@ static void test_IUri_GetStrProperties(void) {
SysFreeString
(
received
);
SysFreeString
(
received
);
received
=
NULL
;
received
=
NULL
;
/* GetHost() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_HOST
];
hr
=
IUri_GetHost
(
uri
,
&
received
);
if
(
prop
.
todo
)
{
todo_wine
{
ok
(
hr
==
prop
.
expected
,
"Error: GetHost returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
hr
,
prop
.
expected
,
i
);
}
todo_wine
{
ok
(
!
strcmp_aw
(
prop
.
value
,
received
),
"Error: Expected %s but got %s on uri_tests[%d].
\n
"
,
prop
.
value
,
wine_dbgstr_w
(
received
),
i
);
}
}
else
{
ok
(
hr
==
prop
.
expected
,
"Error: GetHost returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
hr
,
prop
.
expected
,
i
);
ok
(
!
strcmp_aw
(
prop
.
value
,
received
),
"Error: Expected %s but got %s on uri_tests[%d].
\n
"
,
prop
.
value
,
wine_dbgstr_w
(
received
),
i
);
}
SysFreeString
(
received
);
received
=
NULL
;
/* GetPassword() tests. */
/* GetPassword() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_PASSWORD
];
prop
=
test
.
str_props
[
Uri_PROPERTY_PASSWORD
];
hr
=
IUri_GetPassword
(
uri
,
&
received
);
hr
=
IUri_GetPassword
(
uri
,
&
received
);
...
...
dlls/urlmon/uri.c
View file @
d5e0a2ed
...
@@ -224,6 +224,10 @@ static HRESULT WINAPI Uri_GetHost(IUri *iface, BSTR *pstrHost)
...
@@ -224,6 +224,10 @@ static HRESULT WINAPI Uri_GetHost(IUri *iface, BSTR *pstrHost)
{
{
Uri
*
This
=
URI_THIS
(
iface
);
Uri
*
This
=
URI_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pstrHost
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pstrHost
);
if
(
!
pstrHost
)
return
E_POINTER
;
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
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