Commit d16a3537 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

wbemprox/tests: Add Win32_SoundDevice tests.

parent 2ea3e404
......@@ -1551,6 +1551,35 @@ static void test_Win32_QuickFixEngineering( IWbemServices *services )
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)
{
BSTR path = SysAllocString( L"ROOT\\CIMV2" );
......@@ -1602,6 +1631,7 @@ START_TEST(query)
test_Win32_Processor( services );
test_Win32_QuickFixEngineering( services );
test_Win32_Service( services );
test_Win32_SoundDevice( services );
test_Win32_SystemEnclosure( services );
test_Win32_VideoController( services );
test_Win32_WinSAT( services );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment