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
3ab29712
Commit
3ab29712
authored
May 13, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Clean up closing connection notifications tests.
parent
a890e3a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
http.c
dlls/wininet/tests/http.c
+0
-29
No files found.
dlls/wininet/tests/http.c
View file @
3ab29712
...
...
@@ -402,8 +402,6 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
SET_OPTIONAL
(
INTERNET_STATUS_CONNECTED_TO_SERVER
);
if
(
flags
&
INTERNET_FLAG_ASYNC
)
SET_EXPECT
(
INTERNET_STATUS_REQUEST_COMPLETE
);
else
SET_WINE_ALLOW
(
INTERNET_STATUS_REQUEST_COMPLETE
);
if
(
test
->
flags
&
TESTF_COMPRESSED
)
{
BOOL
b
=
TRUE
;
...
...
@@ -465,8 +463,6 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
CHECK_NOTIFIED
(
INTERNET_STATUS_REDIRECT
);
if
(
flags
&
INTERNET_FLAG_ASYNC
)
CHECK_NOTIFIED
(
INTERNET_STATUS_REQUEST_COMPLETE
);
else
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_REQUEST_COMPLETE
);
/* Sent on WinXP only if first_connection_to_test_url is TRUE, on Win98 always sent */
CLEAR_NOTIFIED
(
INTERNET_STATUS_CONNECTING_TO_SERVER
);
CLEAR_NOTIFIED
(
INTERNET_STATUS_CONNECTED_TO_SERVER
);
...
...
@@ -597,16 +593,6 @@ abort:
Sleep
(
100
);
}
CHECK_NOTIFIED2
(
INTERNET_STATUS_HANDLE_CLOSING
,
(
hor
!=
0x0
)
+
(
hic
!=
0x0
));
if
(
hor
!=
0x0
)
{
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CLOSING_CONNECTION
);
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CONNECTION_CLOSED
);
}
else
{
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CLOSING_CONNECTION
);
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CONNECTION_CLOSED
);
}
CloseHandle
(
hCompleteEvent
);
first_connection_to_test_url
=
FALSE
;
}
...
...
@@ -860,8 +846,6 @@ static void InternetReadFileExA_test(int flags)
inetbuffers
.
dwOffsetLow
=
5678
;
SET_EXPECT
(
INTERNET_STATUS_RECEIVING_RESPONSE
);
SET_EXPECT
(
INTERNET_STATUS_RESPONSE_RECEIVED
);
SET_EXPECT
(
INTERNET_STATUS_CLOSING_CONNECTION
);
SET_EXPECT
(
INTERNET_STATUS_CONNECTION_CLOSED
);
rc
=
InternetReadFileEx
(
hor
,
&
inetbuffers
,
0
,
0xdeadcafe
);
ok
(
rc
,
"InternetReadFileEx failed with error %u
\n
"
,
GetLastError
());
trace
(
"read %i bytes
\n
"
,
inetbuffers
.
dwBufferLength
);
...
...
@@ -879,8 +863,6 @@ static void InternetReadFileExA_test(int flags)
length
=
0
;
trace
(
"Entering Query loop
\n
"
);
SET_EXPECT
(
INTERNET_STATUS_CLOSING_CONNECTION
);
SET_EXPECT
(
INTERNET_STATUS_CONNECTION_CLOSED
);
while
(
TRUE
)
{
inetbuffers
.
dwStructSize
=
sizeof
(
INTERNET_BUFFERS
);
...
...
@@ -891,8 +873,6 @@ static void InternetReadFileExA_test(int flags)
SET_WINE_ALLOW
(
INTERNET_STATUS_RECEIVING_RESPONSE
);
SET_WINE_ALLOW
(
INTERNET_STATUS_RESPONSE_RECEIVED
);
SET_EXPECT
(
INTERNET_STATUS_CLOSING_CONNECTION
);
SET_EXPECT
(
INTERNET_STATUS_CONNECTION_CLOSED
);
SET_EXPECT
(
INTERNET_STATUS_REQUEST_COMPLETE
);
rc
=
InternetReadFileExA
(
hor
,
&
inetbuffers
,
IRF_ASYNC
|
IRF_USE_CONTEXT
,
0xcafebabe
);
if
(
!
rc
)
...
...
@@ -949,9 +929,6 @@ static void InternetReadFileExA_test(int flags)
ok
(
length
>
0
,
"failed to read any of the document
\n
"
);
trace
(
"Finished. Read %d bytes
\n
"
,
length
);
/* WinXP does not send, but Win98 does */
CLEAR_NOTIFIED
(
INTERNET_STATUS_CLOSING_CONNECTION
);
CLEAR_NOTIFIED
(
INTERNET_STATUS_CONNECTION_CLOSED
);
abort:
SET_EXPECT2
(
INTERNET_STATUS_HANDLE_CLOSING
,
(
hor
!=
0x0
)
+
(
hic
!=
0x0
));
if
(
hor
)
{
...
...
@@ -972,12 +949,6 @@ abort:
Sleep
(
100
);
CHECK_NOTIFIED2
(
INTERNET_STATUS_HANDLE_CLOSING
,
(
hor
!=
0x0
)
+
(
hic
!=
0x0
));
}
/* to enable once Wine is fixed to never send it
CHECK_NOT_NOTIFIED(INTERNET_STATUS_CLOSING_CONNECTION);
CHECK_NOT_NOTIFIED(INTERNET_STATUS_CONNECTION_CLOSED);
*/
CLEAR_NOTIFIED
(
INTERNET_STATUS_CLOSING_CONNECTION
);
CLEAR_NOTIFIED
(
INTERNET_STATUS_CONNECTION_CLOSED
);
CloseHandle
(
hCompleteEvent
);
first_connection_to_test_url
=
FALSE
;
}
...
...
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