From 421dcef47997cb281fc0414b2ef0714a3fb19e0f Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Mariusz=20Pluci=C5=84ski?= Date: Mon, 7 Jun 2010 23:02:49 +0200 Subject: gameux/tests: Add creating test for IGameStatisticsMgr --- dlls/gameux/tests/Makefile.in | 3 +- dlls/gameux/tests/gamestatisticsmgr.c | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletions(-) create mode 100644 dlls/gameux/tests/gamestatisticsmgr.c diff --git a/dlls/gameux/tests/Makefile.in b/dlls/gameux/tests/Makefile.in index c31fb24..b7d71f4 100644 --- a/dlls/gameux/tests/Makefile.in +++ b/dlls/gameux/tests/Makefile.in @@ -6,7 +6,8 @@ TESTDLL = gameux.dll IMPORTS = oleaut32 ole32 user32 kernel32 C_SRCS = \ - gameexplorer.c + gameexplorer.c \ + gamestatisticsmgr.c @MAKE_TEST_RULES@ diff --git a/dlls/gameux/tests/gamestatisticsmgr.c b/dlls/gameux/tests/gamestatisticsmgr.c new file mode 100644 index 0000000..4804798 --- /dev/null +++ b/dlls/gameux/tests/gamestatisticsmgr.c @@ -0,0 +1,48 @@ +/* + * 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 r; + + IGameStatisticsMgr* ge = NULL; + + r = CoCreateInstance( &CLSID_GameStatistics, NULL, CLSCTX_INPROC_SERVER, &IID_IGameStatisticsMgr, (LPVOID*)&ge); + + ok( r == S_OK, "IGameStatisticsMgr creating failed (result false)\n"); + ok( ge != NULL, "IGameStatisticsMgr creating failed (NULL interface pointer)\n"); +} + +START_TEST(gamestatisticsmgr) +{ + HRESULT r; + + r = CoInitialize( NULL ); + ok( r == S_OK, "failed to init COM\n"); + + test_create(); + + CoUninitialize(); +} -- 1.6.2.5