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
3115e490
Commit
3115e490
authored
May 26, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic/tests: Test unimplemented IPersistStream methods in DMCollection.
parent
5d7e93dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
dmusic.c
dlls/dmusic/tests/dmusic.c
+15
-0
No files found.
dlls/dmusic/tests/dmusic.c
View file @
3115e490
...
@@ -314,7 +314,10 @@ static void test_dmcoll(void)
...
@@ -314,7 +314,10 @@ static void test_dmcoll(void)
{
{
IDirectMusicCollection
*
dmc
;
IDirectMusicCollection
*
dmc
;
IDirectMusicObject
*
dmo
;
IDirectMusicObject
*
dmo
;
IPersistStream
*
ps
;
DMUS_OBJECTDESC
desc
;
DMUS_OBJECTDESC
desc
;
CLSID
class
;
ULARGE_INTEGER
size
;
HRESULT
hr
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicCollection
,
NULL
,
CLSCTX_INPROC_SERVER
,
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicCollection
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
@@ -347,6 +350,18 @@ static void test_dmcoll(void)
...
@@ -347,6 +350,18 @@ static void test_dmcoll(void)
ok
(
IsEqualGUID
(
&
desc
.
guidClass
,
&
CLSID_DirectMusicCollection
),
ok
(
IsEqualGUID
(
&
desc
.
guidClass
,
&
CLSID_DirectMusicCollection
),
"guidClass changed, should be CLSID_DirectMusicCollection
\n
"
);
"guidClass changed, should be CLSID_DirectMusicCollection
\n
"
);
/* Unimplemented IPersistStream methods*/
hr
=
IDirectMusicCollection_QueryInterface
(
dmc
,
&
IID_IPersistStream
,
(
void
**
)
&
ps
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IPersistStream failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_GetClassID
(
ps
,
&
class
);
ok
(
hr
==
E_NOTIMPL
,
"IPersistStream_GetClassID failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_IsDirty
(
ps
);
ok
(
hr
==
S_FALSE
,
"IPersistStream_IsDirty failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_GetSizeMax
(
ps
,
&
size
);
ok
(
hr
==
E_NOTIMPL
,
"IPersistStream_GetSizeMax failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_Save
(
ps
,
NULL
,
TRUE
);
ok
(
hr
==
E_NOTIMPL
,
"IPersistStream_Save failed: %08x
\n
"
,
hr
);
while
(
IDirectMusicCollection_Release
(
dmc
));
while
(
IDirectMusicCollection_Release
(
dmc
));
}
}
...
...
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