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
e7d6bba2
Commit
e7d6bba2
authored
Aug 01, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added chunked stream blocking tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6e0c842d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
http.c
dlls/wininet/tests/http.c
+41
-0
No files found.
dlls/wininet/tests/http.c
View file @
e7d6bba2
...
...
@@ -4718,6 +4718,47 @@ static void test_http_read(int port)
close_async_handle
(
req
.
session
,
hCompleteEvent
,
2
);
open_read_test_request
(
port
,
&
req
,
"HTTP/1.1 200 OK
\r\n
"
"Server: winetest
\r\n
"
"Transfer-Encoding: chunked
\r\n
"
"
\r\n
"
"9
\r\n
123456789"
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
"123456789"
);
readex_expect_async
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
));
send_response_and_wait
(
"
\r\n
1
\r\n
a
\r\n
1
\r\n
b
\r
"
,
FALSE
,
&
ib
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
"ab"
);
readex_expect_async
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
));
send_response_and_wait
(
"
\n
3
\r\n
ab"
,
FALSE
,
&
ib
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
"ab"
);
readex_expect_async
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
));
send_response_and_wait
(
"c"
,
FALSE
,
&
ib
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
"c"
);
readex_expect_async
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
));
send_response_and_wait
(
"
\r\n
1
\r\n
x
\r\n
0
\r\n\r\n
"
,
TRUE
,
&
ib
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
"x"
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
""
);
close_async_handle
(
req
.
session
,
hCompleteEvent
,
2
);
open_read_test_request
(
port
,
&
req
,
"HTTP/1.1 200 OK
\r\n
"
"Server: winetest
\r\n
"
"Transfer-Encoding: chunked
\r\n
"
"
\r\n
"
"3
\r\n
123
\r\n
"
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
"123"
);
readex_expect_async
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
));
send_response_and_wait
(
"0
\r\n\r\n
"
,
TRUE
,
&
ib
);
readex_expect_sync_data
(
req
.
request
,
IRF_NO_WAIT
,
&
ib
,
sizeof
(
buf
),
""
);
close_async_handle
(
req
.
session
,
hCompleteEvent
,
2
);
CloseHandle
(
hCompleteEvent
);
CloseHandle
(
conn_wait_event
);
CloseHandle
(
server_req_rec_event
);
...
...
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