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
d93ad022
Commit
d93ad022
authored
Jul 03, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Construction/desctruction tests for PathIterator.
parent
91be02c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
pathiterator.c
dlls/gdiplus/tests/pathiterator.c
+29
-0
No files found.
dlls/gdiplus/tests/pathiterator.c
View file @
d93ad022
...
@@ -24,6 +24,33 @@
...
@@ -24,6 +24,33 @@
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
static
void
test_constructor_destructor
(
void
)
{
GpPath
*
path
;
GpPathIterator
*
iter
;
GpStatus
stat
;
GdipCreatePath
(
FillModeAlternate
,
&
path
);
GdipAddPathRectangle
(
path
,
5
.
0
,
5
.
0
,
100
.
0
,
50
.
0
);
/* NULL args */
stat
=
GdipCreatePathIter
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreatePathIter
(
&
iter
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreatePathIter
(
NULL
,
path
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipDeletePathIter
(
NULL
);
expect
(
InvalidParameter
,
stat
);
/* valid args */
stat
=
GdipCreatePathIter
(
&
iter
,
path
);
expect
(
Ok
,
stat
);
GdipDeletePathIter
(
iter
);
GdipDeletePath
(
path
);
}
START_TEST
(
pathiterator
)
START_TEST
(
pathiterator
)
{
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
@@ -36,5 +63,7 @@ START_TEST(pathiterator)
...
@@ -36,5 +63,7 @@ START_TEST(pathiterator)
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
test_constructor_destructor
();
GdiplusShutdown
(
gdiplusToken
);
GdiplusShutdown
(
gdiplusToken
);
}
}
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