Jacek Caban : urlmon: Use winetest post.php URLs for http POST tests.
Alexandre Julliard
julliard at winehq.org
Thu Apr 14 11:58:21 CDT 2011
Module: wine
Branch: master
Commit: ba2bcaf9c4afde1b3facb89d85a84021ff27a352
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba2bcaf9c4afde1b3facb89d85a84021ff27a352
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Apr 14 18:27:24 2011 +0200
urlmon: Use winetest post.php URLs for http POST tests.
---
dlls/urlmon/tests/protocol.c | 5 ++---
dlls/urlmon/tests/url.c | 12 +++++-------
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index 6c8e5db..40a6323 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -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};
diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index 7202052..003b3c8 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -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");
More information about the wine-cvs
mailing list