Module: wine Branch: master Commit: 91be02c085278ac21d887023bcd8318a5a9398be URL: http://source.winehq.org/git/wine.git/?a=commit;h=91be02c085278ac21d887023bc...
Author: Nikolay Sivov bunglehead@gmail.com Date: Thu Jul 3 10:42:08 2008 +0400
gdiplus: Added file for PathIterator testing.
---
dlls/gdiplus/tests/Makefile.in | 1 + dlls/gdiplus/tests/pathiterator.c | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/Makefile.in b/dlls/gdiplus/tests/Makefile.in index fbe4e89..c5f8504 100644 --- a/dlls/gdiplus/tests/Makefile.in +++ b/dlls/gdiplus/tests/Makefile.in @@ -12,6 +12,7 @@ CTESTS = \ graphicspath.c \ image.c \ matrix.c \ + pathiterator.c \ pen.c \ region.c \ stringformat.c diff --git a/dlls/gdiplus/tests/pathiterator.c b/dlls/gdiplus/tests/pathiterator.c new file mode 100644 index 0000000..aa41e09 --- /dev/null +++ b/dlls/gdiplus/tests/pathiterator.c @@ -0,0 +1,40 @@ +/* + * Unit test suite for pathiterator + * + * Copyright (C) 2008 Nikolay Sivov + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "windows.h" +#include "gdiplus.h" +#include "wine/test.h" + +#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got) + +START_TEST(pathiterator) +{ + struct GdiplusStartupInput gdiplusStartupInput; + ULONG_PTR gdiplusToken; + + gdiplusStartupInput.GdiplusVersion = 1; + gdiplusStartupInput.DebugEventCallback = NULL; + gdiplusStartupInput.SuppressBackgroundThread = 0; + gdiplusStartupInput.SuppressExternalCodecs = 0; + + GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); + + GdiplusShutdown(gdiplusToken); +}