[ATL80_WINETEST]

* Import from Wine 1.7.1.

svn path=/trunk/; revision=60108
This commit is contained in:
Amine Khaldi 2013-09-14 17:43:11 +00:00
parent 246f6d54e4
commit 6c5cf5c286
4 changed files with 88 additions and 0 deletions

View file

@ -6,6 +6,7 @@ add_subdirectory(advpack)
add_subdirectory(amstream)
add_subdirectory(atl)
add_subdirectory(atl100)
add_subdirectory(atl80)
add_subdirectory(avifil32)
add_subdirectory(browseui)
add_subdirectory(cabinet)

View file

@ -0,0 +1,8 @@
add_definitions(-D_ATL_VER=_ATL_VER_80)
list(APPEND SOURCE atl.c testlist.c)
add_executable(atl80_winetest ${SOURCE})
target_link_libraries(atl80_winetest wine uuid)
set_module_type(atl80_winetest win32cui)
add_importlibs(atl80_winetest atl80 oleaut32 ole32 advapi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET atl80_winetest DESTINATION reactos/bin FOR all)

View file

@ -0,0 +1,67 @@
/*
* Copyright 2013 Qian Hong 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
#define CONST_VTABLE
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wine/atlbase.h>
#include <mshtml.h>
#include <wine/test.h>
static void test_ax_win(void)
{
BOOL ret;
WNDCLASSEXW wcex;
static const WCHAR AtlAxWin80[] = {'A','t','l','A','x','W','i','n','8','0',0};
static const WCHAR AtlAxWinLic80[] = {'A','t','l','A','x','W','i','n','L','i','c','8','0',0};
static HMODULE hinstance = 0;
ret = AtlAxWinInit();
ok(ret, "AtlAxWinInit failed\n");
hinstance = GetModuleHandleA(NULL);
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWin80, &wcex);
ok(ret, "AtlAxWin80 has not registered\n");
ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWinLic80, &wcex);
ok(ret, "AtlAxWinLic80 has not registered\n");
ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
}
START_TEST(atl)
{
CoInitialize(NULL);
test_ax_win();
CoUninitialize();
}

View file

@ -0,0 +1,12 @@
/* Automatically generated file; DO NOT EDIT!! */
#define STANDALONE
#include <wine/test.h>
extern void func_atl(void);
const struct test winetest_testlist[] =
{
{ "atl", func_atl },
{ 0, 0 }
};