1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-09 04:16:08 +00:00

mfplat/tests: Remove duplicated tests.

The same tests are already performed in test_MFGetPlaneSize().

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-06-29 11:47:22 +02:00 committed by Alexandre Julliard
parent 2f83de8cff
commit 0a78a9f56d

View File

@ -4318,7 +4318,6 @@ image_size_tests[] =
static void test_MFCalculateImageSize(void)
{
DWORD plane_size;
unsigned int i;
UINT32 size;
HRESULT hr;
@ -4340,15 +4339,6 @@ static void test_MFCalculateImageSize(void)
ok(hr == S_OK || (is_broken && hr == E_INVALIDARG), "%u: failed to calculate image size, hr %#lx.\n", i, hr);
ok(size == ptr->size, "%u: unexpected image size %u, expected %u. Size %u x %u, format %s.\n", i, size, ptr->size,
ptr->width, ptr->height, wine_dbgstr_an((char *)&ptr->subtype->Data1, 4));
if (pMFGetPlaneSize)
{
unsigned int expected = ptr->plane_size ? ptr->plane_size : ptr->size;
hr = pMFGetPlaneSize(ptr->subtype->Data1, ptr->width, ptr->height, &plane_size);
ok(hr == S_OK, "%u: failed to get plane size, hr %#lx.\n", i, hr);
ok(plane_size == expected, "%u: unexpected plane size %lu, expected %u.\n", i, plane_size, expected);
}
}
}