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
136a4ebb
Commit
136a4ebb
authored
Mar 14, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Mar 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement IBackgroundCopyJob_AddFileSet.
parent
e84b8b23
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
job.c
dlls/qmgr/job.c
+9
-2
job.c
dlls/qmgr/tests/job.c
+14
-0
No files found.
dlls/qmgr/job.c
View file @
136a4ebb
...
@@ -77,8 +77,15 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_AddFileSet(
...
@@ -77,8 +77,15 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_AddFileSet(
ULONG
cFileCount
,
ULONG
cFileCount
,
BG_FILE_INFO
*
pFileSet
)
BG_FILE_INFO
*
pFileSet
)
{
{
FIXME
(
"Not implemented
\n
"
);
ULONG
i
;
return
E_NOTIMPL
;
for
(
i
=
0
;
i
<
cFileCount
;
++
i
)
{
HRESULT
hr
=
IBackgroundCopyJob_AddFile
(
iface
,
pFileSet
[
i
].
RemoteName
,
pFileSet
[
i
].
LocalName
);
if
(
!
SUCCEEDED
(
hr
))
return
hr
;
}
return
S_OK
;
}
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_AddFile
(
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_AddFile
(
...
...
dlls/qmgr/tests/job.c
View file @
136a4ebb
...
@@ -191,6 +191,19 @@ static void test_AddFile(void)
...
@@ -191,6 +191,19 @@ static void test_AddFile(void)
ok
(
hres
==
S_OK
,
"Second call to AddFile failed: 0x%08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"Second call to AddFile failed: 0x%08x
\n
"
,
hres
);
}
}
/* Test adding a set of files */
static
void
test_AddFileSet
(
void
)
{
HRESULT
hres
;
BG_FILE_INFO
files
[
2
]
=
{
{
test_remotePathA
,
test_localPathA
},
{
test_remotePathB
,
test_localPathB
}
};
hres
=
IBackgroundCopyJob_AddFileSet
(
test_job
,
2
,
files
);
ok
(
hres
==
S_OK
,
"AddFileSet failed: 0x%08x
\n
"
,
hres
);
}
/* Test creation of a job enumerator */
/* Test creation of a job enumerator */
static
void
test_EnumFiles
(
void
)
static
void
test_EnumFiles
(
void
)
{
{
...
@@ -466,6 +479,7 @@ START_TEST(job)
...
@@ -466,6 +479,7 @@ START_TEST(job)
test_GetType
,
test_GetType
,
test_GetName
,
test_GetName
,
test_AddFile
,
test_AddFile
,
test_AddFileSet
,
test_EnumFiles
,
test_EnumFiles
,
test_GetProgress_preTransfer
,
test_GetProgress_preTransfer
,
test_GetState
,
test_GetState
,
...
...
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