Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
c38d5ce7
Commit
c38d5ce7
authored
12 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
atl100: Added AtlWinModuleInit tests.
parent
a650ce11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+1
-0
1 addition, 0 deletions
configure
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
dlls/atl100/tests/Makefile.in
+8
-0
8 additions, 0 deletions
dlls/atl100/tests/Makefile.in
dlls/atl100/tests/atl.c
+63
-0
63 additions, 0 deletions
dlls/atl100/tests/atl.c
with
73 additions
and
0 deletions
configure
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
0
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])
...
...
This diff is collapsed.
Click to expand it.
dlls/atl100/tests/Makefile.in
0 → 100644
+
8
−
0
View file @
c38d5ce7
TESTDLL
=
atl100.dll
IMPORTS
=
ole32 atl100
EXTRADEFS
=
-D_ATL_VER
=
_ATL_VER_100
C_SRCS
=
\
atl.c
@MAKE_TEST_RULES@
This diff is collapsed.
Click to expand it.
dlls/atl100/tests/atl.c
0 → 100644
+
63
−
0
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
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment