Commit Graph

105 Commits

Author SHA1 Message Date
Jactry Zeng c06e00ee6a wininet: Handle empty expires for cookie setting.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-29 14:14:22 +02:00
Zebediah Figura 6b839a0f85 wininet/tests: Fix some test failures with Windows 10.
Windows 10 1607+ no longer validates a NULL window handle, so remove that test.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:09 +01:00
Zebediah Figura af9d246952 wininet/tests: Simplify test_InternetErrorDlg().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:08 +01:00
Zebediah Figura 4928c623dc wininet/tests: Don't test that the URL cache is used for persistent cookies.
This seems to be an implementation detail, which is no longer true in Windows
1709+.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:08 +01:00
Zebediah Figura 1283f3807e wininet/tests: Handle ERROR_INTERNET_SEC_CERT_WEAK_SIGNATURE on newer 11.x versions.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-15 17:35:22 +02:00
Michael Stefaniuc 8d876e740e wininet/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 01:01:55 +02:00
Jacek Caban 2bba45765b wininet: Add stub for INTERNET_OPTION_REFRESH.
Based on patch by Michael Müller.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-03 17:56:23 +02:00
Jacek Caban d9dd9023fd wininet: Allow INTERNET_OPTION_SETTINGS_CHANGED on all handle types.
Based on patch by Michael Müller.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-03 17:56:23 +02:00
Alistair Leslie-Hughes bb41feacd4 wininet: Add support for FormatMessage.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 22:04:26 +02:00
Alex Henrie 16226c44da wininet/tests: Skip cookie attributes tests on IE < 8.0.
INTERNET_COOKIE_HTTPONLY was introduced in IE 8.0.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-17 14:32:02 +02:00
Bruno Jesus 7207b3dbc9 wininet/test: Improve tests for InternetGetConnectedStateEx.
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 16:37:19 +01:00
Francois Gouget 8f669b63a6 wininet/tests: A spelling fix in an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-10 21:34:33 +01:00
Jacek Caban 27ea3804dd wininet: Added semi-stub INTERNET_OPTION_END_BROWSER_SESSION implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 23:10:28 +09:00
Jacek Caban b53b717dad wininet: Always set returned size in InternetGetCookieExA.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 23:10:24 +09:00
Jacek Caban 0d9dcf5c8f wininet: Ignore unknown attributes in get_cookie.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 11:23:48 +09:00
Jacek Caban 3a7bd03da0 wininet: Fixed tests on win10.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 11:23:46 +09:00
Jacek Caban 238a462d2b wininet: Added test of cookies with long URL.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 11:51:33 +09:00
Jacek Caban cebb5d3066 wininet: Fixed internet tests on win10.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 11:50:50 +09:00
Nikolay Sivov 1b06662f0b wininet/tests: Use todo_wine_if() in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-17 13:08:25 +09:00
Sebastian Lackner e609b39818 wininet/tests: Add test for using NULL as proxy server.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 19:26:36 +09:00
Sebastian Lackner 9a7ce56145 wininet/tests: Print the correct function name in ok() messages. 2015-08-12 22:53:30 +09:00
Michael Stefaniuc 51302e011a wininet: Simplify the check for an empty string (PVS-Studio). 2014-11-11 14:22:08 +09:00
Bruno Jesus 5e13e7f809 wininet: Fix InternetGetConnectedStateEx[A|W]. 2014-10-28 13:53:44 +09:00
Bruno Jesus 3beee00a99 wininet: Add more tests to InternetGetConnectedStateEx. 2014-10-27 14:36:26 +09:00
Jacek Caban f72975d811 wininet: Don't allow overriding httponly cookies with non-httponly ones. 2014-07-11 16:59:47 +02:00
Jacek Caban b4ce0760e5 wininet/tests: Added INTERNET_COOKIE_HTTPONLY tests. 2014-07-04 14:52:04 +02:00
Hans Leidekker 4e340c0a7f wininet/tests: Fix a couple of test failures on Internet Explorer 11. 2014-05-24 11:01:04 +09:00
Bruno Jesus 7f97339208 wininet/tests: Add tests for InternetGetConnectedStateEx[A|W]. 2014-02-05 13:49:25 +01:00
Jacek Caban e857a70ae2 wininet: Compile tests with -D__WINESRC__. 2013-10-24 19:01:55 +02:00
Michael Stefaniuc 2a39cb377a dlls: Replace the remaining CONSTs. 2013-09-25 11:49:20 +02:00
Detlef Riekenberg 097dee606e wininet: Don't depend on user settings. 2013-01-28 19:43:32 +01:00
Detlef Riekenberg 2a66b25e6d wininet: Remove most GetLastError tests for IsDomainLegalCookieDomainW. 2013-01-28 19:43:32 +01:00
Detlef Riekenberg e1c2f18ab1 wininet: Fix a test failure on w2k. 2013-01-28 19:43:32 +01:00
Jacek Caban 81edd2acfc wininet: Fixed handling NULL buffer in INTERNET_OPTION_PROXY queries. 2013-01-08 12:18:06 +01:00
Andrew Eikum d6c0e8159b wininet: Fail on URLs without a scheme. 2013-01-02 13:10:51 +01:00
Jacek Caban f877fe9ba4 wininet: Properly handle output buffer size in InternetGetCookieA. 2012-12-28 11:26:56 +01:00
Jacek Caban 0c02e35841 wininet: Properly handle output buffer size in InternetGetCookieW. 2012-12-28 11:26:52 +01:00
Jacek Caban 21e7e28d64 wininet: Fixed NULL cookie data pointer handling in InternetGetCookieA. 2012-12-03 19:13:23 +01:00
Piotr Caban fc219b0ab3 wininet: Added basic cookie domain validation in set_cookie function. 2012-10-01 14:32:24 +02:00
Piotr Caban c34bc977a0 wininet: Added basic persistent cookie tests. 2012-10-01 14:32:17 +02:00
Jacek Caban c4c3ff47e7 wininet: Set last error for invalid URL argument. 2012-09-04 17:32:31 +02:00
Jacek Caban 448f2452c4 wininet: Added support for ERROR_INTERNET_SEC_CERT_REV_FAILED in InternetErrorDlg. 2012-06-07 16:07:13 +02:00
Jacek Caban b5fec3c033 wininet: Store request object instead of handle in error dialog. 2012-06-07 16:07:12 +02:00
Jacek Caban c0400560b5 wininet: Moved querying INTERNET_OPTION_REQUEST_FLAGS implementation to HTTPREQ_QueryOption. 2012-05-23 19:12:11 +02:00
Piotr Caban d5913b5c45 wininet/tests: Added INTERNET_OPTION_CONNECT_TIMEOUT setting tests. 2012-05-14 17:46:37 +02:00
Alexandre Julliard 0b3b6ba26d wininet/tests: Mark a failing test as broken. 2012-05-09 23:20:51 +02:00
Jacek Caban a3709badab wininet: Added more connection limit options tests. 2012-03-08 17:59:40 +01:00
Austin English c13f29357a wininet/tests: Remove win9x hacks. 2011-07-27 12:26:18 +02:00
Francois Gouget d705465de8 wininet/tests: Make test_InternetErrorDlg() static. 2011-03-16 14:14:24 +01:00
Austin English 5da40467c8 wininet/tests: Make sure to use return value (LLVM/Clang). 2011-02-07 10:11:06 -06:00