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
96b89623
Commit
96b89623
authored
Jun 29, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Add a couple of tests for UrlUnescape.
parent
c9969780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
url.c
dlls/shlwapi/tests/url.c
+5
-2
No files found.
dlls/shlwapi/tests/url.c
View file @
96b89623
...
...
@@ -801,8 +801,8 @@ static void test_UrlUnescape(void)
DWORD
dwEscaped
;
size_t
i
;
static
char
inplace
[]
=
"file:///C:/Program%20Files"
;
static
WCHAR
inplaceW
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
'/'
,
'/'
,
'/'
,
'C'
,
':'
,
'/'
,
'P'
,
'r'
,
'o'
,
'g'
,
'r'
,
'a'
,
'm'
,
'%'
,
'2'
,
'0
'
,
'F'
,
'i'
,
'l'
,
'e'
,
's'
,
0
};
static
const
char
expected
[]
=
"file:///C:/Program Files"
;
static
WCHAR
inplaceW
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
'/'
,
'/'
,
'/'
,
'C'
,
':'
,
'/'
,
'P'
,
'r'
,
'o'
,
'g'
,
'r'
,
'a'
,
'm'
,
'
'
,
'F'
,
'i'
,
'l'
,
'e'
,
's'
,
0
};
for
(
i
=
0
;
i
<
sizeof
(
TEST_URL_UNESCAPE
)
/
sizeof
(
TEST_URL_UNESCAPE
[
0
]);
i
++
)
{
dwEscaped
=
INTERNET_MAX_URL_LENGTH
;
...
...
@@ -821,9 +821,12 @@ static void test_UrlUnescape(void)
dwEscaped
=
sizeof
(
inplace
);
ok
(
UrlUnescapeA
(
inplace
,
NULL
,
&
dwEscaped
,
URL_UNESCAPE_INPLACE
)
==
S_OK
,
"UrlUnescapeA failed unexpectedly
\n
"
);
ok
(
!
strcmp
(
inplace
,
expected
),
"got %s expected %s
\n
"
,
inplace
,
expected
);
ok
(
dwEscaped
==
27
,
"got %d expected 27
\n
"
,
dwEscaped
);
dwEscaped
=
sizeof
(
inplaceW
);
ok
(
UrlUnescapeW
(
inplaceW
,
NULL
,
&
dwEscaped
,
URL_UNESCAPE_INPLACE
)
==
S_OK
,
"UrlUnescapeW failed unexpectedly
\n
"
);
ok
(
dwEscaped
==
50
,
"got %d expected 50
\n
"
,
dwEscaped
);
}
/* ########################### */
...
...
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