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