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
6928615d
Commit
6928615d
authored
Apr 22, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add some tests to exercise the enumerator.
parent
1556d831
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
clipboard.c
dlls/ole32/tests/clipboard.c
+28
-0
No files found.
dlls/ole32/tests/clipboard.c
View file @
6928615d
...
...
@@ -593,6 +593,34 @@ static void test_enum_fmtetc(IDataObject *src)
hr
=
IEnumFORMATETC_Reset
(
enum_fmt
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
if
(
src
)
/* Exercise the enumerator a bit */
{
IEnumFORMATETC
*
clone
;
FORMATETC
third_fmt
;
hr
=
IEnumFORMATETC_Next
(
enum_fmt
,
1
,
&
third_fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IEnumFORMATETC_Next
(
enum_fmt
,
1
,
&
third_fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IEnumFORMATETC_Next
(
enum_fmt
,
1
,
&
third_fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IEnumFORMATETC_Reset
(
enum_fmt
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IEnumFORMATETC_Skip
(
enum_fmt
,
2
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IEnumFORMATETC_Clone
(
enum_fmt
,
&
clone
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IEnumFORMATETC_Next
(
enum_fmt
,
1
,
&
fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
fmt
.
cfFormat
==
third_fmt
.
cfFormat
,
"formats don't match
\n
"
);
hr
=
IEnumFORMATETC_Next
(
clone
,
1
,
&
fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
fmt
.
cfFormat
==
third_fmt
.
cfFormat
,
"formats don't match
\n
"
);
IEnumFORMATETC_Release
(
clone
);
}
IEnumFORMATETC_Release
(
enum_fmt
);
IDataObject_Release
(
data
);
}
...
...
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