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
27421285
Commit
27421285
authored
Feb 27, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Feb 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement IBackgroundCopyJob_EnumFiles.
parent
174b7b51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
job.c
dlls/qmgr/job.c
+3
-3
job.c
dlls/qmgr/tests/job.c
+28
-0
No files found.
dlls/qmgr/job.c
View file @
27421285
...
...
@@ -103,10 +103,10 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_AddFile(
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_EnumFiles
(
IBackgroundCopyJob
*
iface
,
IEnumBackgroundCopyFiles
**
pEnum
)
IEnumBackgroundCopyFiles
**
p
p
Enum
)
{
FIXME
(
"Not implemented
\n
"
);
return
E
_NOTIMPL
;
TRACE
(
"
\n
"
);
return
E
numBackgroundCopyFilesConstructor
((
LPVOID
*
)
ppEnum
,
iface
)
;
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_Suspend
(
...
...
dlls/qmgr/tests/job.c
View file @
27421285
...
...
@@ -191,6 +191,33 @@ static void test_AddFile(void)
ok
(
hres
==
S_OK
,
"Second call to AddFile failed: 0x%08x
\n
"
,
hres
);
}
/* Test creation of a job enumerator */
static
void
test_EnumFiles
(
void
)
{
HRESULT
hres
;
IEnumBackgroundCopyFiles
*
enumFiles
;
ULONG
res
;
hres
=
IBackgroundCopyJob_AddFile
(
test_job
,
test_remotePathA
,
test_localPathA
);
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to add file to job
\n
"
);
return
;
}
hres
=
IBackgroundCopyJob_EnumFiles
(
test_job
,
&
enumFiles
);
ok
(
hres
==
S_OK
,
"EnumFiles failed: 0x%08x
\n
"
,
hres
);
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to create file enumerator.
\n
"
);
return
;
}
res
=
IEnumBackgroundCopyFiles_Release
(
enumFiles
);
ok
(
res
==
0
,
"Bad ref count on release: %u
\n
"
,
res
);
}
typedef
void
(
*
test_t
)(
void
);
START_TEST
(
job
)
...
...
@@ -200,6 +227,7 @@ START_TEST(job)
test_GetType
,
test_GetName
,
test_AddFile
,
test_EnumFiles
,
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