Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dc484a9b
Commit
dc484a9b
authored
Mar 03, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Mar 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement IBackgroundCopyJob_GetProgress.
parent
a0fd05f0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
job.c
dlls/qmgr/job.c
+12
-3
job.c
dlls/qmgr/tests/job.c
+22
-0
No files found.
dlls/qmgr/job.c
View file @
dc484a9b
...
...
@@ -163,8 +163,17 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_GetProgress(
IBackgroundCopyJob
*
iface
,
BG_JOB_PROGRESS
*
pVal
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
BackgroundCopyJobImpl
*
This
=
(
BackgroundCopyJobImpl
*
)
iface
;
if
(
!
pVal
)
return
E_INVALIDARG
;
pVal
->
BytesTotal
=
This
->
jobProgress
.
BytesTotal
;
pVal
->
BytesTransferred
=
This
->
jobProgress
.
BytesTransferred
;
pVal
->
FilesTotal
=
This
->
jobProgress
.
FilesTotal
;
pVal
->
FilesTransferred
=
This
->
jobProgress
.
FilesTransferred
;
return
S_OK
;
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_GetTimes
(
...
...
@@ -432,7 +441,7 @@ HRESULT BackgroundCopyJobConstructor(LPCWSTR displayName, BG_JOB_TYPE type,
memcpy
(
pJobId
,
&
This
->
jobId
,
sizeof
(
GUID
));
list_init
(
&
This
->
files
);
This
->
jobProgress
.
BytesTotal
=
BG_SIZE_UNKNOWN
;
This
->
jobProgress
.
BytesTotal
=
0
;
This
->
jobProgress
.
BytesTransferred
=
0
;
This
->
jobProgress
.
FilesTotal
=
0
;
This
->
jobProgress
.
FilesTransferred
=
0
;
...
...
dlls/qmgr/tests/job.c
View file @
dc484a9b
...
...
@@ -218,6 +218,27 @@ static void test_EnumFiles(void)
ok
(
res
==
0
,
"Bad ref count on release: %u
\n
"
,
res
);
}
/* Test getting job progress */
static
void
test_GetProgress_preTransfer
(
void
)
{
HRESULT
hres
;
BG_JOB_PROGRESS
progress
;
hres
=
IBackgroundCopyJob_GetProgress
(
test_job
,
&
progress
);
ok
(
hres
==
S_OK
,
"GetProgress failed: 0x%08x
\n
"
,
hres
);
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to get job progress
\n
"
);
teardown
();
return
;
}
ok
(
progress
.
BytesTotal
==
0
,
"Incorrect BytesTotal: %llu
\n
"
,
progress
.
BytesTotal
);
ok
(
progress
.
BytesTransferred
==
0
,
"Incorrect BytesTransferred: %llu
\n
"
,
progress
.
BytesTransferred
);
ok
(
progress
.
FilesTotal
==
0
,
"Incorrect FilesTotal: %u
\n
"
,
progress
.
FilesTotal
);
ok
(
progress
.
FilesTransferred
==
0
,
"Incorrect FilesTransferred %u
\n
"
,
progress
.
FilesTransferred
);
}
typedef
void
(
*
test_t
)(
void
);
START_TEST
(
job
)
...
...
@@ -228,6 +249,7 @@ START_TEST(job)
test_GetName
,
test_AddFile
,
test_EnumFiles
,
test_GetProgress_preTransfer
,
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