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
7c336462
Commit
7c336462
authored
Sep 03, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Always use test.winehq.org instead of www.codeweavers.com in tests.
parent
8e8eef94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
http.c
dlls/wininet/tests/http.c
+13
-14
No files found.
dlls/wininet/tests/http.c
View file @
7c336462
...
...
@@ -139,10 +139,10 @@ static const test_data_t test_data[] = {
TESTF_REDIRECT
},
{
"http://
www.codeweavers.com/
"
,
"http://
www.codeweavers.com/
"
,
"
www.codeweavers.com
"
,
""
,
"http://
test.winehq.org/tests/gzip.php
"
,
"http://
test.winehq.org/tests/gzip.php
"
,
"
test.winehq.org
"
,
"
/tests/gzip.php
"
,
"Accept-Encoding: gzip, deflate"
,
TESTF_COMPRESSED
},
...
...
@@ -1210,11 +1210,11 @@ static void HttpSendRequestEx_test(void)
hSession
=
InternetOpenA
(
"Wine Regression Test"
,
INTERNET_OPEN_TYPE_PRECONFIG
,
NULL
,
NULL
,
0
);
ok
(
hSession
!=
NULL
,
"Unable to open Internet session
\n
"
);
hConnect
=
InternetConnectA
(
hSession
,
"
crossover.codeweavers.com
"
,
hConnect
=
InternetConnectA
(
hSession
,
"
test.winehq.org
"
,
INTERNET_DEFAULT_HTTP_PORT
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0
,
0
);
ok
(
hConnect
!=
NULL
,
"Unable to connect to http://
crossover.codeweavers.com
\n
"
);
hRequest
=
HttpOpenRequestA
(
hConnect
,
"POST"
,
"/
postte
st.php"
,
ok
(
hConnect
!=
NULL
,
"Unable to connect to http://
test.winehq.org
\n
"
);
hRequest
=
HttpOpenRequestA
(
hConnect
,
"POST"
,
"/
tests/po
st.php"
,
NULL
,
NULL
,
NULL
,
INTERNET_FLAG_NO_CACHE_WRITE
,
0
);
if
(
!
hRequest
&&
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
)
{
...
...
@@ -1626,11 +1626,11 @@ static void HttpHeaders_test(void)
hSession
=
InternetOpenA
(
"Wine Regression Test"
,
INTERNET_OPEN_TYPE_PRECONFIG
,
NULL
,
NULL
,
0
);
ok
(
hSession
!=
NULL
,
"Unable to open Internet session
\n
"
);
hConnect
=
InternetConnectA
(
hSession
,
"
crossover.codeweavers.com
"
,
hConnect
=
InternetConnectA
(
hSession
,
"
test.winehq.org
"
,
INTERNET_DEFAULT_HTTP_PORT
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0
,
0
);
ok
(
hConnect
!=
NULL
,
"Unable to connect to http://
crossover.codeweavers.com
\n
"
);
hRequest
=
HttpOpenRequestA
(
hConnect
,
"POST"
,
"/
postte
st.php"
,
ok
(
hConnect
!=
NULL
,
"Unable to connect to http://
test.winehq.org
\n
"
);
hRequest
=
HttpOpenRequestA
(
hConnect
,
"POST"
,
"/
tests/po
st.php"
,
NULL
,
NULL
,
NULL
,
INTERNET_FLAG_NO_CACHE_WRITE
,
0
);
if
(
!
hRequest
&&
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
)
{
...
...
@@ -1713,7 +1713,7 @@ static void HttpHeaders_test(void)
ok
((
len
<
sizeof
(
buffer
)
-
sizeof
(
CHAR
))
&&
(
buffer
[
len
/
sizeof
(
CHAR
)]
==
0
),
"No NUL at end
\n
"
);
ok
(
len
==
strlen
(
buffer
)
*
sizeof
(
CHAR
),
"Length wrong
\n
"
);
/* what's in the middle differs between Wine and Windows so currently we check only the beginning and the end */
ok
(
strncmp
(
buffer
,
"POST /
postte
st.php HTTP/1"
,
25
)
==
0
,
"Invalid beginning of headers string
\n
"
);
ok
(
strncmp
(
buffer
,
"POST /
tests/po
st.php HTTP/1"
,
25
)
==
0
,
"Invalid beginning of headers string
\n
"
);
ok
(
strcmp
(
buffer
+
strlen
(
buffer
)
-
4
,
"
\r\n\r\n
"
)
==
0
,
"Invalid end of headers string
\n
"
);
ok
(
index
==
0
,
"Index was incremented
\n
"
);
...
...
@@ -5177,7 +5177,7 @@ static const struct notification_data notification_data[] = {
sizeof
(
async_send_request_ex_test
)
/
sizeof
(
async_send_request_ex_test
[
0
]),
"POST"
,
"test.winehq.org"
,
"tests/post
test
.php"
,
"tests/post.php"
,
"Public ID=codeweavers"
},
{
...
...
@@ -5185,7 +5185,7 @@ static const struct notification_data notification_data[] = {
sizeof
(
async_send_request_ex_test
)
/
sizeof
(
async_send_request_ex_test
[
0
]),
"POST"
,
"test.winehq.org"
,
"tests/post
test
.php"
"tests/post.php"
},
{
async_send_request_ex_resolve_failure_test
,
...
...
@@ -5485,7 +5485,6 @@ START_TEST(http)
InternetReadFile_test
(
INTERNET_FLAG_ASYNC
,
&
test_data
[
0
]);
InternetReadFile_test
(
INTERNET_FLAG_ASYNC
,
&
test_data
[
1
]);
InternetReadFile_test
(
0
,
&
test_data
[
1
]);
first_connection_to_test_url
=
TRUE
;
InternetReadFile_test
(
INTERNET_FLAG_ASYNC
,
&
test_data
[
2
]);
test_security_flags
();
InternetReadFile_test
(
0
,
&
test_data
[
2
]);
...
...
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