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
3f126b4a
Commit
3f126b4a
authored
Feb 25, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Feb 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement IBackgroundCopyJob_GetType with test.
parent
7b297890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
job.c
dlls/qmgr/job.c
+7
-2
job.c
dlls/qmgr/tests/job.c
+17
-0
No files found.
dlls/qmgr/job.c
View file @
3f126b4a
...
...
@@ -133,8 +133,13 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_GetType(
IBackgroundCopyJob
*
iface
,
BG_JOB_TYPE
*
pVal
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
BackgroundCopyJobImpl
*
This
=
(
BackgroundCopyJobImpl
*
)
iface
;
if
(
!
pVal
)
return
E_INVALIDARG
;
*
pVal
=
This
->
type
;
return
S_OK
;
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_GetProgress
(
...
...
dlls/qmgr/tests/job.c
View file @
3f126b4a
...
...
@@ -83,12 +83,29 @@ static void test_GetId(void)
ok
(
memcmp
(
&
tmpId
,
&
test_jobId
,
sizeof
tmpId
)
==
0
,
"Got incorrect GUID
\n
"
);
}
/* Test that the type is properly set */
static
void
test_GetType
(
void
)
{
HRESULT
hres
;
BG_JOB_TYPE
type
;
hres
=
IBackgroundCopyJob_GetType
(
test_job
,
&
type
);
ok
(
hres
==
S_OK
,
"GetType failed: %08x
\n
"
,
hres
);
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to get type of test_job.
\n
"
);
return
;
}
ok
(
type
==
test_type
,
"Got incorrect type
\n
"
);
}
typedef
void
(
*
test_t
)(
void
);
START_TEST
(
job
)
{
static
const
test_t
tests
[]
=
{
test_GetId
,
test_GetType
,
0
};
const
test_t
*
test
;
...
...
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