atl100: Added AtlWinModuleInit tests.
This commit is contained in:
parent
a650ce1104
commit
c38d5ce73c
|
@ -15356,6 +15356,7 @@ wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
|
||||||
wine_fn_config_dll atl enable_atl implib
|
wine_fn_config_dll atl enable_atl implib
|
||||||
wine_fn_config_test dlls/atl/tests atl_test
|
wine_fn_config_test dlls/atl/tests atl_test
|
||||||
wine_fn_config_dll atl100 enable_atl100 implib
|
wine_fn_config_dll atl100 enable_atl100 implib
|
||||||
|
wine_fn_config_test dlls/atl100/tests atl100_test
|
||||||
wine_fn_config_dll atl80 enable_atl80
|
wine_fn_config_dll atl80 enable_atl80
|
||||||
wine_fn_config_dll authz enable_authz
|
wine_fn_config_dll authz enable_authz
|
||||||
wine_fn_config_dll avicap32 enable_avicap32 implib
|
wine_fn_config_dll avicap32 enable_avicap32 implib
|
||||||
|
|
|
@ -2535,6 +2535,7 @@ WINE_CONFIG_DLL(appwiz.cpl,,[po])
|
||||||
WINE_CONFIG_DLL(atl,,[implib])
|
WINE_CONFIG_DLL(atl,,[implib])
|
||||||
WINE_CONFIG_TEST(dlls/atl/tests)
|
WINE_CONFIG_TEST(dlls/atl/tests)
|
||||||
WINE_CONFIG_DLL(atl100,,[implib])
|
WINE_CONFIG_DLL(atl100,,[implib])
|
||||||
|
WINE_CONFIG_TEST(dlls/atl100/tests)
|
||||||
WINE_CONFIG_DLL(atl80)
|
WINE_CONFIG_DLL(atl80)
|
||||||
WINE_CONFIG_DLL(authz)
|
WINE_CONFIG_DLL(authz)
|
||||||
WINE_CONFIG_DLL(avicap32,,[implib])
|
WINE_CONFIG_DLL(avicap32,,[implib])
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
TESTDLL = atl100.dll
|
||||||
|
IMPORTS = ole32 atl100
|
||||||
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_100
|
||||||
|
|
||||||
|
C_SRCS = \
|
||||||
|
atl.c
|
||||||
|
|
||||||
|
@MAKE_TEST_RULES@
|
|
@ -0,0 +1,63 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2012 Jacek Caban for CodeWeavers
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define COBJMACROS
|
||||||
|
|
||||||
|
#include <atlbase.h>
|
||||||
|
|
||||||
|
#include <wine/test.h>
|
||||||
|
|
||||||
|
static void test_winmodule(void)
|
||||||
|
{
|
||||||
|
_ATL_WIN_MODULE winmod;
|
||||||
|
HRESULT hres;
|
||||||
|
|
||||||
|
winmod.cbSize = 0xdeadbeef;
|
||||||
|
hres = AtlWinModuleInit(&winmod);
|
||||||
|
ok(hres == E_INVALIDARG, "AtlWinModuleInit failed: %08x\n", hres);
|
||||||
|
|
||||||
|
winmod.cbSize = sizeof(winmod);
|
||||||
|
winmod.m_pCreateWndList = (void*)0xdeadbeef;
|
||||||
|
winmod.m_csWindowCreate.LockCount = 0xdeadbeef;
|
||||||
|
winmod.m_rgWindowClassAtoms.m_aT = (void*)0xdeadbeef;
|
||||||
|
winmod.m_rgWindowClassAtoms.m_nSize = 0xdeadbeef;
|
||||||
|
winmod.m_rgWindowClassAtoms.m_nAllocSize = 0xdeadbeef;
|
||||||
|
hres = AtlWinModuleInit(&winmod);
|
||||||
|
ok(hres == S_OK, "AtlWinModuleInit failed: %08x\n", hres);
|
||||||
|
ok(!winmod.m_pCreateWndList, "winmod.m_pCreateWndList = %p\n", winmod.m_pCreateWndList);
|
||||||
|
ok(winmod.m_csWindowCreate.LockCount == -1, "winmod.m_csWindowCreate.LockCount = %d\n",
|
||||||
|
winmod.m_csWindowCreate.LockCount);
|
||||||
|
ok(winmod.m_rgWindowClassAtoms.m_aT == (void*)0xdeadbeef, "winmod.m_rgWindowClassAtoms.m_aT = %p\n",
|
||||||
|
winmod.m_rgWindowClassAtoms.m_aT);
|
||||||
|
ok(winmod.m_rgWindowClassAtoms.m_nSize == 0xdeadbeef, "winmod.m_rgWindowClassAtoms.m_nSize = %d\n",
|
||||||
|
winmod.m_rgWindowClassAtoms.m_nSize);
|
||||||
|
ok(winmod.m_rgWindowClassAtoms.m_nAllocSize == 0xdeadbeef, "winmod.m_rgWindowClassAtoms.m_nAllocSize = %d\n",
|
||||||
|
winmod.m_rgWindowClassAtoms.m_nAllocSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
START_TEST(atl)
|
||||||
|
{
|
||||||
|
CoInitialize(NULL);
|
||||||
|
|
||||||
|
test_winmodule();
|
||||||
|
|
||||||
|
CoUninitialize();
|
||||||
|
}
|
Loading…
Reference in New Issue