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
7af0b1cb
Commit
7af0b1cb
authored
Feb 16, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use winetest page URL for abort test.
parent
4e079d6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
protocol.c
dlls/urlmon/tests/protocol.c
+5
-3
No files found.
dlls/urlmon/tests/protocol.c
View file @
7af0b1cb
...
@@ -630,7 +630,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
...
@@ -630,7 +630,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
case
STATE_STARTDOWNLOADING
:
case
STATE_STARTDOWNLOADING
:
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
{
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
{
SET_EXPECT
(
OnResponse
);
SET_EXPECT
(
OnResponse
);
if
(
tested_protocol
==
HTTPS_TEST
||
test_redirect
)
if
(
tested_protocol
==
HTTPS_TEST
||
test_redirect
||
test_abort
)
SET_EXPECT
(
ReportProgress_ACCEPTRANGES
);
SET_EXPECT
(
ReportProgress_ACCEPTRANGES
);
SET_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
SET_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
if
(
bindf
&
BINDF_NEEDFILE
)
if
(
bindf
&
BINDF_NEEDFILE
)
...
@@ -661,7 +661,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
...
@@ -661,7 +661,7 @@ static void call_continue(PROTOCOLDATA *protocol_data)
state
=
STATE_DOWNLOADING
;
state
=
STATE_DOWNLOADING
;
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
{
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
{
CHECK_CALLED
(
OnResponse
);
CHECK_CALLED
(
OnResponse
);
if
(
tested_protocol
==
HTTPS_TEST
)
if
(
tested_protocol
==
HTTPS_TEST
||
test_abort
)
CHECK_CALLED
(
ReportProgress_ACCEPTRANGES
);
CHECK_CALLED
(
ReportProgress_ACCEPTRANGES
);
else
if
(
test_redirect
)
else
if
(
test_redirect
)
CLEAR_CALLED
(
ReportProgress_ACCEPTRANGES
);
CLEAR_CALLED
(
ReportProgress_ACCEPTRANGES
);
...
@@ -2893,6 +2893,8 @@ static void test_http_protocol(void)
...
@@ -2893,6 +2893,8 @@ static void test_http_protocol(void)
static
const
WCHAR
redirect_url
[]
=
static
const
WCHAR
redirect_url
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'r'
,
'e'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
0
};
't'
,
'e'
,
's'
,
't'
,
'r'
,
'e'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
0
};
static
const
WCHAR
winetest_url
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
'd'
,
'a'
,
't'
,
'a'
,
'/'
,
0
};
trace
(
"Testing http protocol (not from urlmon)...
\n
"
);
trace
(
"Testing http protocol (not from urlmon)...
\n
"
);
bindf
=
BINDF_ASYNCHRONOUS
|
BINDF_ASYNCSTORAGE
|
BINDF_PULLDATA
;
bindf
=
BINDF_ASYNCHRONOUS
|
BINDF_ASYNCSTORAGE
|
BINDF_PULLDATA
;
...
@@ -2924,7 +2926,7 @@ static void test_http_protocol(void)
...
@@ -2924,7 +2926,7 @@ static void test_http_protocol(void)
test_http_protocol_url
(
redirect_url
,
HTTP_TEST
,
TEST_REDIRECT
,
TYMED_NULL
);
test_http_protocol_url
(
redirect_url
,
HTTP_TEST
,
TEST_REDIRECT
,
TYMED_NULL
);
trace
(
"Testing http protocol abort...
\n
"
);
trace
(
"Testing http protocol abort...
\n
"
);
test_http_protocol_url
(
wine
hq
_url
,
HTTP_TEST
,
TEST_ABORT
,
TYMED_NULL
);
test_http_protocol_url
(
wine
test
_url
,
HTTP_TEST
,
TEST_ABORT
,
TYMED_NULL
);
test_early_abort
(
&
CLSID_HttpProtocol
);
test_early_abort
(
&
CLSID_HttpProtocol
);
test_early_abort
(
&
CLSID_HttpSProtocol
);
test_early_abort
(
&
CLSID_HttpSProtocol
);
...
...
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