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
2e1f8548
Commit
2e1f8548
authored
Sep 17, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Sep 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Added more tests for IUriBuilder's CreateUri functions.
parent
6704cd80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
uri.c
dlls/urlmon/tests/uri.c
+62
-0
No files found.
dlls/urlmon/tests/uri.c
View file @
2e1f8548
...
...
@@ -7932,6 +7932,37 @@ static void test_IUriBuilder_IUriProperty(void) {
}
if
(
test
)
IUri_Release
(
test
);
/* Doesn't return the same IUri, if the flag combination is different then the one that created
* the base IUri.
*/
test
=
NULL
;
hr
=
IUriBuilder_CreateUri
(
builder
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
0
,
&
test
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_CreateUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
{
todo_wine
{
ok
(
test
!=
uri
,
"Error: Wasn't expecting 'test' to be 'uri'
\n
"
);
}
}
if
(
test
)
IUri_Release
(
test
);
/* Still returns the same IUri, even though the base one wasn't created with CREATE_CANONICALIZE
* explicitly set (because it's a default flags).
*/
test
=
NULL
;
hr
=
IUriBuilder_CreateUri
(
builder
,
Uri_CREATE_CANONICALIZE
,
0
,
0
,
&
test
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_CreateUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
{
cur_count
=
get_refcnt
(
uri
);
ok
(
cur_count
==
orig_count
+
1
,
"Error: Expected uri ref count to be %d, but was %d instead.
\n
"
,
orig_count
+
1
,
cur_count
);
ok
(
test
==
uri
,
"Error: Expected 'test' to be %p, but was %p instead.
\n
"
,
uri
,
test
);
}
if
(
test
)
IUri_Release
(
test
);
test
=
NULL
;
hr
=
IUriBuilder_CreateUriSimple
(
builder
,
0
,
0
,
&
test
);
todo_wine
{
...
...
@@ -7958,6 +7989,37 @@ static void test_IUriBuilder_IUriProperty(void) {
ok
(
test
==
uri
,
"Error: Expected test to be %p, but was %p instead.
\n
"
,
uri
,
test
);
}
if
(
test
)
IUri_Release
(
test
);
/* Doesn't return the same IUri, if the flag combination is different then the one that created
* the base IUri.
*/
test
=
NULL
;
hr
=
IUriBuilder_CreateUriWithFlags
(
builder
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
0
,
0
,
&
test
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_CreateUriWithFlags returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
{
todo_wine
{
ok
(
test
!=
uri
,
"Error: Wasn't expecting 'test' to be 'uri'
\n
"
);
}
}
if
(
test
)
IUri_Release
(
test
);
/* Still returns the same IUri, even though the base one wasn't created with CREATE_CANONICALIZE
* explicitly set (because it's a default flags).
*/
test
=
NULL
;
hr
=
IUriBuilder_CreateUriWithFlags
(
builder
,
Uri_CREATE_CANONICALIZE
,
0
,
0
,
0
,
&
test
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_CreateUriWithFlags returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
{
cur_count
=
get_refcnt
(
uri
);
ok
(
cur_count
==
orig_count
+
1
,
"Error: Expected uri ref count to be %d, but was %d instead.
\n
"
,
orig_count
+
1
,
cur_count
);
ok
(
test
==
uri
,
"Error: Expected 'test' to be %p, but was %p instead.
\n
"
,
uri
,
test
);
}
if
(
test
)
IUri_Release
(
test
);
}
if
(
uri
)
IUri_Release
(
uri
);
}
...
...
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