Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c38d5ce7
Commit
c38d5ce7
authored
Dec 18, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl100: Added AtlWinModuleInit tests.
parent
a650ce11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
0 deletions
+73
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/atl100/tests/Makefile.in
+8
-0
atl.c
dlls/atl100/tests/atl.c
+63
-0
No files found.
configure
View file @
c38d5ce7
...
...
@@ -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_test dlls/atl/tests atl_test
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 authz enable_authz
wine_fn_config_dll avicap32 enable_avicap32 implib
...
...
configure.ac
View file @
c38d5ce7
...
...
@@ -2535,6 +2535,7 @@ WINE_CONFIG_DLL(appwiz.cpl,,[po])
WINE_CONFIG_DLL(atl,,[implib])
WINE_CONFIG_TEST(dlls/atl/tests)
WINE_CONFIG_DLL(atl100,,[implib])
WINE_CONFIG_TEST(dlls/atl100/tests)
WINE_CONFIG_DLL(atl80)
WINE_CONFIG_DLL(authz)
WINE_CONFIG_DLL(avicap32,,[implib])
...
...
dlls/atl100/tests/Makefile.in
0 → 100644
View file @
c38d5ce7
TESTDLL
=
atl100.dll
IMPORTS
=
ole32 atl100
EXTRADEFS
=
-D_ATL_VER
=
_ATL_VER_100
C_SRCS
=
\
atl.c
@MAKE_TEST_RULES@
dlls/atl100/tests/atl.c
0 → 100644
View file @
c38d5ce7
/*
* 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
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment