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
78cf530c
Commit
78cf530c
authored
Jul 28, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Don't bother testing unimplemented functions to reduce test output.
parent
fa8f79fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
10 deletions
+44
-10
uri.c
dlls/urlmon/tests/uri.c
+44
-10
No files found.
dlls/urlmon/tests/uri.c
View file @
78cf530c
...
...
@@ -2334,6 +2334,12 @@ static void test_IUri_GetPropertyBSTR(void) {
ok
(
!
strcmp_aw
(
prop
.
value
,
received
),
"Expected %s but got %s on uri_tests[%d].str_props[%d].
\n
"
,
prop
.
value
,
wine_dbgstr_w
(
received
),
i
,
j
);
}
if
(
hr
==
E_NOTIMPL
)
/* no point in continuing */
{
if
(
uri
)
IUri_Release
(
uri
);
heap_free
(
uriW
);
return
;
}
}
else
{
ok
(
hr
==
prop
.
expected
,
"GetPropertyBSTR returned 0x%08x, expected 0x%08x. On uri_tests[%d].str_props[%d].
\n
"
,
hr
,
prop
.
expected
,
i
,
j
);
...
...
@@ -2405,6 +2411,12 @@ static void test_IUri_GetPropertyDWORD(void) {
ok
(
prop
.
value
==
received
,
"Expected %d but got %d on uri_tests[%d].dword_props[%d].
\n
"
,
prop
.
value
,
received
,
i
,
j
);
}
if
(
hr
==
E_NOTIMPL
)
/* no point in continuing */
{
if
(
uri
)
IUri_Release
(
uri
);
heap_free
(
uriW
);
return
;
}
}
else
{
ok
(
hr
==
prop
.
expected
,
"GetPropertyDWORD returned 0x%08x, expected 0x%08x. On uri_tests[%d].dword_props[%d].
\n
"
,
hr
,
prop
.
expected
,
i
,
j
);
...
...
@@ -2501,6 +2513,7 @@ static void test_IUri_GetStrProperties(void) {
/* GetAbsoluteUri() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_ABSOLUTE_URI
];
hr
=
IUri_GetAbsoluteUri
(
uri
,
&
received
);
if
(
hr
==
E_NOTIMPL
)
goto
skip_unimplemented
;
if
(
prop
.
todo
)
{
todo_wine
{
ok
(
hr
==
prop
.
expected
,
"Error: GetAbsoluteUri returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
...
...
@@ -2624,12 +2637,12 @@ static void test_IUri_GetStrProperties(void) {
SysFreeString
(
received
);
received
=
NULL
;
/* Get
Host
() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_
HOST
];
hr
=
IUri_Get
Host
(
uri
,
&
received
);
/* Get
Password
() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_
PASSWORD
];
hr
=
IUri_Get
Password
(
uri
,
&
received
);
if
(
prop
.
todo
)
{
todo_wine
{
ok
(
hr
==
prop
.
expected
,
"Error: Get
Host
returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
ok
(
hr
==
prop
.
expected
,
"Error: Get
Password
returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
hr
,
prop
.
expected
,
i
);
}
todo_wine
{
...
...
@@ -2637,7 +2650,7 @@ static void test_IUri_GetStrProperties(void) {
prop
.
value
,
wine_dbgstr_w
(
received
),
i
);
}
}
else
{
ok
(
hr
==
prop
.
expected
,
"Error: Get
Host
returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
ok
(
hr
==
prop
.
expected
,
"Error: Get
Password
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
);
...
...
@@ -2645,12 +2658,13 @@ static void test_IUri_GetStrProperties(void) {
SysFreeString
(
received
);
received
=
NULL
;
/* GetPassword() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_PASSWORD
];
hr
=
IUri_GetPassword
(
uri
,
&
received
);
skip_unimplemented:
/* GetHost() tests. */
prop
=
test
.
str_props
[
Uri_PROPERTY_HOST
];
hr
=
IUri_GetHost
(
uri
,
&
received
);
if
(
prop
.
todo
)
{
todo_wine
{
ok
(
hr
==
prop
.
expected
,
"Error: Get
Password
returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
ok
(
hr
==
prop
.
expected
,
"Error: Get
Host
returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
hr
,
prop
.
expected
,
i
);
}
todo_wine
{
...
...
@@ -2658,7 +2672,7 @@ static void test_IUri_GetStrProperties(void) {
prop
.
value
,
wine_dbgstr_w
(
received
),
i
);
}
}
else
{
ok
(
hr
==
prop
.
expected
,
"Error: Get
Password
returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
ok
(
hr
==
prop
.
expected
,
"Error: Get
Host
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
);
...
...
@@ -2871,6 +2885,7 @@ static void test_IUri_GetDwordProperties(void) {
/* GetHostType() tests. */
prop
=
test
.
dword_props
[
Uri_PROPERTY_HOST_TYPE
-
Uri_PROPERTY_DWORD_START
];
hr
=
IUri_GetHostType
(
uri
,
&
received
);
if
(
hr
==
E_NOTIMPL
)
goto
skip_unimplemented
;
if
(
prop
.
todo
)
{
todo_wine
{
ok
(
hr
==
prop
.
expected
,
"Error: GetHostType returned 0x%08x, expected 0x%08x on uri_tests[%d].
\n
"
,
...
...
@@ -2904,6 +2919,7 @@ static void test_IUri_GetDwordProperties(void) {
}
received
=
-
9999999
;
skip_unimplemented:
/* GetScheme() tests. */
prop
=
test
.
dword_props
[
Uri_PROPERTY_SCHEME
-
Uri_PROPERTY_DWORD_START
];
hr
=
IUri_GetScheme
(
uri
,
&
received
);
...
...
@@ -3005,6 +3021,12 @@ static void test_IUri_GetPropertyLength(void) {
ok
(
receivedLen
==
expectedLen
,
"Error: Expected a length of %d but got %d on uri_tests[%d].str_props[%d].
\n
"
,
expectedLen
,
receivedLen
,
i
,
j
);
}
if
(
hr
==
E_NOTIMPL
)
/* no point in continuing */
{
if
(
uri
)
IUri_Release
(
uri
);
heap_free
(
uriW
);
return
;
}
}
else
{
ok
(
hr
==
prop
.
expected
,
"Error: GetPropertyLength returned 0x%08x, expected 0x%08x on uri_tests[%d].str_props[%d].
\n
"
,
hr
,
prop
.
expected
,
i
,
j
);
...
...
@@ -3057,6 +3079,12 @@ static void test_IUri_GetProperties(void) {
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: GetProperties returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
if
(
hr
==
E_NOTIMPL
)
/* no point in continuing */
{
if
(
uri
)
IUri_Release
(
uri
);
heap_free
(
uriW
);
return
;
}
}
else
{
ok
(
hr
==
S_OK
,
"Error: GetProperties returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
...
...
@@ -3128,6 +3156,12 @@ static void test_IUri_HasProperty(void) {
ok
(
hr
==
S_OK
,
"Error: HasProperty returned 0x%08x, expected 0x%08x for property %d on uri_tests[%d].
\n
"
,
hr
,
S_OK
,
j
,
i
);
}
if
(
hr
==
E_NOTIMPL
)
/* no point in continuing */
{
if
(
uri
)
IUri_Release
(
uri
);
heap_free
(
uriW
);
return
;
}
/* Check if the property should be true. */
if
(
test
.
props
&
(
1
<<
j
))
{
...
...
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