Jacek Caban : winhttp: Test that the data is really read in test_secure_connection.
Alexandre Julliard
julliard at winehq.org
Wed Jan 23 16:40:19 CST 2013
Module: wine
Branch: master
Commit: 0ebbd991c1fce7e3bf6648a4c995ae36b642c5cf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ebbd991c1fce7e3bf6648a4c995ae36b642c5cf
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Jan 23 15:48:02 2013 +0100
winhttp: Test that the data is really read in test_secure_connection.
---
dlls/winhttp/tests/winhttp.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 132551c..fd0db18 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -792,7 +792,7 @@ static void test_secure_connection(void)
static const WCHAR google[] = {'w','w','w','.','g','o','o','g','l','e','.','c','o','m',0};
HINTERNET ses, con, req;
- DWORD size, status, policy, bitness;
+ DWORD size, status, policy, bitness, read_size;
BOOL ret;
CERT_CONTEXT *cert;
WINHTTP_CERTIFICATE_INFO info;
@@ -873,13 +873,16 @@ static void test_secure_connection(void)
ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_RAW_HEADERS_CRLF, NULL, NULL, &size, NULL);
ok(!ret, "succeeded unexpectedly\n");
+ read_size = 0;
for (;;)
{
size = 0;
ret = WinHttpReadData(req, buffer, sizeof(buffer), &size);
ok(ret == TRUE, "WinHttpReadData failed: %u.\n", GetLastError());
if (!size) break;
+ read_size += size;
}
+ ok(read_size > 2014, "read_size = %u\n", read_size);
cleanup:
WinHttpCloseHandle(req);
More information about the wine-cvs
mailing list