Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
089221fc
Commit
089221fc
authored
May 22, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
May 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Get the tests running again on Win98.
parent
824842ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
urlcache.c
dlls/wininet/tests/urlcache.c
+17
-4
No files found.
dlls/wininet/tests/urlcache.c
View file @
089221fc
...
...
@@ -30,6 +30,9 @@
#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
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
);
ret
=
UnlockUrlCacheEntryFile
(
TEST_URL
,
0
);
ok
(
ret
,
"UnlockUrlCacheEntryFile failed with error %d
\n
"
,
GetLastError
());
if
(
pUnlockUrlCacheEntryFileA
)
{
ret
=
pUnlockUrlCacheEntryFileA
(
TEST_URL
,
0
);
ok
(
ret
,
"UnlockUrlCacheEntryFileA failed with error %d
\n
"
,
GetLastError
());
}
/* test Find*UrlCacheEntry functions */
test_find_url_cache_entriesA
();
test_GetUrlCacheEntryInfoExA
();
ret
=
DeleteUrlCacheEntry
(
TEST_URL
);
ok
(
ret
,
"DeleteUrlCacheEntry failed with error %d
\n
"
,
GetLastError
());
if
(
pDeleteUrlCacheEntryA
)
{
ret
=
pDeleteUrlCacheEntryA
(
TEST_URL
);
ok
(
ret
,
"DeleteUrlCacheEntryA failed with error %d
\n
"
,
GetLastError
());
}
ret
=
DeleteFile
(
filenameA
);
todo_wine
...
...
@@ -178,6 +187,10 @@ static void test_FindCloseUrlCache(void)
START_TEST
(
urlcache
)
{
HMODULE
hdll
;
hdll
=
GetModuleHandleA
(
"wininet.dll"
);
pDeleteUrlCacheEntryA
=
(
void
*
)
GetProcAddress
(
hdll
,
"DeleteUrlCacheEntryA"
);
pUnlockUrlCacheEntryFileA
=
(
void
*
)
GetProcAddress
(
hdll
,
"UnlockUrlCacheEntryFileA"
);
test_urlcacheA
();
test_FindCloseUrlCache
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment