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
a1e7371d
Commit
a1e7371d
authored
Feb 06, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Get rid of strcmp_wa().
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
65f5a834
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
winhttp.c
dlls/winhttp/tests/winhttp.c
+1
-17
No files found.
dlls/winhttp/tests/winhttp.c
View file @
a1e7371d
...
@@ -43,22 +43,6 @@ static const WCHAR test_winehq[] = {'t','e','s','t','.','w','i','n','e','h','q',
...
@@ -43,22 +43,6 @@ static const WCHAR test_winehq[] = {'t','e','s','t','.','w','i','n','e','h','q',
static
const
WCHAR
test_winehq_https
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
':'
,
'4'
,
'4'
,
'3'
,
0
};
static
const
WCHAR
test_winehq_https
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
':'
,
'4'
,
'4'
,
'3'
,
0
};
static
const
WCHAR
localhostW
[]
=
{
'l'
,
'o'
,
'c'
,
'a'
,
'l'
,
'h'
,
'o'
,
's'
,
't'
,
0
};
static
const
WCHAR
localhostW
[]
=
{
'l'
,
'o'
,
'c'
,
'a'
,
'l'
,
'h'
,
'o'
,
's'
,
't'
,
0
};
static
WCHAR
*
a2w
(
const
char
*
str
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
WCHAR
*
ret
=
heap_alloc
(
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
);
return
ret
;
}
static
int
strcmp_wa
(
const
WCHAR
*
str1
,
const
char
*
stra
)
{
WCHAR
*
str2
=
a2w
(
stra
);
int
r
=
lstrcmpW
(
str1
,
str2
);
heap_free
(
str2
);
return
r
;
}
static
BOOL
proxy_active
(
void
)
static
BOOL
proxy_active
(
void
)
{
{
WINHTTP_PROXY_INFO
proxy_info
;
WINHTTP_PROXY_INFO
proxy_info
;
...
@@ -2869,7 +2853,7 @@ static void test_multi_authentication(int port)
...
@@ -2869,7 +2853,7 @@ static void test_multi_authentication(int port)
size
=
sizeof
(
buf
);
size
=
sizeof
(
buf
);
ret
=
WinHttpQueryHeaders
(
req
,
WINHTTP_QUERY_CUSTOM
,
www_authenticateW
,
buf
,
&
size
,
&
index
);
ret
=
WinHttpQueryHeaders
(
req
,
WINHTTP_QUERY_CUSTOM
,
www_authenticateW
,
buf
,
&
size
,
&
index
);
ok
(
ret
,
"expected success
\n
"
);
ok
(
ret
,
"expected success
\n
"
);
ok
(
!
strcmp_wa
(
buf
,
"Bearer"
),
"buf = %s
\n
"
,
wine_dbgstr_w
(
buf
));
ok
(
!
lstrcmpW
(
buf
,
L
"Bearer"
),
"buf = %s
\n
"
,
wine_dbgstr_w
(
buf
));
ok
(
size
==
lstrlenW
(
buf
)
*
sizeof
(
WCHAR
),
"size = %u
\n
"
,
size
);
ok
(
size
==
lstrlenW
(
buf
)
*
sizeof
(
WCHAR
),
"size = %u
\n
"
,
size
);
ok
(
index
==
1
,
"index = %u
\n
"
,
index
);
ok
(
index
==
1
,
"index = %u
\n
"
,
index
);
...
...
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