wininet/tests: Get the tests running again on Win98.
This commit is contained in:
parent
824842cac7
commit
089221fcce
@ -30,6 +30,9 @@
|
|||||||
|
|
||||||
#define TEST_URL "http://urlcachetest.winehq.org/index.html"
|
#define TEST_URL "http://urlcachetest.winehq.org/index.html"
|
||||||
|
|
||||||
|
static BOOL (WINAPI *pDeleteUrlCacheEntryA)(LPCSTR);
|
||||||
|
static BOOL (WINAPI *pUnlockUrlCacheEntryFileA)(LPCSTR,DWORD);
|
||||||
|
|
||||||
static char filenameA[MAX_PATH + 1];
|
static char filenameA[MAX_PATH + 1];
|
||||||
|
|
||||||
static void check_cache_entry_infoA(const char *returnedfrom, LPINTERNET_CACHE_ENTRY_INFO lpCacheEntryInfo)
|
static void check_cache_entry_infoA(const char *returnedfrom, LPINTERNET_CACHE_ENTRY_INFO lpCacheEntryInfo)
|
||||||
@ -150,16 +153,22 @@ static void test_urlcacheA(void)
|
|||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, lpCacheEntryInfo);
|
HeapFree(GetProcessHeap(), 0, lpCacheEntryInfo);
|
||||||
|
|
||||||
ret = UnlockUrlCacheEntryFile(TEST_URL, 0);
|
if (pUnlockUrlCacheEntryFileA)
|
||||||
ok(ret, "UnlockUrlCacheEntryFile failed with error %d\n", GetLastError());
|
{
|
||||||
|
ret = pUnlockUrlCacheEntryFileA(TEST_URL, 0);
|
||||||
|
ok(ret, "UnlockUrlCacheEntryFileA failed with error %d\n", GetLastError());
|
||||||
|
}
|
||||||
|
|
||||||
/* test Find*UrlCacheEntry functions */
|
/* test Find*UrlCacheEntry functions */
|
||||||
test_find_url_cache_entriesA();
|
test_find_url_cache_entriesA();
|
||||||
|
|
||||||
test_GetUrlCacheEntryInfoExA();
|
test_GetUrlCacheEntryInfoExA();
|
||||||
|
|
||||||
ret = DeleteUrlCacheEntry(TEST_URL);
|
if (pDeleteUrlCacheEntryA)
|
||||||
ok(ret, "DeleteUrlCacheEntry failed with error %d\n", GetLastError());
|
{
|
||||||
|
ret = pDeleteUrlCacheEntryA(TEST_URL);
|
||||||
|
ok(ret, "DeleteUrlCacheEntryA failed with error %d\n", GetLastError());
|
||||||
|
}
|
||||||
|
|
||||||
ret = DeleteFile(filenameA);
|
ret = DeleteFile(filenameA);
|
||||||
todo_wine
|
todo_wine
|
||||||
@ -178,6 +187,10 @@ static void test_FindCloseUrlCache(void)
|
|||||||
|
|
||||||
START_TEST(urlcache)
|
START_TEST(urlcache)
|
||||||
{
|
{
|
||||||
|
HMODULE hdll;
|
||||||
|
hdll = GetModuleHandleA("wininet.dll");
|
||||||
|
pDeleteUrlCacheEntryA = (void*)GetProcAddress(hdll, "DeleteUrlCacheEntryA");
|
||||||
|
pUnlockUrlCacheEntryFileA = (void*)GetProcAddress(hdll, "UnlockUrlCacheEntryFileA");
|
||||||
test_urlcacheA();
|
test_urlcacheA();
|
||||||
test_FindCloseUrlCache();
|
test_FindCloseUrlCache();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user