"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msdmo/tests/msdmo.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

msdmo.c  (wine-5.12.tar.xz):msdmo.c  (wine-5.13.tar.xz)
skipping to change at line 120 skipping to change at line 120
hr = IEnumDMO_Next(enum_dmo, 2, NULL, &name, &count); hr = IEnumDMO_Next(enum_dmo, 2, NULL, &name, &count);
ok(hr == E_POINTER, "expected S_FALSE, got %#x\n", hr); ok(hr == E_POINTER, "expected S_FALSE, got %#x\n", hr);
hr = IEnumDMO_Next(enum_dmo, 2, &clsid, NULL, &count); hr = IEnumDMO_Next(enum_dmo, 2, &clsid, NULL, &count);
ok(hr == S_FALSE, "expected S_FALSE, got %#x\n", hr); ok(hr == S_FALSE, "expected S_FALSE, got %#x\n", hr);
ok(count == 0, "expected 0, got %d\n", count); ok(count == 0, "expected 0, got %d\n", count);
IEnumDMO_Release(enum_dmo); IEnumDMO_Release(enum_dmo);
} }
static void test_DMOGetTypes(void)
{
static const DMO_PARTIAL_MEDIATYPE input_types[] =
{
{{0x1111}, {0x2222}},
{{0x1111}, {0x3333}},
};
ULONG input_count, output_count;
DMO_PARTIAL_MEDIATYPE types[3];
HRESULT hr;
hr = DMOGetTypes(&GUID_unknowndmo, 0, &input_count, types, 0, &output_count,
NULL);
ok(hr == E_FAIL, "Got hr %#x.\n", hr);
hr = DMORegister(L"testdmo", &GUID_unknowndmo, &GUID_unknowncategory, 0,
ARRAY_SIZE(input_types), input_types, 0, NULL);
if (hr != S_OK)
return;
hr = DMOGetTypes(&GUID_unknowndmo, 0, &input_count, types, 0, &output_count,
NULL);
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(!input_count, "Got input count %u.\n", input_count);
ok(!output_count, "Got output count %u.\n", output_count);
memset(types, 0, sizeof(types));
hr = DMOGetTypes(&GUID_unknowndmo, 1, &input_count, types, 0, &output_count,
NULL);
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(input_count == 1, "Got input count %u.\n", input_count);
ok(!output_count, "Got output count %u.\n", output_count);
todo_wine ok(!memcmp(types, input_types, sizeof(DMO_PARTIAL_MEDIATYPE)), "Ty
pes didn't match.\n");
memset(types, 0, sizeof(types));
hr = DMOGetTypes(&GUID_unknowndmo, 2, &input_count, types, 0, &output_count,
NULL);
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(input_count == 2, "Got input count %u.\n", input_count);
ok(!output_count, "Got output count %u.\n", output_count);
ok(!memcmp(types, input_types, 2 * sizeof(DMO_PARTIAL_MEDIATYPE)), "Types di
dn't match.\n");
memset(types, 0, sizeof(types));
hr = DMOGetTypes(&GUID_unknowndmo, 2, &input_count, types, 0, &output_count,
NULL);
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(input_count == 2, "Got input count %u.\n", input_count);
ok(!output_count, "Got output count %u.\n", output_count);
ok(!memcmp(types, input_types, 2 * sizeof(DMO_PARTIAL_MEDIATYPE)), "Types di
dn't match.\n");
hr = DMOUnregister(&GUID_unknowndmo, &GUID_unknowncategory);
ok(hr == S_OK, "Got hr %#x.\n", hr);
}
START_TEST(msdmo) START_TEST(msdmo)
{ {
test_DMOUnregister(); test_DMOUnregister();
test_DMOGetName(); test_DMOGetName();
test_DMOEnum(); test_DMOEnum();
test_DMOGetTypes();
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 58 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)