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
2f992290
Commit
2f992290
authored
Feb 18, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atlthunk/tests: Add tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89ef868e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
0 deletions
+70
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/atlthunk/tests/Makefile.in
+6
-0
atlthunk.c
dlls/atlthunk/tests/atlthunk.c
+62
-0
No files found.
configure
View file @
2f992290
...
...
@@ -19359,6 +19359,7 @@ wine_fn_config_makefile dlls/atl80 enable_atl80
wine_fn_config_makefile dlls/atl80/tests enable_tests
wine_fn_config_makefile dlls/atl90 enable_atl90
wine_fn_config_makefile dlls/atlthunk enable_atlthunk
wine_fn_config_makefile dlls/atlthunk/tests enable_tests
wine_fn_config_makefile dlls/atmlib enable_atmlib
wine_fn_config_makefile dlls/authz enable_authz
wine_fn_config_makefile dlls/avicap32 enable_avicap32
...
...
configure.ac
View file @
2f992290
...
...
@@ -3094,6 +3094,7 @@ WINE_CONFIG_MAKEFILE(dlls/atl80)
WINE_CONFIG_MAKEFILE(dlls/atl80/tests)
WINE_CONFIG_MAKEFILE(dlls/atl90)
WINE_CONFIG_MAKEFILE(dlls/atlthunk)
WINE_CONFIG_MAKEFILE(dlls/atlthunk/tests)
WINE_CONFIG_MAKEFILE(dlls/atmlib)
WINE_CONFIG_MAKEFILE(dlls/authz)
WINE_CONFIG_MAKEFILE(dlls/avicap32)
...
...
dlls/atlthunk/tests/Makefile.in
0 → 100644
View file @
2f992290
TESTDLL
=
atlthunk.dll
IMPORTS
=
atlthunk
C_SRCS
=
\
atlthunk.c
dlls/atlthunk/tests/atlthunk.c
0 → 100644
View file @
2f992290
/*
* Copyright 2019 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 "windows.h"
#include "atlthunk.h"
#include "wine/test.h"
static
LRESULT
WINAPI
test_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
ok
(
msg
==
1
,
"msg = %u
\n
"
,
msg
);
ok
(
wparam
==
2
,
"wparam = %lu
\n
"
,
wparam
);
ok
(
lparam
==
3
,
"lparam = %lu
\n
"
,
lparam
);
return
(
LRESULT
)
hwnd
|
0x1000
;
}
static
void
test_thunk_proc
(
void
)
{
AtlThunkData_t
*
thunks
[
513
];
WNDPROC
thunk_proc
;
LRESULT
res
;
int
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
thunks
);
i
++
)
{
thunks
[
i
]
=
AtlThunk_AllocateData
();
ok
(
thunks
[
i
]
!=
NULL
,
"thunk = NULL
\n
"
);
AtlThunk_InitData
(
thunks
[
i
],
test_proc
,
i
);
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
thunks
);
i
++
)
{
thunk_proc
=
AtlThunk_DataToCode
(
thunks
[
i
]);
ok
(
thunk_proc
!=
NULL
,
"thunk_proc = NULL
\n
"
);
res
=
thunk_proc
((
HWND
)
0x1234
,
1
,
2
,
3
);
ok
(
res
==
(
i
|
0x1000
),
"res = %lu
\n
"
,
res
);
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
thunks
);
i
++
)
AtlThunk_FreeData
(
thunks
[
i
]);
}
START_TEST
(
atlthunk
)
{
test_thunk_proc
();
}
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