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
0789ec11
Commit
0789ec11
authored
May 08, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Allow some more optional progress notifications.
parent
b80c71ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
protocol.c
dlls/urlmon/tests/protocol.c
+4
-2
No files found.
dlls/urlmon/tests/protocol.c
View file @
0789ec11
...
@@ -594,6 +594,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
...
@@ -594,6 +594,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
SET_EXPECT
(
OnResponse
);
SET_EXPECT
(
OnResponse
);
if
(
tested_protocol
==
HTTPS_TEST
||
test_redirect
||
test_abort
||
empty_file
)
if
(
tested_protocol
==
HTTPS_TEST
||
test_redirect
||
test_abort
||
empty_file
)
SET_EXPECT
(
ReportProgress_ACCEPTRANGES
);
SET_EXPECT
(
ReportProgress_ACCEPTRANGES
);
SET_EXPECT
(
ReportProgress_ENCODING
);
SET_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
SET_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
if
(
bindf
&
BINDF_NEEDFILE
)
if
(
bindf
&
BINDF_NEEDFILE
)
SET_EXPECT
(
ReportProgress_CACHEFILENAMEAVAILABLE
);
SET_EXPECT
(
ReportProgress_CACHEFILENAMEAVAILABLE
);
...
@@ -627,6 +628,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
...
@@ -627,6 +628,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
CHECK_CALLED
(
ReportProgress_ACCEPTRANGES
);
CHECK_CALLED
(
ReportProgress_ACCEPTRANGES
);
else
if
(
test_redirect
||
test_abort
)
else
if
(
test_redirect
||
test_abort
)
CLEAR_CALLED
(
ReportProgress_ACCEPTRANGES
);
CLEAR_CALLED
(
ReportProgress_ACCEPTRANGES
);
CLEAR_CALLED
(
ReportProgress_ENCODING
);
CHECK_CALLED
(
ReportProgress_MIMETYPEAVAILABLE
);
CHECK_CALLED
(
ReportProgress_MIMETYPEAVAILABLE
);
if
(
bindf
&
BINDF_NEEDFILE
)
if
(
bindf
&
BINDF_NEEDFILE
)
CHECK_CALLED
(
ReportProgress_CACHEFILENAMEAVAILABLE
);
CHECK_CALLED
(
ReportProgress_CACHEFILENAMEAVAILABLE
);
...
@@ -751,7 +753,7 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
...
@@ -751,7 +753,7 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
switch
(
ulStatusCode
)
{
switch
(
ulStatusCode
)
{
case
BINDSTATUS_MIMETYPEAVAILABLE
:
case
BINDSTATUS_MIMETYPEAVAILABLE
:
CHECK_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
CHECK_EXPECT
2
(
ReportProgress_MIMETYPEAVAILABLE
);
if
(
tested_protocol
!=
FILE_TEST
&&
tested_protocol
!=
ITS_TEST
&&
!
mimefilter_test
&&
(
pi
&
PI_MIMEVERIFICATION
))
{
if
(
tested_protocol
!=
FILE_TEST
&&
tested_protocol
!=
ITS_TEST
&&
!
mimefilter_test
&&
(
pi
&
PI_MIMEVERIFICATION
))
{
if
(
!
short_read
||
!
direct_read
)
if
(
!
short_read
||
!
direct_read
)
CHECK_CALLED
(
Read
);
/* set in Continue */
CHECK_CALLED
(
Read
);
/* set in Continue */
...
@@ -831,7 +833,7 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
...
@@ -831,7 +833,7 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
ok
(
!
lstrcmpW
(
szStatusText
,
null_guid
),
"unexpected classid %s
\n
"
,
wine_dbgstr_w
(
szStatusText
));
ok
(
!
lstrcmpW
(
szStatusText
,
null_guid
),
"unexpected classid %s
\n
"
,
wine_dbgstr_w
(
szStatusText
));
break
;
break
;
case
BINDSTATUS_COOKIE_SENT
:
case
BINDSTATUS_COOKIE_SENT
:
CHECK_EXPECT
(
ReportProgress_COOKIE_SENT
);
CHECK_EXPECT
2
(
ReportProgress_COOKIE_SENT
);
ok
(
szStatusText
==
NULL
,
"szStatusText != NULL
\n
"
);
ok
(
szStatusText
==
NULL
,
"szStatusText != NULL
\n
"
);
break
;
break
;
case
BINDSTATUS_REDIRECTING
:
case
BINDSTATUS_REDIRECTING
:
...
...
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