Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
54168bde
Commit
54168bde
authored
Apr 12, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: Add tests.
parent
7240170c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
0 deletions
+90
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/dmband/tests/Makefile.in
+7
-0
dmband.c
dlls/dmband/tests/dmband.c
+81
-0
No files found.
configure
View file @
54168bde
...
...
@@ -15022,6 +15022,7 @@ wine_fn_config_dll dispex enable_dispex
wine_fn_config_test dlls/dispex/tests dispex_test
wine_fn_config_dll display.drv16 enable_win16
wine_fn_config_dll dmband enable_dmband
wine_fn_config_test dlls/dmband/tests dmband_test
wine_fn_config_dll dmcompos enable_dmcompos
wine_fn_config_dll dmime enable_dmime
wine_fn_config_test dlls/dmime/tests dmime_test
...
...
configure.ac
View file @
54168bde
...
...
@@ -2528,6 +2528,7 @@ WINE_CONFIG_DLL(dispex)
WINE_CONFIG_TEST(dlls/dispex/tests)
WINE_CONFIG_DLL(display.drv16,enable_win16)
WINE_CONFIG_DLL(dmband)
WINE_CONFIG_TEST(dlls/dmband/tests)
WINE_CONFIG_DLL(dmcompos)
WINE_CONFIG_DLL(dmime)
WINE_CONFIG_TEST(dlls/dmime/tests)
...
...
dlls/dmband/tests/Makefile.in
0 → 100644
View file @
54168bde
TESTDLL
=
dmband.dll
IMPORTS
=
oleaut32 ole32 uuid
C_SRCS
=
\
dmband.c
@MAKE_TEST_RULES@
dlls/dmband/tests/dmband.c
0 → 100644
View file @
54168bde
/*
* Unit tests for dmband functions
*
* Copyright (C) 2012 Christian Costa
*
* 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 COBJMACROS
#include <stdio.h>
#include "wine/test.h"
#include "uuids.h"
#include "ole2.h"
#include "initguid.h"
#include "dmusici.h"
#include "dmplugin.h"
DEFINE_GUID
(
IID_IDirectMusicBandTrackPrivate
,
0x53466056
,
0x6dc4
,
0x11d1
,
0xbf
,
0x7b
,
0x00
,
0xc0
,
0x4f
,
0xbf
,
0x8f
,
0xef
);
static
void
test_dmband
(
void
)
{
IDirectMusicBand
*
band
;
IUnknown
*
unknown
=
NULL
;
IDirectMusicTrack
*
track
=
NULL
;
IPersistStream
*
stream
=
NULL
;
IPersistStream
*
private
=
NULL
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicBand
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicBand
,
(
LPVOID
*
)
&
band
);
if
(
hr
!=
S_OK
)
{
skip
(
"Cannot create DirectMusicBand object (%x)
\n
"
,
hr
);
return
;
}
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicBandTrack
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
LPVOID
*
)
&
unknown
);
ok
(
hr
==
S_OK
,
"CoCreateInstance returned: %x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IDirectMusicTrack
,
(
LPVOID
*
)
&
track
);
ok
(
hr
==
S_OK
,
"QueryInterface returned: %x
\n
"
,
hr
);
todo_wine
ok
((
LPVOID
)
track
==
(
LPVOID
)
unknown
,
"Interface are not the same %p != %p
\n
"
,
stream
,
private
);
hr
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IPersistStream
,
(
LPVOID
*
)
&
stream
);
ok
(
hr
==
S_OK
,
"QueryInterface returned: %x
\n
"
,
hr
);
/* Query private interface */
hr
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IDirectMusicBandTrackPrivate
,
(
LPVOID
*
)
&
private
);
todo_wine
ok
(
hr
==
S_OK
,
"QueryInterface returned: %x
\n
"
,
hr
);
trace
(
"Interfaces: unknown = %p, track = %p, stream = %p, private = %p
\n
"
,
unknown
,
track
,
stream
,
private
);
if
(
private
)
IPersistStream_Release
(
private
);
if
(
stream
)
IPersistStream_Release
(
stream
);
if
(
track
)
IDirectMusicTrack_Release
(
track
);
if
(
unknown
)
IUnknown_Release
(
unknown
);
IDirectMusicBand_Release
(
band
);
}
START_TEST
(
dmband
)
{
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
test_dmband
();
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