Mariusz Pluciński : shell32/tests: Add test of IKnownFolder::GetCategory for custom known folder.
Alexandre Julliard
julliard at winehq.org
Fri Jun 24 13:54:01 CDT 2011
Module: wine
Branch: master
Commit: efc1162eb7e9cea29b0e8a29f5bde8e20d804b35
URL: http://source.winehq.org/git/wine.git/?a=commit;h=efc1162eb7e9cea29b0e8a29f5bde8e20d804b35
Author: Mariusz Pluciński <vshader at gmail.com>
Date: Thu Jun 23 18:49:48 2011 +0200
shell32/tests: Add test of IKnownFolder::GetCategory for custom known folder.
---
dlls/shell32/tests/shellpath.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c
index bba7858..2240630 100644
--- a/dlls/shell32/tests/shellpath.c
+++ b/dlls/shell32/tests/shellpath.c
@@ -1175,6 +1175,12 @@ static void test_knownFolders(void)
ok(hr == S_OK, "failed to get known folder: 0x%08x\n", hr);
if(SUCCEEDED(hr))
{
+ hr = IKnownFolder_GetCategory(folder, &cat);
+ todo_wine
+ ok(hr == S_OK, "failed to get folder category: hr=0x%0x\n", hr);
+ todo_wine
+ ok(cat == KF_CATEGORY_PERUSER, "invalid category returned: %d, while %d (KF_CATEGORY_PERUSER) expected\n", cat, KF_CATEGORY_PERUSER);
+
hr = IKnownFolder_GetId(folder, &folderId);
ok(hr == S_OK, "failed to get folder id: 0x%08x\n", hr);
ok(IsEqualGUID(&folderId, &newFolderId)==TRUE, "invalid KNOWNFOLDERID returned\n");
More information about the wine-cvs
mailing list