Module: wine Branch: master Commit: 3d246c6643eb2df023f01cc925e32fd03f651424 URL: https://gitlab.winehq.org/wine/wine/-/commit/3d246c6643eb2df023f01cc925e32fd...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu May 4 11:50:41 2023 -0500
qcap/tests: Test the audio capture CLSID.
---
dlls/qcap/tests/audiorecord.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/qcap/tests/audiorecord.c b/dlls/qcap/tests/audiorecord.c index 96d06fad431..64fc09c49fc 100644 --- a/dlls/qcap/tests/audiorecord.c +++ b/dlls/qcap/tests/audiorecord.c @@ -371,6 +371,8 @@ START_TEST(audiorecord)
while (IEnumMoniker_Next(enummon, 1, &mon, NULL) == S_OK) { + CLSID clsid; + hr = IMoniker_GetDisplayName(mon, NULL, NULL, &name); ok(hr == S_OK, "Got hr %#lx.\n", hr); trace("Testing device %s.\n", wine_dbgstr_w(name)); @@ -381,6 +383,10 @@ START_TEST(audiorecord) hr = IMoniker_BindToObject(mon, NULL, NULL, &IID_IBaseFilter, (void **)&filter); ok(hr == S_OK, "Got hr %#lx.\n", hr);
+ hr = IBaseFilter_GetClassID(filter, &clsid); + ok(hr == S_OK, "Got hr %#lx.\n", hr); + ok(IsEqualGUID(&clsid, &CLSID_AudioRecord), "Got clsid %s.\n", debugstr_guid(&clsid)); + test_interfaces(filter); test_unconnected_filter_state(filter); test_pin_info(filter);