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
ab227d2e
Commit
ab227d2e
authored
Sep 03, 2021
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Remove some unnecessary traces from the http test.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d5dd1920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
http.c
dlls/wininet/tests/http.c
+0
-24
No files found.
dlls/wininet/tests/http.c
View file @
ab227d2e
...
...
@@ -596,11 +596,9 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
trace
(
"Starting InternetReadFile test with flags 0x%x on url %s
\n
"
,
flags
,
test
->
url
);
reset_events
();
trace
(
"InternetOpenA <--
\n
"
);
hi
=
InternetOpenA
((
test
->
flags
&
TESTF_COMPRESSED
)
?
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
:
""
,
INTERNET_OPEN_TYPE_PRECONFIG
,
NULL
,
NULL
,
flags
);
ok
((
hi
!=
0x0
),
"InternetOpen failed with error %u
\n
"
,
GetLastError
());
trace
(
"InternetOpenA -->
\n
"
);
if
(
hi
==
0x0
)
goto
abort
;
...
...
@@ -608,18 +606,15 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
SET_EXPECT
(
INTERNET_STATUS_HANDLE_CREATED
);
trace
(
"InternetConnectA <--
\n
"
);
hic
=
InternetConnectA
(
hi
,
test
->
host
,
INTERNET_INVALID_PORT_NUMBER
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0x0
,
0xdeadbeef
);
ok
((
hic
!=
0x0
),
"InternetConnect failed with error %u
\n
"
,
GetLastError
());
trace
(
"InternetConnectA -->
\n
"
);
if
(
hic
==
0x0
)
goto
abort
;
CHECK_NOTIFIED
(
INTERNET_STATUS_HANDLE_CREATED
);
SET_EXPECT
(
INTERNET_STATUS_HANDLE_CREATED
);
trace
(
"HttpOpenRequestA <--
\n
"
);
hor
=
HttpOpenRequestA
(
hic
,
test
->
post_data
?
"POST"
:
"GET"
,
test
->
path
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
|
INTERNET_FLAG_RELOAD
,
0xdeadbead
);
...
...
@@ -633,7 +628,6 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
}
else
{
ok
((
hor
!=
0x0
),
"HttpOpenRequest failed with error %u
\n
"
,
GetLastError
());
}
trace
(
"HttpOpenRequestA -->
\n
"
);
if
(
hor
==
0x0
)
goto
abort
;
...
...
@@ -684,7 +678,6 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
test_status_code
(
hor
,
0
);
trace
(
"HttpSendRequestA -->
\n
"
);
if
(
test
->
post_data
)
{
post_len
=
strlen
(
test
->
post_data
);
post_data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
post_len
);
...
...
@@ -698,7 +691,6 @@ static void InternetReadFile_test(int flags, const test_data_t *test)
else
ok
(
res
||
(
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
),
"Synchronous HttpSendRequest returning 0, error %u
\n
"
,
GetLastError
());
trace
(
"HttpSendRequestA <--
\n
"
);
if
(
flags
&
INTERNET_FLAG_ASYNC
)
{
WaitForSingleObject
(
complete_event
,
INFINITE
);
...
...
@@ -968,22 +960,17 @@ static void InternetReadFile_chunked_test(void)
trace
(
"Starting InternetReadFile chunked test
\n
"
);
trace
(
"InternetOpenA <--
\n
"
);
hi
=
InternetOpenA
(
""
,
INTERNET_OPEN_TYPE_PRECONFIG
,
NULL
,
NULL
,
0
);
ok
((
hi
!=
0x0
),
"InternetOpen failed with error %u
\n
"
,
GetLastError
());
trace
(
"InternetOpenA -->
\n
"
);
if
(
hi
==
0x0
)
goto
abort
;
trace
(
"InternetConnectA <--
\n
"
);
hic
=
InternetConnectA
(
hi
,
"test.winehq.org"
,
INTERNET_INVALID_PORT_NUMBER
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0x0
,
0xdeadbeef
);
ok
((
hic
!=
0x0
),
"InternetConnect failed with error %u
\n
"
,
GetLastError
());
trace
(
"InternetConnectA -->
\n
"
);
if
(
hic
==
0x0
)
goto
abort
;
trace
(
"HttpOpenRequestA <--
\n
"
);
hor
=
HttpOpenRequestA
(
hic
,
"GET"
,
"/tests/chunked"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
|
INTERNET_FLAG_RELOAD
,
0xdeadbead
);
...
...
@@ -997,16 +984,13 @@ static void InternetReadFile_chunked_test(void)
}
else
{
ok
((
hor
!=
0x0
),
"HttpOpenRequest failed with error %u
\n
"
,
GetLastError
());
}
trace
(
"HttpOpenRequestA -->
\n
"
);
if
(
hor
==
0x0
)
goto
abort
;
trace
(
"HttpSendRequestA -->
\n
"
);
SetLastError
(
0xdeadbeef
);
res
=
HttpSendRequestA
(
hor
,
""
,
-
1
,
NULL
,
0
);
ok
(
res
||
(
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
),
"Synchronous HttpSendRequest returning 0, error %u
\n
"
,
GetLastError
());
trace
(
"HttpSendRequestA <--
\n
"
);
test_request_flags
(
hor
,
0
);
...
...
@@ -1092,10 +1076,8 @@ static void InternetReadFileExA_test(int flags)
trace
(
"Starting InternetReadFileExA test with flags 0x%x
\n
"
,
flags
);
reset_events
();
trace
(
"InternetOpenA <--
\n
"
);
hi
=
InternetOpenA
(
""
,
INTERNET_OPEN_TYPE_PRECONFIG
,
NULL
,
NULL
,
flags
);
ok
((
hi
!=
0x0
),
"InternetOpen failed with error %u
\n
"
,
GetLastError
());
trace
(
"InternetOpenA -->
\n
"
);
if
(
hi
==
0x0
)
goto
abort
;
...
...
@@ -1103,18 +1085,15 @@ static void InternetReadFileExA_test(int flags)
SET_EXPECT
(
INTERNET_STATUS_HANDLE_CREATED
);
trace
(
"InternetConnectA <--
\n
"
);
hic
=
InternetConnectA
(
hi
,
"test.winehq.org"
,
INTERNET_INVALID_PORT_NUMBER
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0x0
,
0xdeadbeef
);
ok
((
hic
!=
0x0
),
"InternetConnect failed with error %u
\n
"
,
GetLastError
());
trace
(
"InternetConnectA -->
\n
"
);
if
(
hic
==
0x0
)
goto
abort
;
CHECK_NOTIFIED
(
INTERNET_STATUS_HANDLE_CREATED
);
SET_EXPECT
(
INTERNET_STATUS_HANDLE_CREATED
);
trace
(
"HttpOpenRequestA <--
\n
"
);
hor
=
HttpOpenRequestA
(
hic
,
"GET"
,
"/tests/redirect"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
|
INTERNET_FLAG_RELOAD
,
0xdeadbead
);
...
...
@@ -1128,7 +1107,6 @@ static void InternetReadFileExA_test(int flags)
}
else
{
ok
((
hor
!=
0x0
),
"HttpOpenRequest failed with error %u
\n
"
,
GetLastError
());
}
trace
(
"HttpOpenRequestA -->
\n
"
);
if
(
hor
==
0x0
)
goto
abort
;
...
...
@@ -1157,7 +1135,6 @@ static void InternetReadFileExA_test(int flags)
else
SET_WINE_ALLOW
(
INTERNET_STATUS_REQUEST_COMPLETE
);
trace
(
"HttpSendRequestA -->
\n
"
);
SetLastError
(
0xdeadbeef
);
rc
=
HttpSendRequestA
(
hor
,
""
,
-
1
,
NULL
,
0
);
if
(
flags
&
INTERNET_FLAG_ASYNC
)
...
...
@@ -1166,7 +1143,6 @@ static void InternetReadFileExA_test(int flags)
else
ok
((
rc
!=
0
)
||
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
,
"Synchronous HttpSendRequest returning 0, error %u
\n
"
,
GetLastError
());
trace
(
"HttpSendRequestA <--
\n
"
);
if
(
!
rc
&&
(
GetLastError
()
==
ERROR_IO_PENDING
))
{
WaitForSingleObject
(
complete_event
,
INFINITE
);
...
...
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