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
edf0635e
Commit
edf0635e
authored
Jan 14, 2024
by
Bernhard Übelacker
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wing32: Add tests.
parent
fad3e416
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
0 deletions
+72
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/wing32/Makefile.in
+1
-0
Makefile.in
dlls/wing32/tests/Makefile.in
+5
-0
wing32.c
dlls/wing32/tests/wing32.c
+64
-0
No files found.
configure
View file @
edf0635e
...
...
@@ -22440,6 +22440,7 @@ wine_fn_config_makefile dlls/winex11.drv enable_winex11_drv
wine_fn_config_makefile dlls/winexinput.sys enable_winexinput_sys
wine_fn_config_makefile dlls/wing.dll16 enable_win16
wine_fn_config_makefile dlls/wing32 enable_wing32
wine_fn_config_makefile dlls/wing32/tests enable_tests
wine_fn_config_makefile dlls/winhttp enable_winhttp
wine_fn_config_makefile dlls/winhttp/tests enable_tests
wine_fn_config_makefile dlls/wininet enable_wininet
...
...
configure.ac
View file @
edf0635e
...
...
@@ -3257,6 +3257,7 @@ WINE_CONFIG_MAKEFILE(dlls/winex11.drv)
WINE_CONFIG_MAKEFILE(dlls/winexinput.sys)
WINE_CONFIG_MAKEFILE(dlls/wing.dll16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/wing32)
WINE_CONFIG_MAKEFILE(dlls/wing32/tests)
WINE_CONFIG_MAKEFILE(dlls/winhttp)
WINE_CONFIG_MAKEFILE(dlls/winhttp/tests)
WINE_CONFIG_MAKEFILE(dlls/wininet)
...
...
dlls/wing32/Makefile.in
View file @
edf0635e
MODULE
=
wing32.dll
IMPORTLIB
=
wing32
IMPORTS
=
user32 gdi32
SOURCES
=
\
...
...
dlls/wing32/tests/Makefile.in
0 → 100644
View file @
edf0635e
TESTDLL
=
wing32.dll
IMPORTS
=
wing32 gdi32
SOURCES
=
\
wing32.c
dlls/wing32/tests/wing32.c
0 → 100644
View file @
edf0635e
/*
* Unit test suite for wing32 functions
*
* Copyright 2024 Bernhard Übelacker
*
* 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 "wine/test.h"
HDC
WINAPI
WinGCreateDC
(
void
);
HBITMAP
WINAPI
WinGCreateBitmap
(
HDC
,
BITMAPINFO
*
,
void
**
);
void
*
WINAPI
WinGGetDIBPointer
(
HBITMAP
,
BITMAPINFO
*
);
static
void
test_WinGGetDIBPointer
(
void
)
{
HDC
dc
;
BITMAPINFO
bmi
;
void
*
bits
;
HBITMAP
bmp
;
void
*
dib
;
dc
=
WinGCreateDC
();
ok
(
dc
!=
NULL
,
"WinGCreateDC failed
\n
"
);
memset
(
&
bmi
,
0
,
sizeof
(
bmi
));
bmi
.
bmiHeader
.
biSize
=
sizeof
(
bmi
.
bmiHeader
);
bmi
.
bmiHeader
.
biWidth
=
1
;
bmi
.
bmiHeader
.
biHeight
=
1
;
bmi
.
bmiHeader
.
biPlanes
=
1
;
bmi
.
bmiHeader
.
biBitCount
=
24
;
bmi
.
bmiHeader
.
biCompression
=
BI_RGB
;
bmi
.
bmiHeader
.
biSizeImage
=
0
;
bmp
=
WinGCreateBitmap
(
dc
,
&
bmi
,
&
bits
);
ok
(
bmp
!=
NULL
,
"WinGCreateBitmap failed
\n
"
);
dib
=
WinGGetDIBPointer
(
NULL
,
NULL
);
ok
(
dib
==
NULL
,
"WinGGetDIBPointer returned unexpected value %p
\n
"
,
dib
);
dib
=
WinGGetDIBPointer
(
bmp
,
&
bmi
);
ok
(
dib
!=
NULL
,
"WinGGetDIBPointer failed
\n
"
);
DeleteObject
(
bmp
);
DeleteDC
(
dc
);
}
START_TEST
(
wing32
)
{
test_WinGGetDIBPointer
();
}
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