Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d041a46c
Commit
d041a46c
authored
Jan 30, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp/tests: Added tests.
parent
fe7c3208
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/wmp/tests/Makefile.in
+4
-0
oleobj.c
dlls/wmp/tests/oleobj.c
+62
-0
No files found.
configure
View file @
d041a46c
...
...
@@ -17173,6 +17173,7 @@ wine_fn_config_dll wmi enable_wmi
wine_fn_config_dll wmiutils enable_wmiutils clean
wine_fn_config_test dlls/wmiutils/tests wmiutils_test
wine_fn_config_dll wmp enable_wmp clean
wine_fn_config_test dlls/wmp/tests wmp_test
wine_fn_config_dll wmvcore enable_wmvcore
wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
wine_fn_config_dll wow32 enable_win16 implib
...
...
configure.ac
View file @
d041a46c
...
...
@@ -3216,6 +3216,7 @@ WINE_CONFIG_DLL(wmi)
WINE_CONFIG_DLL(wmiutils,,[clean])
WINE_CONFIG_TEST(dlls/wmiutils/tests)
WINE_CONFIG_DLL(wmp,,[clean])
WINE_CONFIG_TEST(dlls/wmp/tests)
WINE_CONFIG_DLL(wmvcore)
WINE_CONFIG_DLL(wnaspi32,,[implib])
WINE_CONFIG_DLL(wow32,enable_win16,[implib])
...
...
dlls/wmp/tests/Makefile.in
0 → 100644
View file @
d041a46c
TESTDLL
=
wmp.dll
IMPORTS
=
ole32
C_SRCS
=
oleobj.c
dlls/wmp/tests/oleobj.c
0 → 100644
View file @
d041a46c
/*
* Copyright 2014 Jacek Caban 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
*/
#define WIN32_LEAN_AND_MEAN
#define COBJMACROS
#include <initguid.h>
#include <windows.h>
#include <wmp.h>
#include "wine/test.h"
static
void
test_wmp
(
void
)
{
IProvideClassInfo2
*
class_info
;
IOleObject
*
oleobj
;
GUID
guid
;
LONG
ref
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_WindowsMediaPlayer
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
if
(
hres
==
REGDB_E_CLASSNOTREG
)
{
win_skip
(
"CLSID_WindowsMediaPlayer not registered
\n
"
);
return
;
}
ok
(
hres
==
S_OK
,
"Coult not create CLSID_WindowsMediaPlayer instance: %08x
\n
"
,
hres
);
hres
=
IOleObject_QueryInterface
(
oleobj
,
&
IID_IProvideClassInfo2
,
(
void
**
)
&
class_info
);
ok
(
hres
==
S_OK
,
"Could not get IProvideClassInfo2 iface: %08x
\n
"
,
hres
);
hres
=
IProvideClassInfo2_GetGUID
(
class_info
,
GUIDKIND_DEFAULT_SOURCE_DISP_IID
,
&
guid
);
ok
(
hres
==
S_OK
,
"GetGUID failed: %08x
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
guid
,
&
IID__WMPOCXEvents
),
"guid = %s
\n
"
,
wine_dbgstr_guid
(
&
guid
));
IProvideClassInfo2_Release
(
class_info
);
ref
=
IOleObject_Release
(
oleobj
);
ok
(
!
ref
,
"ref = %d
\n
"
,
ref
);
}
START_TEST
(
oleobj
)
{
CoInitialize
(
NULL
);
test_wmp
();
CoUninitialize
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment