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
425608a1
Commit
425608a1
authored
Aug 18, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Aug 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Add class factory tests.
parent
595d6aa6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
2 deletions
+44
-2
capture.c
dlls/dsound/tests/capture.c
+11
-0
dsound.c
dlls/dsound/tests/dsound.c
+11
-0
dsound8.c
dlls/dsound/tests/dsound8.c
+11
-0
duplex.c
dlls/dsound/tests/duplex.c
+2
-2
propset.c
dlls/dsound/tests/propset.c
+9
-0
No files found.
dlls/dsound/tests/capture.c
View file @
425608a1
...
...
@@ -192,9 +192,20 @@ static void IDirectSoundCapture_tests(void)
{
HRESULT
rc
;
LPDIRECTSOUNDCAPTURE
dsco
=
NULL
;
LPCLASSFACTORY
cf
=
NULL
;
trace
(
"Testing IDirectSoundCapture
\n
"
);
rc
=
CoGetClassObject
(
&
CLSID_DirectSoundCapture
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
ok
(
rc
==
S_OK
,
"CoGetClassObject(CLSID_DirectSoundCapture, IID_IClassFactory) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
CoGetClassObject
(
&
CLSID_DirectSoundCapture
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
cf
);
ok
(
rc
==
S_OK
,
"CoGetClassObject(CLSID_DirectSoundCapture, IID_IUnknown) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
/* try the COM class factory method of creation with no device specified */
rc
=
CoCreateInstance
(
&
CLSID_DirectSoundCapture
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSoundCapture
,
(
void
**
)
&
dsco
);
...
...
dlls/dsound/tests/dsound.c
View file @
425608a1
...
...
@@ -172,9 +172,20 @@ static void IDirectSound_tests(void)
{
HRESULT
rc
;
LPDIRECTSOUND
dso
=
NULL
;
LPCLASSFACTORY
cf
=
NULL
;
trace
(
"Testing IDirectSound
\n
"
);
rc
=
CoGetClassObject
(
&
CLSID_DirectSound
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
ok
(
rc
==
S_OK
,
"CoGetClassObject(CLSID_DirectSound, IID_IClassFactory) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
CoGetClassObject
(
&
CLSID_DirectSound
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
cf
);
ok
(
rc
==
S_OK
,
"CoGetClassObject(CLSID_DirectSound, IID_IUnknown) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
/* try the COM class factory method of creation with no device specified */
rc
=
CoCreateInstance
(
&
CLSID_DirectSound
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSound
,
(
void
**
)
&
dso
);
...
...
dlls/dsound/tests/dsound8.c
View file @
425608a1
...
...
@@ -191,9 +191,20 @@ static void IDirectSound8_tests(void)
{
HRESULT
rc
;
LPDIRECTSOUND8
dso
=
NULL
;
LPCLASSFACTORY
cf
=
NULL
;
trace
(
"Testing IDirectSound8
\n
"
);
rc
=
CoGetClassObject
(
&
CLSID_DirectSound8
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
ok
(
rc
==
S_OK
,
"CoGetClassObject(CLSID_DirectSound8, IID_IClassFactory) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
CoGetClassObject
(
&
CLSID_DirectSound8
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
cf
);
ok
(
rc
==
S_OK
,
"CoGetClassObject(CLSID_DirectSound8, IID_IUnknown) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
/* try the COM class factory method of creation with no device specified */
rc
=
CoCreateInstance
(
&
CLSID_DirectSound8
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSound8
,
(
void
**
)
&
dso
);
...
...
dlls/dsound/tests/duplex.c
View file @
425608a1
...
...
@@ -66,7 +66,7 @@ static void IDirectSoundFullDuplex_test(LPDIRECTSOUNDFULLDUPLEX dsfdo,
ok
(
ref
==
0
,
"IDirectSound_Release() has %d references, "
"should have 0
\n
"
,
ref
);
}
rc
=
IDirectSoundFullDuplex_QueryInterface
(
dsfdo
,
&
IID_IDirectSound8
,(
LPVOID
*
)
&
ds8
);
ok
(
rc
==
(
initialized
?
DS_OK
:
E_NOINTERFACE
),
"IDirectSoundFullDuplex_QueryInterface(IID_IDirectSound8) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
...
...
@@ -136,7 +136,7 @@ static void IDirectSoundFullDuplex_tests(void)
if
(
dsfdo
)
IDirectSoundFullDuplex_test
(
dsfdo
,
FALSE
,
NULL
,
NULL
);
/* try the COM class factory method of creation with default devices
/* try the COM class factory method of creation with default devices
* specified */
rc
=
CoCreateInstance
(
&
CLSID_DirectSoundFullDuplex
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSoundFullDuplex
,
...
...
dlls/dsound/tests/propset.c
View file @
425608a1
...
...
@@ -202,6 +202,15 @@ static void propset_private_tests(void)
"IID_IClassFactory) should have returned DSERR_INVALIDPARAM, "
"returned: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
(
fProc
)(
&
CLSID_DirectSound
,
&
IID_IDirectSound
,
(
void
**
)(
&
pcf
));
ok
(
rc
==
E_NOINTERFACE
,
"DllGetClassObject(CLSID_DirectSound, "
"IID_IDirectSound) should have returned E_NOINTERFACE, "
"returned: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
(
fProc
)(
&
CLSID_DirectSound
,
&
IID_IUnknown
,
(
void
**
)(
&
pcf
));
ok
(
rc
==
DS_OK
,
"DllGetClassObject(CLSID_DirectSound, "
"IID_IUnknown) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
(
fProc
)(
&
CLSID_DirectSound
,
&
IID_IClassFactory
,
(
void
**
)(
&
pcf
));
ok
(
pcf
!=
0
,
"DllGetClassObject(CLSID_DirectSound, IID_IClassFactory) "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
...
...
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