wbemprox/tests: Add Win32_SoundDevice tests.

Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gijs Vermeulen 2020-07-08 12:26:02 +02:00 committed by Alexandre Julliard
parent 2ea3e40465
commit d16a353700
1 changed files with 30 additions and 0 deletions

View File

@ -1551,6 +1551,35 @@ static void test_Win32_QuickFixEngineering( IWbemServices *services )
SysFreeString( wql ); SysFreeString( wql );
} }
static void test_Win32_SoundDevice( IWbemServices *services )
{
BSTR wql = SysAllocString( L"wql" );
BSTR query = SysAllocString( L"SELECT * FROM Win32_SoundDevice" );
IEnumWbemClassObject *result;
IWbemClassObject *obj;
HRESULT hr;
DWORD count;
hr = IWbemServices_ExecQuery( services, wql, query, 0, NULL, &result );
ok( hr == S_OK, "got %08x\n", hr );
for (;;)
{
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
if (hr != S_OK) break;
check_property( obj, L"Name", VT_BSTR, CIM_STRING );
check_property( obj, L"ProductName", VT_BSTR, CIM_STRING );
check_property( obj, L"StatusInfo", VT_I4, CIM_UINT16 );
check_property( obj, L"Manufacturer", VT_BSTR, CIM_STRING );
IWbemClassObject_Release( obj );
}
IEnumWbemClassObject_Release( result );
SysFreeString( query );
SysFreeString( wql );
}
START_TEST(query) START_TEST(query)
{ {
BSTR path = SysAllocString( L"ROOT\\CIMV2" ); BSTR path = SysAllocString( L"ROOT\\CIMV2" );
@ -1602,6 +1631,7 @@ START_TEST(query)
test_Win32_Processor( services ); test_Win32_Processor( services );
test_Win32_QuickFixEngineering( services ); test_Win32_QuickFixEngineering( services );
test_Win32_Service( services ); test_Win32_Service( services );
test_Win32_SoundDevice( services );
test_Win32_SystemEnclosure( services ); test_Win32_SystemEnclosure( services );
test_Win32_VideoController( services ); test_Win32_VideoController( services );
test_Win32_WinSAT( services ); test_Win32_WinSAT( services );