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
c5458520
Commit
c5458520
authored
Jul 23, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Add test for parsing from IStream.
parent
3d4ad645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
saxreader.c
dlls/msxml3/tests/saxreader.c
+20
-0
No files found.
dlls/msxml3/tests/saxreader.c
View file @
c5458520
...
...
@@ -444,6 +444,10 @@ static void test_saxreader(void)
SAFEARRAY
*
pSA
;
SAFEARRAYBOUND
SADim
[
1
];
char
*
pSAData
=
NULL
;
IStream
*
iStream
;
ULARGE_INTEGER
liSize
;
LARGE_INTEGER
liPos
;
ULONG
bytesWritten
;
hr
=
CoCreateInstance
(
&
CLSID_SAXXMLReader
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ISAXXMLReader
,
(
LPVOID
*
)
&
reader
);
...
...
@@ -505,6 +509,22 @@ static void test_saxreader(void)
SafeArrayDestroy
(
pSA
);
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
iStream
);
liSize
.
QuadPart
=
strlen
(
szTestXML
);
IStream_SetSize
(
iStream
,
liSize
);
IStream_Write
(
iStream
,
(
void
const
*
)
szTestXML
,
strlen
(
szTestXML
),
&
bytesWritten
);
liPos
.
QuadPart
=
0
;
IStream_Seek
(
iStream
,
liPos
,
STREAM_SEEK_SET
,
NULL
);
V_VT
(
&
var
)
=
VT_UNKNOWN
|
VT_DISPATCH
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
iStream
;
expectCall
=
contentHandlerTest1
;
hr
=
ISAXXMLReader_parse
(
reader
,
var
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
test_expect_call
(
CH_ENDTEST
);
IStream_Release
(
iStream
);
ISAXXMLReader_Release
(
reader
);
}
...
...
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