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
c1fb15d1
Commit
c1fb15d1
authored
Jan 16, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Added Uri IMarshal_UnmarshalInterface tests.
parent
c6a72ce1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
uri.c
dlls/urlmon/tests/uri.c
+20
-0
No files found.
dlls/urlmon/tests/uri.c
View file @
c1fb15d1
...
...
@@ -10871,6 +10871,26 @@ static void test_IPersistStream(void)
U
(
max_size
).
LowPart
+=
3
*
sizeof
(
DWORD
);
ok
(
dw_data
[
2
]
==
U
(
max_size
).
LowPart
,
"%d) Incorrect value %d, expected %d (PersistStream size).
\n
"
,
i
,
dw_data
[
2
],
U
(
max_size
).
LowPart
);
IMarshal_Release
(
marshal
);
IUri_Release
(
uri
);
hr
=
IStream_Seek
(
stream
,
no_off
,
STREAM_SEEK_SET
,
NULL
);
ok
(
hr
==
S_OK
,
"%d) Seek failed 0x%08x, expected S_OK.
\n
"
,
i
,
hr
);
hr
=
CoCreateInstance
(
&
curi
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUri
,
(
void
**
)
&
uri
);
ok
(
hr
==
S_OK
,
"%d) Error creating uninitialized Uri: 0x%08x.
\n
"
,
i
,
hr
);
hr
=
IUri_QueryInterface
(
uri
,
&
IID_IMarshal
,
(
void
**
)
&
marshal
);
ok
(
hr
==
S_OK
,
"%d) QueryInterface failed 0x%08x, expected S_OK.
\n
"
,
i
,
hr
);
hr
=
IMarshal_UnmarshalInterface
(
marshal
,
stream
,
&
IID_IUri
,
(
void
**
)
&
uri
);
ok
(
hr
==
S_OK
,
"%d) UnmarshalInterface failed 0x%08x, expected S_OK.
\n
"
,
i
,
hr
);
hr
=
IUri_GetRawUri
(
uri
,
&
raw_uri
);
ok
(
hr
==
S_OK
,
"%d) GetRawUri failed 0x%08x, expected S_OK.
\n
"
,
i
,
hr
);
ok
(
!
strcmp_aw
(
test
->
str_props
[
Uri_PROPERTY_RAW_URI
].
value
,
raw_uri
)
||
broken
(
test
->
str_props
[
Uri_PROPERTY_RAW_URI
].
broken_value
&&
!
strcmp_aw
(
test
->
str_props
[
Uri_PROPERTY_RAW_URI
].
broken_value
,
raw_uri
)),
"%d) Expected %s but got %s.
\n
"
,
i
,
test
->
str_props
[
Uri_PROPERTY_RAW_URI
].
value
,
wine_dbgstr_w
(
raw_uri
));
SysFreeString
(
raw_uri
);
IMarshal_Release
(
marshal
);
IStream_Release
(
stream
);
...
...
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