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
ba2bcaf9
Commit
ba2bcaf9
authored
Apr 14, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use winetest post.php URLs for http POST tests.
parent
d627836e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
protocol.c
dlls/urlmon/tests/protocol.c
+2
-3
url.c
dlls/urlmon/tests/url.c
+5
-7
No files found.
dlls/urlmon/tests/protocol.c
View file @
ba2bcaf9
...
...
@@ -2869,9 +2869,8 @@ static void test_http_protocol_url(LPCWSTR url, int prot, DWORD flags, DWORD tym
static
void
test_http_protocol
(
void
)
{
static
const
WCHAR
posttest_url
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'c'
,
'r'
,
'o'
,
's'
,
's'
,
'o'
,
'v'
,
'e'
,
'r'
,
'.'
,
'c'
,
'o'
,
'd'
,
'e'
,
'w'
,
'e'
,
'a'
,
'v'
,
'e'
,
'r'
,
's'
,
'.'
,
'c'
,
'o'
,
'm'
,
'/'
,
'p'
,
'o'
,
's'
,
't'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
's'
,
'/'
,
'p'
,
'o'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
static
const
WCHAR
redirect_url
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
's'
,
'/'
,
'r'
,
'e'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
0
};
...
...
dlls/urlmon/tests/url.c
View file @
ba2bcaf9
...
...
@@ -152,10 +152,9 @@ static const WCHAR winetest_data_urlW[] =
static
const
WCHAR
TEST_PART_URL_1
[]
=
{
'/'
,
't'
,
'e'
,
's'
,
't'
,
's'
,
'/'
,
'd'
,
'a'
,
't'
,
'a'
,
'.'
,
'p'
,
'h'
,
'p'
,
'\0'
};
static
const
WCHAR
SHORT_RESPONSE_URL
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'c'
,
'r'
,
'o'
,
's'
,
's'
,
'o'
,
'v'
,
'e'
,
'r'
,
'.'
,
'c'
,
'o'
,
'd'
,
'e'
,
'w'
,
'e'
,
'a'
,
'v'
,
'e'
,
'r'
,
's'
,
'.'
,
'c'
,
'o'
,
'm'
,
'/'
,
'p'
,
'o'
,
's'
,
't'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
static
const
WCHAR
winetest_post_urlW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
's'
,
'/'
,
'p'
,
'o'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
static
const
WCHAR
ABOUT_BLANK
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
static
WCHAR
INDEX_HTML
[
MAX_PATH
];
static
const
WCHAR
ITS_URL
[]
=
...
...
@@ -2686,7 +2685,7 @@ static void init_bind_test(int protocol, DWORD flags, DWORD t)
tymed
=
t
;
filedwl_api
=
(
flags
&
BINDTEST_FILEDWLAPI
)
!=
0
;
if
(
flags
&
BINDTEST_HTTPRESPONSE
)
urls
[
HTTP_TEST
]
=
SHORT_RESPONSE_URL
;
urls
[
HTTP_TEST
]
=
winetest_post_urlW
;
else
urls
[
HTTP_TEST
]
=
winetest_data_urlW
;
if
(
flags
&
BINDTEST_INVALID_CN
)
...
...
@@ -3161,7 +3160,7 @@ static void test_BindToObject(int protocol, DWORD flags)
CLEAR_CALLED
(
GetWindow_IWindowForBindingUI
);
}
if
(
test_protocol
==
HTTP_TEST
||
test_protocol
==
HTTPS_TEST
||
test_protocol
==
FILE_TEST
)
{
if
(
urls
[
test_protocol
]
==
SHORT_RESPONSE_URL
)
if
(
urls
[
test_protocol
]
==
winetest_post_urlW
)
CLEAR_CALLED
(
Obj_OnProgress_SENDINGREQUEST
);
else
CHECK_CALLED
(
Obj_OnProgress_SENDINGREQUEST
);
...
...
@@ -3602,7 +3601,6 @@ START_TEST(url)
test_BindToObject
(
HTTP_TEST
,
0
);
trace
(
"http test (short response)...
\n
"
);
http_is_first
=
TRUE
;
test_BindToStorage
(
HTTP_TEST
,
BINDTEST_HTTPRESPONSE
,
TYMED_ISTREAM
);
trace
(
"http test (short response, to object)...
\n
"
);
...
...
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