Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
d041a46c
Commit
d041a46c
authored
11 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wmp/tests: Added tests.
parent
fe7c3208
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+1
-0
1 addition, 0 deletions
configure
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
dlls/wmp/tests/Makefile.in
+4
-0
4 additions, 0 deletions
dlls/wmp/tests/Makefile.in
dlls/wmp/tests/oleobj.c
+62
-0
62 additions, 0 deletions
dlls/wmp/tests/oleobj.c
with
68 additions
and
0 deletions
configure
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
0
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])
...
...
This diff is collapsed.
Click to expand it.
dlls/wmp/tests/Makefile.in
0 → 100644
+
4
−
0
View file @
d041a46c
TESTDLL
=
wmp.dll
IMPORTS
=
ole32
C_SRCS
=
oleobj.c
This diff is collapsed.
Click to expand it.
dlls/wmp/tests/oleobj.c
0 → 100644
+
62
−
0
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
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment