Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4abe4cf1
Commit
4abe4cf1
authored
Mar 17, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix compilation on systems that don't support nameless unions.
parent
12b24af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
urlcache.c
dlls/wininet/tests/urlcache.c
+15
-15
No files found.
dlls/wininet/tests/urlcache.c
View file @
4abe4cf1
...
...
@@ -235,11 +235,11 @@ static void test_IsUrlCacheEntryExpiredA(void)
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
ret
=
GetUrlCacheEntryInfo
(
TEST_URL
,
info
,
&
size
);
GetSystemTimeAsFileTime
(
&
info
->
ExpireTime
);
exp_time
.
LowPart
=
info
->
ExpireTime
.
dwLowDateTime
;
exp_time
.
HighPart
=
info
->
ExpireTime
.
dwHighDateTime
;
exp_time
.
u
.
LowPart
=
info
->
ExpireTime
.
dwLowDateTime
;
exp_time
.
u
.
HighPart
=
info
->
ExpireTime
.
dwHighDateTime
;
exp_time
.
QuadPart
-=
10
*
60
*
(
ULONGLONG
)
10000000
;
info
->
ExpireTime
.
dwLowDateTime
=
exp_time
.
LowPart
;
info
->
ExpireTime
.
dwHighDateTime
=
exp_time
.
HighPart
;
info
->
ExpireTime
.
dwLowDateTime
=
exp_time
.
u
.
LowPart
;
info
->
ExpireTime
.
dwHighDateTime
=
exp_time
.
u
.
HighPart
;
ret
=
SetUrlCacheEntryInfo
(
TEST_URL
,
info
,
CACHE_ENTRY_EXPTIME_FC
);
ok
(
ret
,
"SetUrlCacheEntryInfo failed: %d
\n
"
,
GetLastError
());
ft
.
dwLowDateTime
=
0xdeadbeef
;
...
...
@@ -253,8 +253,8 @@ static void test_IsUrlCacheEntryExpiredA(void)
ft
.
dwLowDateTime
,
ft
.
dwHighDateTime
);
/* Set the expire time to a point in the future.. */
exp_time
.
QuadPart
+=
20
*
60
*
(
ULONGLONG
)
10000000
;
info
->
ExpireTime
.
dwLowDateTime
=
exp_time
.
LowPart
;
info
->
ExpireTime
.
dwHighDateTime
=
exp_time
.
HighPart
;
info
->
ExpireTime
.
dwLowDateTime
=
exp_time
.
u
.
LowPart
;
info
->
ExpireTime
.
dwHighDateTime
=
exp_time
.
u
.
HighPart
;
ret
=
SetUrlCacheEntryInfo
(
TEST_URL
,
info
,
CACHE_ENTRY_EXPTIME_FC
);
ok
(
ret
,
"SetUrlCacheEntryInfo failed: %d
\n
"
,
GetLastError
());
ft
.
dwLowDateTime
=
0xdeadbeef
;
...
...
@@ -376,8 +376,8 @@ static void test_urlcacheA(void)
broken
(
lpCacheEntryInfo
->
CacheEntryType
==
NORMAL_CACHE_ENTRY
/* NT4/W2k */
),
"expected type NORMAL_CACHE_ENTRY|URLHISTORY_CACHE_ENTRY, got %08x
\n
"
,
lpCacheEntryInfo
->
CacheEntryType
);
ok
(
!
lpCacheEntryInfo
->
dwExemptDelta
,
"expected dwExemptDelta 0, got %d
\n
"
,
lpCacheEntryInfo
->
dwExemptDelta
);
ok
(
!
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
,
"expected dwExemptDelta 0, got %d
\n
"
,
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
);
HeapFree
(
GetProcessHeap
(),
0
,
lpCacheEntryInfo
);
/* A subsequent commit with a different time/type doesn't change the type */
...
...
@@ -653,9 +653,9 @@ static void test_urlcacheA(void)
ok
(
lpCacheEntryInfo
->
CacheEntryType
&
(
NORMAL_CACHE_ENTRY
|
STICKY_CACHE_ENTRY
),
"expected cache entry type NORMAL_CACHE_ENTRY | STICKY_CACHE_ENTRY, got %d (0x%08x)
\n
"
,
lpCacheEntryInfo
->
CacheEntryType
,
lpCacheEntryInfo
->
CacheEntryType
);
ok
(
lpCacheEntryInfo
->
dwExemptDelta
==
86400
,
ok
(
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
==
86400
,
"expected dwExemptDelta 864000, got %d
\n
"
,
lpCacheEntryInfo
->
dwExemptDelta
);
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
);
HeapFree
(
GetProcessHeap
(),
0
,
lpCacheEntryInfo
);
if
(
pDeleteUrlCacheEntryA
)
{
...
...
@@ -685,17 +685,17 @@ static void test_urlcacheA(void)
ok
(
lpCacheEntryInfo
->
CacheEntryType
&
(
NORMAL_CACHE_ENTRY
|
STICKY_CACHE_ENTRY
),
"expected cache entry type NORMAL_CACHE_ENTRY | STICKY_CACHE_ENTRY, got %d (0x%08x)
\n
"
,
lpCacheEntryInfo
->
CacheEntryType
,
lpCacheEntryInfo
->
CacheEntryType
);
ok
(
lpCacheEntryInfo
->
dwExemptDelta
==
86400
,
ok
(
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
==
86400
,
"expected dwExemptDelta 864000, got %d
\n
"
,
lpCacheEntryInfo
->
dwExemptDelta
);
lpCacheEntryInfo
->
dwExemptDelta
=
0
;
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
);
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
=
0
;
ret
=
SetUrlCacheEntryInfoA
(
TEST_URL
,
lpCacheEntryInfo
,
CACHE_ENTRY_EXEMPT_DELTA_FC
);
ok
(
ret
,
"SetUrlCacheEntryInfo failed: %d
\n
"
,
GetLastError
());
ret
=
GetUrlCacheEntryInfo
(
TEST_URL
,
lpCacheEntryInfo
,
&
cbCacheEntryInfo
);
ok
(
ret
,
"GetUrlCacheEntryInfo failed with error %d
\n
"
,
GetLastError
());
ok
(
!
lpCacheEntryInfo
->
dwExemptDelta
,
"expected dwExemptDelta 0, got %d
\n
"
,
lpCacheEntryInfo
->
dwExemptDelta
);
ok
(
!
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
,
"expected dwExemptDelta 0, got %d
\n
"
,
U
(
*
lpCacheEntryInfo
).
dwExemptDelta
);
/* See whether a sticky cache entry has the flag cleared once the exempt
* delta is meaningless.
*/
...
...
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