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
0ebbd991
Commit
0ebbd991
authored
Jan 23, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Test that the data is really read in test_secure_connection.
parent
7867ce85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
winhttp.c
dlls/winhttp/tests/winhttp.c
+4
-1
No files found.
dlls/winhttp/tests/winhttp.c
View file @
0ebbd991
...
...
@@ -792,7 +792,7 @@ static void test_secure_connection(void)
static
const
WCHAR
google
[]
=
{
'w'
,
'w'
,
'w'
,
'.'
,
'g'
,
'o'
,
'o'
,
'g'
,
'l'
,
'e'
,
'.'
,
'c'
,
'o'
,
'm'
,
0
};
HINTERNET
ses
,
con
,
req
;
DWORD
size
,
status
,
policy
,
bitness
;
DWORD
size
,
status
,
policy
,
bitness
,
read_size
;
BOOL
ret
;
CERT_CONTEXT
*
cert
;
WINHTTP_CERTIFICATE_INFO
info
;
...
...
@@ -873,13 +873,16 @@ static void test_secure_connection(void)
ret
=
WinHttpQueryHeaders
(
req
,
WINHTTP_QUERY_RAW_HEADERS_CRLF
,
NULL
,
NULL
,
&
size
,
NULL
);
ok
(
!
ret
,
"succeeded unexpectedly
\n
"
);
read_size
=
0
;
for
(;;)
{
size
=
0
;
ret
=
WinHttpReadData
(
req
,
buffer
,
sizeof
(
buffer
),
&
size
);
ok
(
ret
==
TRUE
,
"WinHttpReadData failed: %u.
\n
"
,
GetLastError
());
if
(
!
size
)
break
;
read_size
+=
size
;
}
ok
(
read_size
>
2014
,
"read_size = %u
\n
"
,
read_size
);
cleanup:
WinHttpCloseHandle
(
req
);
...
...
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