Commit e970c4c3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet/tests: Collect persistent connection before running tests in test_async_HttpSendRequestEx.

parent d0056f6e
...@@ -7400,8 +7400,8 @@ static const struct notification async_send_request_ex_test2[] = ...@@ -7400,8 +7400,8 @@ static const struct notification async_send_request_ex_test2[] =
{ http_send_request_ex, INTERNET_STATUS_COOKIE_SENT, TRUE, FALSE, TRUE }, { http_send_request_ex, INTERNET_STATUS_COOKIE_SENT, TRUE, FALSE, TRUE },
{ http_send_request_ex, INTERNET_STATUS_RESOLVING_NAME, TRUE, FALSE, TRUE }, { http_send_request_ex, INTERNET_STATUS_RESOLVING_NAME, TRUE, FALSE, TRUE },
{ http_send_request_ex, INTERNET_STATUS_NAME_RESOLVED, TRUE, FALSE, TRUE }, { http_send_request_ex, INTERNET_STATUS_NAME_RESOLVED, TRUE, FALSE, TRUE },
{ http_send_request_ex, INTERNET_STATUS_CONNECTING_TO_SERVER, TRUE, TRUE }, { http_send_request_ex, INTERNET_STATUS_CONNECTING_TO_SERVER, TRUE },
{ http_send_request_ex, INTERNET_STATUS_CONNECTED_TO_SERVER, TRUE, TRUE }, { http_send_request_ex, INTERNET_STATUS_CONNECTED_TO_SERVER, TRUE },
{ http_send_request_ex, INTERNET_STATUS_SENDING_REQUEST, TRUE }, { http_send_request_ex, INTERNET_STATUS_SENDING_REQUEST, TRUE },
{ http_send_request_ex, INTERNET_STATUS_REQUEST_SENT, TRUE }, { http_send_request_ex, INTERNET_STATUS_REQUEST_SENT, TRUE },
{ http_send_request_ex, INTERNET_STATUS_REQUEST_COMPLETE, TRUE }, { http_send_request_ex, INTERNET_STATUS_REQUEST_COMPLETE, TRUE },
...@@ -7445,8 +7445,8 @@ static const struct notification async_send_request_ex_chunked_test[] = ...@@ -7445,8 +7445,8 @@ static const struct notification async_send_request_ex_chunked_test[] =
{ http_end_request, INTERNET_STATUS_RECEIVING_RESPONSE, TRUE }, { http_end_request, INTERNET_STATUS_RECEIVING_RESPONSE, TRUE },
{ http_end_request, INTERNET_STATUS_RESPONSE_RECEIVED, TRUE }, { http_end_request, INTERNET_STATUS_RESPONSE_RECEIVED, TRUE },
{ http_end_request, INTERNET_STATUS_REQUEST_COMPLETE, TRUE }, { http_end_request, INTERNET_STATUS_REQUEST_COMPLETE, TRUE },
{ internet_close_handle, INTERNET_STATUS_CLOSING_CONNECTION }, { internet_close_handle, INTERNET_STATUS_CLOSING_CONNECTION, FALSE, FALSE, TRUE },
{ internet_close_handle, INTERNET_STATUS_CONNECTION_CLOSED }, { internet_close_handle, INTERNET_STATUS_CONNECTION_CLOSED, FALSE, FALSE, TRUE },
{ internet_close_handle, INTERNET_STATUS_HANDLE_CLOSING }, { internet_close_handle, INTERNET_STATUS_HANDLE_CLOSING },
{ internet_close_handle, INTERNET_STATUS_HANDLE_CLOSING } { internet_close_handle, INTERNET_STATUS_HANDLE_CLOSING }
}; };
...@@ -7497,6 +7497,10 @@ static void test_async_HttpSendRequestEx(const struct notification_data *nd) ...@@ -7497,6 +7497,10 @@ static void test_async_HttpSendRequestEx(const struct notification_data *nd)
trace("Async HttpSendRequestEx test (%s %s)\n", nd->method, nd->host); trace("Async HttpSendRequestEx test (%s %s)\n", nd->method, nd->host);
/* Collect all existing persistent connections */
ret = InternetSetOptionA(NULL, INTERNET_OPTION_SETTINGS_CHANGED, NULL, 0);
ok(ret, "InternetSetOption(INTERNET_OPTION_END_BROWSER_SESSION) failed: %lu\n", GetLastError());
InitializeCriticalSection( &notification_cs ); InitializeCriticalSection( &notification_cs );
info.test = nd->test; info.test = nd->test;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment