urlmon/tests: Fix handling of FINDINGRESOURCE now that all the tests are against the same server.

This commit is contained in:
Alexandre Julliard 2014-02-04 10:49:22 +01:00
parent b4b817b907
commit deda14785a
1 changed files with 4 additions and 1 deletions

View File

@ -189,6 +189,7 @@ static BOOL abort_start = FALSE;
static BOOL abort_progress = FALSE; static BOOL abort_progress = FALSE;
static BOOL async_switch = FALSE; static BOOL async_switch = FALSE;
static BOOL strict_bsc_qi; static BOOL strict_bsc_qi;
static DWORD bindtest_flags;
static const char *test_file; static const char *test_file;
static WCHAR file_url[INTERNET_MAX_URL_LENGTH], current_url[INTERNET_MAX_URL_LENGTH]; static WCHAR file_url[INTERNET_MAX_URL_LENGTH], current_url[INTERNET_MAX_URL_LENGTH];
@ -1655,6 +1656,8 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallbackEx *iface, ULONG u
CHECK_EXPECT(Obj_OnProgress_FINDINGRESOURCE); CHECK_EXPECT(Obj_OnProgress_FINDINGRESOURCE);
else if(test_protocol == FTP_TEST) else if(test_protocol == FTP_TEST)
todo_wine CHECK_EXPECT(OnProgress_FINDINGRESOURCE); todo_wine CHECK_EXPECT(OnProgress_FINDINGRESOURCE);
else if(test_protocol == HTTPS_TEST && !bindtest_flags)
todo_wine CHECK_EXPECT(OnProgress_FINDINGRESOURCE);
else else
CHECK_EXPECT(OnProgress_FINDINGRESOURCE); CHECK_EXPECT(OnProgress_FINDINGRESOURCE);
if(emulate_protocol && (test_protocol == HTTP_TEST || test_protocol == HTTPS_TEST || test_protocol == WINETEST_TEST)) if(emulate_protocol && (test_protocol == HTTP_TEST || test_protocol == HTTPS_TEST || test_protocol == WINETEST_TEST))
@ -2806,6 +2809,7 @@ static void init_bind_test(int protocol, DWORD flags, DWORD t)
const char *url_a = NULL; const char *url_a = NULL;
test_protocol = protocol; test_protocol = protocol;
bindtest_flags = flags;
emulate_protocol = (flags & BINDTEST_EMULATE) != 0; emulate_protocol = (flags & BINDTEST_EMULATE) != 0;
download_state = BEFORE_DOWNLOAD; download_state = BEFORE_DOWNLOAD;
stopped_binding = FALSE; stopped_binding = FALSE;
@ -3979,7 +3983,6 @@ START_TEST(url)
test_BindToStorage(WINETEST_TEST, BINDTEST_EMULATE|BINDTEST_NO_CALLBACK|BINDTEST_USE_CACHE, TYMED_ISTREAM); test_BindToStorage(WINETEST_TEST, BINDTEST_EMULATE|BINDTEST_NO_CALLBACK|BINDTEST_USE_CACHE, TYMED_ISTREAM);
trace("asynchronous https test...\n"); trace("asynchronous https test...\n");
http_is_first = TRUE;
test_BindToStorage(HTTPS_TEST, 0, TYMED_ISTREAM); test_BindToStorage(HTTPS_TEST, 0, TYMED_ISTREAM);
trace("emulated https test...\n"); trace("emulated https test...\n");