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
50febc48
Commit
50febc48
authored
Jun 12, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Test query schemes.
parent
85f3fe73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
winhttp.c
dlls/winhttp/tests/winhttp.c
+16
-2
No files found.
dlls/winhttp/tests/winhttp.c
View file @
50febc48
...
...
@@ -1881,7 +1881,7 @@ static void test_basic_request(int port, const WCHAR *verb, const WCHAR *path)
{
HINTERNET
ses
,
con
,
req
;
char
buffer
[
0x100
];
DWORD
count
,
status
,
size
;
DWORD
count
,
status
,
size
,
supported
,
first
,
target
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
...
...
@@ -1904,6 +1904,13 @@ static void test_basic_request(int port, const WCHAR *verb, const WCHAR *path)
ok
(
ret
,
"failed to query status code %u
\n
"
,
GetLastError
());
ok
(
status
==
200
,
"request failed unexpectedly %u
\n
"
,
status
);
supported
=
first
=
target
=
0xffff
;
ret
=
WinHttpQueryAuthSchemes
(
req
,
&
supported
,
&
first
,
&
target
);
ok
(
!
ret
,
"unexpected success
\n
"
);
ok
(
supported
==
0xffff
,
"got %x
\n
"
,
supported
);
ok
(
first
==
0xffff
,
"got %x
\n
"
,
first
);
ok
(
target
==
0xffff
,
"got %x
\n
"
,
target
);
count
=
0
;
memset
(
buffer
,
0
,
sizeof
(
buffer
));
ret
=
WinHttpReadData
(
req
,
buffer
,
sizeof
buffer
,
&
count
);
...
...
@@ -1922,7 +1929,7 @@ static void test_basic_authentication(int port)
static
const
WCHAR
userW
[]
=
{
'u'
,
's'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
passW
[]
=
{
'p'
,
'w'
,
'd'
,
0
};
HINTERNET
ses
,
con
,
req
;
DWORD
status
,
size
,
error
;
DWORD
status
,
size
,
error
,
supported
,
first
,
target
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
...
...
@@ -1934,6 +1941,13 @@ static void test_basic_authentication(int port)
req
=
WinHttpOpenRequest
(
con
,
NULL
,
authW
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
req
!=
NULL
,
"failed to open a request %u
\n
"
,
GetLastError
());
supported
=
first
=
target
=
0xffff
;
ret
=
WinHttpQueryAuthSchemes
(
req
,
&
supported
,
&
first
,
&
target
);
ok
(
!
ret
,
"unexpected success
\n
"
);
ok
(
supported
==
0xffff
,
"got %x
\n
"
,
supported
);
ok
(
first
==
0xffff
,
"got %x
\n
"
,
first
);
ok
(
target
==
0xffff
,
"got %x
\n
"
,
target
);
ret
=
WinHttpSendRequest
(
req
,
NULL
,
0
,
NULL
,
0
,
0
,
0
);
ok
(
ret
,
"failed to send request %u
\n
"
,
GetLastError
());
...
...
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