mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
mfplay/tests: Add a basic test for player creation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
615cabf69a
commit
dc57a265f1
1
configure
vendored
1
configure
vendored
|
@ -20739,6 +20739,7 @@ wine_fn_config_makefile dlls/mfmediaengine/tests enable_tests
|
|||
wine_fn_config_makefile dlls/mfplat enable_mfplat
|
||||
wine_fn_config_makefile dlls/mfplat/tests enable_tests
|
||||
wine_fn_config_makefile dlls/mfplay enable_mfplay
|
||||
wine_fn_config_makefile dlls/mfplay/tests enable_tests
|
||||
wine_fn_config_makefile dlls/mfreadwrite enable_mfreadwrite
|
||||
wine_fn_config_makefile dlls/mfreadwrite/tests enable_tests
|
||||
wine_fn_config_makefile dlls/mfuuid enable_mfuuid
|
||||
|
|
|
@ -3414,6 +3414,7 @@ WINE_CONFIG_MAKEFILE(dlls/mfmediaengine/tests)
|
|||
WINE_CONFIG_MAKEFILE(dlls/mfplat)
|
||||
WINE_CONFIG_MAKEFILE(dlls/mfplat/tests)
|
||||
WINE_CONFIG_MAKEFILE(dlls/mfplay)
|
||||
WINE_CONFIG_MAKEFILE(dlls/mfplay/tests)
|
||||
WINE_CONFIG_MAKEFILE(dlls/mfreadwrite)
|
||||
WINE_CONFIG_MAKEFILE(dlls/mfreadwrite/tests)
|
||||
WINE_CONFIG_MAKEFILE(dlls/mfuuid)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
MODULE = mfplay.dll
|
||||
IMPORTLIB = mfplay
|
||||
IMPORTS = uuid mfuuid
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
|
5
dlls/mfplay/tests/Makefile.in
Normal file
5
dlls/mfplay/tests/Makefile.in
Normal file
|
@ -0,0 +1,5 @@
|
|||
TESTDLL = mfplay.dll
|
||||
IMPORTS = mfplay
|
||||
|
||||
C_SRCS = \
|
||||
mfplay.c
|
42
dlls/mfplay/tests/mfplay.c
Normal file
42
dlls/mfplay/tests/mfplay.c
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright 2021 Nikolay Sivov for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "mfplay.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
|
||||
static void test_create_player(void)
|
||||
{
|
||||
IMFPMediaPlayer *player;
|
||||
HRESULT hr;
|
||||
|
||||
hr = MFPCreateMediaPlayer(NULL, FALSE, 0, NULL, NULL, &player);
|
||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||
IMFPMediaPlayer_Release(player);
|
||||
}
|
||||
|
||||
START_TEST(mfplay)
|
||||
{
|
||||
test_create_player();
|
||||
}
|
Loading…
Reference in a new issue