Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f1dc1bb0
Commit
f1dc1bb0
authored
Jun 29, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Add a test for InternetCanonicalizeUrl.
parent
6796c880
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
internet.c
dlls/wininet/tests/internet.c
+10
-0
No files found.
dlls/wininet/tests/internet.c
View file @
f1dc1bb0
...
@@ -73,6 +73,16 @@ static void test_InternetCanonicalizeUrlA(void)
...
@@ -73,6 +73,16 @@ static void test_InternetCanonicalizeUrlA(void)
"got %u and %u with size %u for '%s' (%d)
\n
"
,
"got %u and %u with size %u for '%s' (%d)
\n
"
,
res
,
GetLastError
(),
dwSize
,
buffer
,
lstrlenA
(
buffer
));
res
,
GetLastError
(),
dwSize
,
buffer
,
lstrlenA
(
buffer
));
memset
(
buffer
,
'#'
,
sizeof
(
buffer
)
-
1
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
dwSize
=
sizeof
(
buffer
);
SetLastError
(
0xdeadbeef
);
res
=
InternetCanonicalizeUrlA
(
"file:///C:/Program%20Files/Atmel/AVR%20Tools/STK500/STK500.xml"
,
buffer
,
&
dwSize
,
ICU_DECODE
|
ICU_NO_ENCODE
);
ok
(
res
,
"InternetCanonicalizeUrlA failed %u
\n
"
,
GetLastError
());
ok
(
dwSize
==
lstrlenA
(
buffer
),
"got %d expected %d
\n
"
,
dwSize
,
lstrlenA
(
buffer
));
todo_wine
ok
(
!
lstrcmpA
(
"file://C:
\\
Program Files
\\
Atmel
\\
AVR Tools
\\
STK500
\\
STK500.xml"
,
buffer
),
"got %s expected 'file://C:
\\
Program Files
\\
Atmel
\\
AVR Tools
\\
STK500
\\
STK500.xml'
\n
"
,
buffer
);
/* buffer is larger as the required size */
/* buffer is larger as the required size */
memset
(
buffer
,
'#'
,
sizeof
(
buffer
)
-
1
);
memset
(
buffer
,
'#'
,
sizeof
(
buffer
)
-
1
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
...
...
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