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
680f2512
Commit
680f2512
authored
Feb 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: status_string clean up.
parent
923498da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
http.c
dlls/wininet/tests/http.c
+7
-11
No files found.
dlls/wininet/tests/http.c
View file @
680f2512
...
...
@@ -62,14 +62,14 @@ static BOOL first_connection_to_test_url = TRUE;
if (!expect[status] && !optional[status] && wine_allow[status]) \
{ \
todo_wine ok(expect[status], "unexpected status %d (%s)\n", status, \
status < MAX_INTERNET_STATUS && status_string[status]
[0] != 0
? \
status < MAX_INTERNET_STATUS && status_string[status] ? \
status_string[status] : "unknown"); \
wine_allow[status]--; \
} \
else \
{ \
ok(expect[status] || optional[status], "unexpected status %d (%s)\n", status, \
status < MAX_INTERNET_STATUS && status_string[status]
[0] != 0
? \
status < MAX_INTERNET_STATUS && status_string[status] ? \
status_string[status] : "unknown"); \
if (expect[status]) expect[status]--; \
else optional[status]--; \
...
...
@@ -86,7 +86,7 @@ static BOOL first_connection_to_test_url = TRUE;
do { \
ok(notified[status] + optional[status] == (num), \
"expected status %d (%s) %d times, received %d times\n", \
status, status < MAX_INTERNET_STATUS && status_string[status]
[0] != 0
? \
status, status < MAX_INTERNET_STATUS && status_string[status] ? \
status_string[status] : "unknown", (num), notified[status]); \
CLEAR_NOTIFIED(status); \
}while(0)
...
...
@@ -98,10 +98,9 @@ static BOOL first_connection_to_test_url = TRUE;
CHECK_NOTIFIED2(status, 0)
#define MAX_INTERNET_STATUS (INTERNET_STATUS_COOKIE_HISTORY+1)
#define MAX_STATUS_NAME 50
static
int
expect
[
MAX_INTERNET_STATUS
],
optional
[
MAX_INTERNET_STATUS
],
wine_allow
[
MAX_INTERNET_STATUS
],
notified
[
MAX_INTERNET_STATUS
];
static
CHAR
status_string
[
MAX_INTERNET_STATUS
][
MAX_STATUS_NAME
];
static
const
char
*
status_string
[
MAX_INTERNET_STATUS
];
static
HANDLE
hCompleteEvent
;
...
...
@@ -3246,11 +3245,6 @@ static void test_InternetCloseHandle(void)
closetest_req
,
res
,
GetLastError
());
}
#define STATUS_STRING(status) \
memcpy(status_string[status], #status, sizeof(CHAR) * \
(strlen(#status) < MAX_STATUS_NAME ? \
strlen(#status) : \
MAX_STATUS_NAME - 1))
static
void
init_status_tests
(
void
)
{
memset
(
expect
,
0
,
sizeof
(
expect
));
...
...
@@ -3258,6 +3252,8 @@ static void init_status_tests(void)
memset
(
wine_allow
,
0
,
sizeof
(
wine_allow
));
memset
(
notified
,
0
,
sizeof
(
notified
));
memset
(
status_string
,
0
,
sizeof
(
status_string
));
#define STATUS_STRING(status) status_string[status] = #status
STATUS_STRING
(
INTERNET_STATUS_RESOLVING_NAME
);
STATUS_STRING
(
INTERNET_STATUS_NAME_RESOLVED
);
STATUS_STRING
(
INTERNET_STATUS_CONNECTING_TO_SERVER
);
...
...
@@ -3284,8 +3280,8 @@ static void init_status_tests(void)
STATUS_STRING
(
INTERNET_STATUS_P3P_HEADER
);
STATUS_STRING
(
INTERNET_STATUS_P3P_POLICYREF
);
STATUS_STRING
(
INTERNET_STATUS_COOKIE_HISTORY
);
}
#undef STATUS_STRING
}
START_TEST
(
http
)
{
...
...
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