Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5b2a9a19
Commit
5b2a9a19
authored
Aug 23, 2009
by
Tony Wasserka
Committed by
Alexandre Julliard
Aug 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add tests for IWICStream_Stat with memory streams.
parent
3d8afaca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
stream.c
dlls/windowscodecs/tests/stream.c
+18
-0
No files found.
dlls/windowscodecs/tests/stream.c
View file @
5b2a9a19
...
...
@@ -36,6 +36,7 @@ static void test_StreamOnMemory(void)
ULARGE_INTEGER
uLargeNull
,
uNewPos
;
ULONG
uBytesRead
,
uBytesWritten
;
HRESULT
hr
;
STATSTG
Stats
;
LargeNull
.
QuadPart
=
0
;
uLargeNull
.
QuadPart
=
0
;
...
...
@@ -283,6 +284,23 @@ static void test_StreamOnMemory(void)
ok
(
hr
==
E_NOTIMPL
,
"UnlockRegion returned %#x, expected %#x
\n
"
,
hr
,
E_NOTIMPL
);
/* Stat */
hr
=
IWICStream_Stat
(
pStream
,
NULL
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Stat returned %#x, expected %#x
\n
"
,
hr
,
E_INVALIDARG
);
hr
=
IWICStream_Stat
(
pStream
,
&
Stats
,
0
);
ok
(
hr
==
S_OK
,
"Stat returned %#x, expected %#x
\n
"
,
hr
,
S_OK
);
ok
(
Stats
.
pwcsName
==
NULL
,
"Stat returned name %p, expected %p
\n
"
,
Stats
.
pwcsName
,
NULL
);
ok
(
Stats
.
type
==
STGTY_STREAM
,
"Stat returned type %d, expected %d
\n
"
,
Stats
.
type
,
STGTY_STREAM
);
ok
(
Stats
.
cbSize
.
HighPart
==
0
&&
Stats
.
cbSize
.
LowPart
==
sizeof
(
Memory
),
"Stat returned size (%u;%u), expected (%u;%u)
\n
"
,
Stats
.
cbSize
.
HighPart
,
Stats
.
cbSize
.
LowPart
,
0
,
sizeof
(
Memory
));
ok
(
Stats
.
mtime
.
dwHighDateTime
==
0
&&
Stats
.
mtime
.
dwLowDateTime
==
0
,
"Stat returned mtime (%u;%u), expected (%u;%u)
\n
"
,
Stats
.
mtime
.
dwHighDateTime
,
Stats
.
mtime
.
dwLowDateTime
,
0
,
0
);
ok
(
Stats
.
ctime
.
dwHighDateTime
==
0
&&
Stats
.
ctime
.
dwLowDateTime
==
0
,
"Stat returned ctime (%u;%u), expected (%u;%u)
\n
"
,
Stats
.
ctime
.
dwHighDateTime
,
Stats
.
ctime
.
dwLowDateTime
,
0
,
0
);
ok
(
Stats
.
atime
.
dwHighDateTime
==
0
&&
Stats
.
atime
.
dwLowDateTime
==
0
,
"Stat returned atime (%u;%u), expected (%u;%u)
\n
"
,
Stats
.
atime
.
dwHighDateTime
,
Stats
.
atime
.
dwLowDateTime
,
0
,
0
);
ok
(
Stats
.
grfMode
==
0
,
"Stat returned access mode %d, expected %d
\n
"
,
Stats
.
grfMode
,
0
);
ok
(
Stats
.
grfLocksSupported
==
0
,
"Stat returned supported locks %#x, expected %#x
\n
"
,
Stats
.
grfLocksSupported
,
0
);
ok
(
Stats
.
grfStateBits
==
0
,
"Stat returned state bits %#x, expected %#x
\n
"
,
Stats
.
grfStateBits
,
0
);
/* Clone */
hr
=
IWICStream_Clone
(
pStream
,
(
IStream
**
)
&
pBufStream
);
ok
(
hr
==
E_NOTIMPL
,
"UnlockRegion returned %#x, expected %#x
\n
"
,
hr
,
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