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
152fbc1c
Commit
152fbc1c
authored
Aug 16, 2010
by
Mariusz Pluciński
Committed by
Alexandre Julliard
Aug 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux/tests: Add test of IGameStatisticsMgr creation.
parent
fe65b83a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletion
+55
-1
Makefile.in
dlls/gameux/tests/Makefile.in
+2
-1
gamestatistics.c
dlls/gameux/tests/gamestatistics.c
+53
-0
No files found.
dlls/gameux/tests/Makefile.in
View file @
152fbc1c
...
@@ -6,7 +6,8 @@ TESTDLL = gameux.dll
...
@@ -6,7 +6,8 @@ TESTDLL = gameux.dll
IMPORTS
=
ole32
IMPORTS
=
ole32
C_SRCS
=
\
C_SRCS
=
\
gameexplorer.c
gameexplorer.c
\
gamestatistics.c
@MAKE_TEST_RULES@
@MAKE_TEST_RULES@
dlls/gameux/tests/gamestatistics.c
0 → 100644
View file @
152fbc1c
/*
* IGameStatisticsMgr tests
*
* Copyright (C) 2010 Mariusz Pluciński
*
* 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 "gameux.h"
#include "wine/test.h"
static
void
test_create
(
void
)
{
HRESULT
hr
;
IGameStatisticsMgr
*
gsm
=
NULL
;
/* interface available up from Win7 */
hr
=
CoCreateInstance
(
&
CLSID_GameStatistics
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IGameStatisticsMgr
,
(
LPVOID
*
)
&
gsm
);
if
(
gsm
)
{
ok
(
hr
==
S_OK
,
"IGameStatisticsMgr creating failed (result: 0x%08x)
\n
"
,
hr
);
IGameStatisticsMgr_Release
(
gsm
);
}
else
win_skip
(
"IGameStatisticsMgr cannot be created
\n
"
);
}
START_TEST
(
gamestatistics
)
{
HRESULT
hr
;
hr
=
CoInitialize
(
NULL
);
ok
(
hr
==
S_OK
,
"failed to init COM
\n
"
);
test_create
();
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