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
daf7f3c4
Commit
daf7f3c4
authored
Mar 29, 2018
by
Stefan Leichter
Committed by
Alexandre Julliard
Mar 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wiaservc: Add some tests for SelectDeviceDlg.
Signed-off-by:
Stefan Leichter
<
sle85276@gmx.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
208fa592
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
wia.c
dlls/wiaservc/tests/wia.c
+16
-0
wiadef.h
include/wiadef.h
+6
-0
No files found.
dlls/wiaservc/tests/wia.c
View file @
daf7f3c4
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#include "objbase.h"
#include "objbase.h"
#include "initguid.h"
#include "initguid.h"
#include "wia_lh.h"
#include "wia_lh.h"
#include "sti.h"
#include "wiadef.h"
#include "wine/test.h"
#include "wine/test.h"
...
@@ -54,6 +56,19 @@ todo_wine
...
@@ -54,6 +56,19 @@ todo_wine
IEnumWIA_DEV_INFO_Release
(
devenum
);
IEnumWIA_DEV_INFO_Release
(
devenum
);
}
}
static
void
test_SelectDeviceDlg
(
void
)
{
HRESULT
hr
;
IWiaItem
*
root
;
hr
=
IWiaDevMgr_SelectDeviceDlg
(
devmanager
,
NULL
,
StiDeviceTypeDefault
,
0
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IWiaDevMgr_SelectDeviceDlg
(
devmanager
,
NULL
,
StiDeviceTypeDefault
,
0
,
NULL
,
&
root
);
todo_wine
ok
(
hr
==
S_OK
||
hr
==
WIA_S_NO_DEVICE_AVAILABLE
,
"got 0x%08x
\n
"
,
hr
);
}
START_TEST
(
wia
)
START_TEST
(
wia
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -68,6 +83,7 @@ START_TEST(wia)
...
@@ -68,6 +83,7 @@ START_TEST(wia)
}
}
test_EnumDeviceInfo
();
test_EnumDeviceInfo
();
test_SelectDeviceDlg
();
IWiaDevMgr_Release
(
devmanager
);
IWiaDevMgr_Release
(
devmanager
);
CoUninitialize
();
CoUninitialize
();
...
...
include/wiadef.h
View file @
daf7f3c4
...
@@ -20,3 +20,9 @@
...
@@ -20,3 +20,9 @@
#define WIA_DEVINFO_ENUM_ALL 0x0000000f
#define WIA_DEVINFO_ENUM_ALL 0x0000000f
#define WIA_DEVINFO_ENUM_LOCAL 0x00000010
#define WIA_DEVINFO_ENUM_LOCAL 0x00000010
#define FACILITY_WIA 33
#define BASE_VAL_WIA_ERROR 0x00000000
#define WIA_S_NO_DEVICE_AVAILABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIA, (BASE_VAL_WIA_ERROR + 21))
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