Commit 9d6843a8 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Test if cache entry is created when INTERNET_FLAG_NO_CACHE_WRITE flag is used.

parent bbbc6d11
......@@ -1072,6 +1072,10 @@ static void InternetOpenUrlA_test(void)
DWORD size, readbytes, totalbytes=0;
BOOL ret;
ret = DeleteUrlCacheEntry(TEST_URL);
ok(ret || GetLastError() == ERROR_FILE_NOT_FOUND,
"DeleteUrlCacheEntry returned %x, GetLastError() = %d\n", ret, GetLastError());
myhinternet = InternetOpen("Winetest",0,NULL,NULL,INTERNET_FLAG_NO_CACHE_WRITE);
ok((myhinternet != 0), "InternetOpen failed, error %u\n",GetLastError());
size = 0x400;
......@@ -1093,6 +1097,9 @@ static void InternetOpenUrlA_test(void)
InternetCloseHandle(myhttp);
InternetCloseHandle(myhinternet);
ret = DeleteUrlCacheEntry(TEST_URL);
ok(!ret && GetLastError() == ERROR_FILE_NOT_FOUND, "INTERNET_FLAG_NO_CACHE_WRITE flag doesn't work\n");
}
static void HttpSendRequestEx_test(void)
......
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