Author: akhaldi Date: Sat Sep 14 17:43:11 2013 New Revision: 60108
URL: http://svn.reactos.org/svn/reactos?rev=60108&view=rev Log: [ATL80_WINETEST] * Import from Wine 1.7.1.
Added: trunk/rostests/winetests/atl80/ trunk/rostests/winetests/atl80/CMakeLists.txt (with props) trunk/rostests/winetests/atl80/atl.c (with props) trunk/rostests/winetests/atl80/testlist.c (with props) Modified: trunk/rostests/winetests/CMakeLists.txt
Modified: trunk/rostests/winetests/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/CMakeLists.txt?r... ============================================================================== --- trunk/rostests/winetests/CMakeLists.txt [iso-8859-1] (original) +++ trunk/rostests/winetests/CMakeLists.txt [iso-8859-1] Sat Sep 14 17:43:11 2013 @@ -6,6 +6,7 @@ add_subdirectory(amstream) add_subdirectory(atl) add_subdirectory(atl100) +add_subdirectory(atl80) add_subdirectory(avifil32) add_subdirectory(browseui) add_subdirectory(cabinet)
Added: trunk/rostests/winetests/atl80/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/atl80/CMakeLists... ============================================================================== --- trunk/rostests/winetests/atl80/CMakeLists.txt (added) +++ trunk/rostests/winetests/atl80/CMakeLists.txt [iso-8859-1] Sat Sep 14 17:43:11 2013 @@ -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)
Propchange: trunk/rostests/winetests/atl80/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/rostests/winetests/atl80/atl.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/atl80/atl.c?rev=... ============================================================================== --- trunk/rostests/winetests/atl80/atl.c (added) +++ trunk/rostests/winetests/atl80/atl.c [iso-8859-1] Sat Sep 14 17:43:11 2013 @@ -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(); +}
Propchange: trunk/rostests/winetests/atl80/atl.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/rostests/winetests/atl80/testlist.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/atl80/testlist.c... ============================================================================== --- trunk/rostests/winetests/atl80/testlist.c (added) +++ trunk/rostests/winetests/atl80/testlist.c [iso-8859-1] Sat Sep 14 17:43:11 2013 @@ -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 } +};
Propchange: trunk/rostests/winetests/atl80/testlist.c ------------------------------------------------------------------------------ svn:eol-style = native