Qian Hong : atl100/tests: Added class name test for AtlAxWinInit.

Alexandre Julliard julliard at winehq.org
Mon Mar 25 14:19:39 CDT 2013


Module: wine
Branch: master
Commit: c02bf8817e04cee335003527668ed954d24e1def
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c02bf8817e04cee335003527668ed954d24e1def

Author: Qian Hong <qhong at codeweavers.com>
Date:   Fri Mar 15 22:11:55 2013 +0800

atl100/tests: Added class name test for AtlAxWinInit.

---

 dlls/atl100/tests/Makefile.in |    2 +-
 dlls/atl100/tests/atl.c       |   29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/dlls/atl100/tests/Makefile.in b/dlls/atl100/tests/Makefile.in
index 0b8353e..7ca6123 100644
--- a/dlls/atl100/tests/Makefile.in
+++ b/dlls/atl100/tests/Makefile.in
@@ -1,5 +1,5 @@
 TESTDLL   = atl100.dll
-IMPORTS   = uuid atl100 oleaut32 ole32 advapi32
+IMPORTS   = uuid atl100 oleaut32 ole32 advapi32 user32
 EXTRADEFS = -D_ATL_VER=_ATL_VER_100
 
 C_SRCS = \
diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index e7c3703..40d8583 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -22,6 +22,10 @@
 #define COBJMACROS
 #define CONST_VTABLE
 
+#include <windef.h>
+#include <winbase.h>
+#include <winuser.h>
+
 #include <atlbase.h>
 #include <mshtml.h>
 
@@ -562,6 +566,30 @@ static void test_source_iface(void)
     ok(maj_ver == 4 && min_ver == 0, "ver = %d.%d\n", maj_ver, min_ver);
 }
 
+static void test_ax_win(void)
+{
+    BOOL ret;
+    WNDCLASSEXW wcex;
+    static const WCHAR AtlAxWin100[] = {'A','t','l','A','x','W','i','n','1','0','0',0};
+    static const WCHAR AtlAxWinLic100[] = {'A','t','l','A','x','W','i','n','L','i','c','1','0','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, AtlAxWin100, &wcex);
+    todo_wine ok(ret, "AtlAxWin100 has not registered\n");
+
+    memset(&wcex, 0, sizeof(wcex));
+    wcex.cbSize = sizeof(wcex);
+    ret = GetClassInfoExW(hinstance, AtlAxWinLic100, &wcex);
+    todo_wine ok(ret, "AtlAxWinLic100 has not registered\n");
+}
+
 START_TEST(atl)
 {
     CoInitialize(NULL);
@@ -571,6 +599,7 @@ START_TEST(atl)
     test_typelib();
     test_cp();
     test_source_iface();
+    test_ax_win();
 
     CoUninitialize();
 }




More information about the wine-cvs mailing list