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
b3e5d2c1
Commit
b3e5d2c1
authored
May 03, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Allow multiple COOKIE_SENT notifications, and trace received progress messages.
parent
2ded2fe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
2 deletions
+64
-2
protocol.c
dlls/urlmon/tests/protocol.c
+64
-2
No files found.
dlls/urlmon/tests/protocol.c
View file @
b3e5d2c1
...
...
@@ -568,8 +568,6 @@ static void call_continue(PROTOCOLDATA *protocol_data)
HRESULT
hres
;
if
(
state
==
STATE_CONNECTING
)
{
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
CLEAR_CALLED
(
ReportProgress_COOKIE_SENT
);
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
||
tested_protocol
==
FTP_TEST
)
{
if
(
http_is_first
){
CLEAR_CALLED
(
ReportProgress_FINDINGRESOURCE
);
...
...
@@ -585,6 +583,8 @@ static void call_continue(PROTOCOLDATA *protocol_data)
CHECK_CALLED
(
ReportProgress_REDIRECTING
);
state
=
test_async_req
?
STATE_SENDINGREQUEST
:
STATE_STARTDOWNLOADING
;
}
else
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
CLEAR_CALLED
(
ReportProgress_COOKIE_SENT
);
switch
(
state
)
{
case
STATE_SENDINGREQUEST
:
...
...
@@ -682,6 +682,63 @@ static HRESULT WINAPI ProtocolSink_Switch(IInternetProtocolSink *iface, PROTOCOL
return
S_OK
;
}
static
const
char
*
status_names
[]
=
{
"0"
,
"FINDINGRESOURCE"
,
"CONNECTING"
,
"REDIRECTING"
,
"BEGINDOWNLOADDATA"
,
"DOWNLOADINGDATA"
,
"ENDDOWNLOADDATA"
,
"BEGINDOWNLOADCOMPONENTS"
,
"INSTALLINGCOMPONENTS"
,
"ENDDOWNLOADCOMPONENTS"
,
"USINGCACHEDCOPY"
,
"SENDINGREQUEST"
,
"CLASSIDAVAILABLE"
,
"MIMETYPEAVAILABLE"
,
"CACHEFILENAMEAVAILABLE"
,
"BEGINSYNCOPERATION"
,
"ENDSYNCOPERATION"
,
"BEGINUPLOADDATA"
,
"UPLOADINGDATA"
,
"ENDUPLOADINGDATA"
,
"PROTOCOLCLASSID"
,
"ENCODING"
,
"VERIFIEDMIMETYPEAVAILABLE"
,
"CLASSINSTALLLOCATION"
,
"DECODING"
,
"LOADINGMIMEHANDLER"
,
"CONTENTDISPOSITIONATTACH"
,
"FILTERREPORTMIMETYPE"
,
"CLSIDCANINSTANTIATE"
,
"IUNKNOWNAVAILABLE"
,
"DIRECTBIND"
,
"RAWMIMETYPE"
,
"PROXYDETECTING"
,
"ACCEPTRANGES"
,
"COOKIE_SENT"
,
"COMPACT_POLICY_RECEIVED"
,
"COOKIE_SUPPRESSED"
,
"COOKIE_STATE_UNKNOWN"
,
"COOKIE_STATE_ACCEPT"
,
"COOKIE_STATE_REJECT"
,
"COOKIE_STATE_PROMPT"
,
"COOKIE_STATE_LEASH"
,
"COOKIE_STATE_DOWNGRADE"
,
"POLICY_HREF"
,
"P3P_HEADER"
,
"SESSION_COOKIE_RECEIVED"
,
"PERSISTENT_COOKIE_RECEIVED"
,
"SESSION_COOKIES_ALLOWED"
,
"CACHECONTROL"
,
"CONTENTDISPOSITIONFILENAME"
,
"MIMETEXTPLAINMISMATCH"
,
"PUBLISHERAVAILABLE"
,
"DISPLAYNAMEAVAILABLE"
};
static
HRESULT
WINAPI
ProtocolSink_ReportProgress
(
IInternetProtocolSink
*
iface
,
ULONG
ulStatusCode
,
LPCWSTR
szStatusText
)
{
...
...
@@ -689,6 +746,11 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'}'
,
0
};
static
const
WCHAR
text_plain
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'p'
,
'l'
,
'a'
,
'i'
,
'n'
,
0
};
if
(
ulStatusCode
<
sizeof
(
status_names
)
/
sizeof
(
status_names
[
0
]))
trace
(
"progress: %s %s
\n
"
,
status_names
[
ulStatusCode
],
wine_dbgstr_w
(
szStatusText
)
);
else
trace
(
"progress: %u %s
\n
"
,
ulStatusCode
,
wine_dbgstr_w
(
szStatusText
)
);
switch
(
ulStatusCode
)
{
case
BINDSTATUS_MIMETYPEAVAILABLE
:
CHECK_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
...
...
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