gameux/tests: Add test of IGameExplorer creation.

This commit is contained in:
Mariusz Pluciński 2010-08-03 11:58:01 +02:00 committed by Alexandre Julliard
parent f74a563120
commit cb886f49be
4 changed files with 75 additions and 0 deletions

1
configure vendored
View File

@ -14511,6 +14511,7 @@ wine_fn_config_dll fusion enable_fusion
wine_fn_config_test dlls/fusion/tests fusion_test
wine_fn_config_dll fwpuclnt enable_fwpuclnt
wine_fn_config_dll gameux enable_gameux
wine_fn_config_test dlls/gameux/tests gameux_test
wine_fn_config_dll gdi.exe16 enable_win16
wine_fn_config_dll gdi32 enable_gdi32 gdi32
wine_fn_config_test dlls/gdi32/tests gdi32_test

View File

@ -2367,6 +2367,7 @@ WINE_CONFIG_DLL(fusion)
WINE_CONFIG_TEST(dlls/fusion/tests)
WINE_CONFIG_DLL(fwpuclnt)
WINE_CONFIG_DLL(gameux)
WINE_CONFIG_TEST(dlls/gameux/tests)
WINE_CONFIG_DLL(gdi.exe16,enable_win16)
WINE_CONFIG_DLL(gdi32,,[gdi32])
WINE_CONFIG_TEST(dlls/gdi32/tests)

View File

@ -0,0 +1,12 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../../..
SRCDIR = @srcdir@
VPATH = @srcdir@
TESTDLL = gameux.dll
IMPORTS = ole32
C_SRCS = \
gameexplorer.c
@MAKE_TEST_RULES@

View File

@ -0,0 +1,61 @@
/*
* IGameExplorer 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 "initguid.h"
#include "windows.h"
#include "ole2.h"
#include "objsafe.h"
#include "objbase.h"
#include "gameux.h"
#include "wine/test.h"
static void test_create( void )
{
HRESULT hr;
IGameExplorer* ge = NULL;
/* interface available up from Vista */
hr = CoCreateInstance( &CLSID_GameExplorer, NULL, CLSCTX_INPROC_SERVER, &IID_IGameExplorer, (LPVOID*)&ge);
if(ge)
{
ok(hr == S_OK, "IGameExplorer creating failed (result false)\n");
IGameExplorer_Release(ge);
}
else
win_skip("IGameExplorer cannot be created\n");
}
START_TEST(gameexplorer)
{
HRESULT r;
r = CoInitialize( NULL );
ok( r == S_OK, "failed to init COM\n");
test_create();
CoUninitialize();
}