Jacek Caban : user32/tests: Added PrivateExtractIcons test.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 2 09:52:31 CDT 2016
Module: wine
Branch: master
Commit: 912d7474c00f911ca4682d6273ce3ce213c156e3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=912d7474c00f911ca4682d6273ce3ce213c156e3
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Apr 29 21:00:42 2016 +0200
user32/tests: Added PrivateExtractIcons test.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/cursoricon.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/dlls/user32/tests/cursoricon.c b/dlls/user32/tests/cursoricon.c
index 90e0d84..5138c56 100644
--- a/dlls/user32/tests/cursoricon.c
+++ b/dlls/user32/tests/cursoricon.c
@@ -2517,6 +2517,25 @@ static void test_DestroyCursor(void)
ok(cursor2 != cursor, "cursor == %p, cursor2 == %p\n", cursor, cursor2);
}
+static void test_PrivateExtractIcons(void)
+{
+ HICON icon;
+ UINT ret;
+
+ static const test_icon_entries_t icon_desc[] = {{0,0,TRUE}, {16,16,TRUE}, {32,32}, {64,64,TRUE}};
+
+ create_ico_file("extract.ico", icon_desc, sizeof(icon_desc)/sizeof(*icon_desc));
+
+ ret = PrivateExtractIconsA("extract.ico", 0, 32, 32, &icon, NULL, 1, 0);
+ ok(ret == 1, "PrivateExtractIconsA returned %u\n", ret);
+ ok(icon != NULL, "icon == NULL\n");
+
+ test_icon_info(icon, 32, 32, 32, 32);
+ DestroyIcon(icon);
+
+ DeleteFileA("extract.ico");
+}
+
static void test_monochrome_icon(void)
{
HANDLE handle;
@@ -2670,6 +2689,7 @@ START_TEST(cursoricon)
test_SetCursor();
test_ShowCursor();
test_DestroyCursor();
+ test_PrivateExtractIcons();
test_monochrome_icon();
do_parent();
test_child_process();
More information about the wine-cvs
mailing list