Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
59b2365c
Commit
59b2365c
authored
Aug 07, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Add test for binding to a URL from which a very short response is received.
parent
0713c328
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
url.c
dlls/urlmon/tests/url.c
+11
-2
No files found.
dlls/urlmon/tests/url.c
View file @
59b2365c
...
...
@@ -93,6 +93,10 @@ static const WCHAR TEST_PART_URL_1[] = {'/','t','e','s','t','/','\0'};
static
const
WCHAR
WINE_ABOUT_URL
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'w'
,
'w'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
's'
,
'i'
,
't'
,
'e'
,
'/'
,
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
0
};
static
const
WCHAR
SHORT_RESPONSE_URL
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'c'
,
'r'
,
'o'
,
's'
,
's'
,
'o'
,
'v'
,
'e'
,
'r'
,
'.'
,
'c'
,
'o'
,
'd'
,
'e'
,
'w'
,
'e'
,
'a'
,
'v'
,
'e'
,
'r'
,
's'
,
'.'
,
'c'
,
'o'
,
'm'
,
'/'
,
'p'
,
'o'
,
's'
,
't'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
static
const
WCHAR
ABOUT_BLANK
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
static
WCHAR
INDEX_HTML
[
MAX_PATH
];
static
const
WCHAR
ITS_URL
[]
=
...
...
@@ -108,7 +112,7 @@ static BOOL stopped_binding = FALSE, emulate_protocol = FALSE,
data_available
=
FALSE
,
http_is_first
=
TRUE
;
static
DWORD
read
=
0
,
bindf
=
0
;
static
const
LPCWSTR
urls
[]
=
{
static
LPCWSTR
urls
[]
=
{
WINE_ABOUT_URL
,
ABOUT_BLANK
,
INDEX_HTML
,
...
...
@@ -910,7 +914,7 @@ static void test_BindToStorage(int protocol, BOOL emul)
}
CHECK_CALLED
(
OnProgress_BEGINDOWNLOADDATA
);
if
(
test_protocol
==
HTTP_TEST
)
C
HECK
_CALLED
(
OnProgress_DOWNLOADINGDATA
);
C
LEAR
_CALLED
(
OnProgress_DOWNLOADINGDATA
);
CHECK_CALLED
(
OnProgress_ENDDOWNLOADDATA
);
CHECK_CALLED
(
OnDataAvailable
);
CHECK_CALLED
(
OnStopBinding
);
...
...
@@ -998,6 +1002,11 @@ START_TEST(url)
trace
(
"http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
);
trace
(
"http test (short response)...
\n
"
);
http_is_first
=
TRUE
;
urls
[
HTTP_TEST
]
=
SHORT_RESPONSE_URL
;
test_BindToStorage
(
HTTP_TEST
,
FALSE
);
trace
(
"about test...
\n
"
);
CoInitialize
(
NULL
);
test_BindToStorage
(
ABOUT_TEST
,
FALSE
);
...
...
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