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
510542bd
Commit
510542bd
authored
Feb 28, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsproxy/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e3441490
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
22 deletions
+21
-22
Makefile.in
dlls/jsproxy/tests/Makefile.in
+0
-1
jsproxy.c
dlls/jsproxy/tests/jsproxy.c
+21
-21
No files found.
dlls/jsproxy/tests/Makefile.in
View file @
510542bd
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
jsproxy.dll
IMPORTS
=
jsproxy
...
...
dlls/jsproxy/tests/jsproxy.c
View file @
510542bd
...
...
@@ -49,48 +49,48 @@ static void test_InternetInitializeAutoProxyDll(void)
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
err
=
GetLastError
();
ok
(
!
ret
,
"unexpected success
\n
"
);
ok
(
err
==
ERROR_INVALID_PARAMETER
,
"got %u
\n
"
,
err
);
ok
(
err
==
ERROR_INVALID_PARAMETER
,
"got %
l
u
\n
"
,
err
);
buf
.
dwScriptBufferSize
=
strlen
(
script
)
+
1
;
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
),
host
,
strlen
(
host
),
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"DIRECT"
),
"got
\"
%s
\"\n
"
,
proxy
);
GlobalFree
(
proxy
);
buf
.
dwScriptBufferSize
=
strlen
(
script2
)
+
1
;
buf
.
lpszScriptBuffer
=
script2
;
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
),
host
,
strlen
(
host
),
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"PROXY 10.0.0.1:8080"
),
"got
\"
%s
\"\n
"
,
proxy
);
GlobalFree
(
proxy
);
buf
.
dwScriptBufferSize
=
strlen
(
script2
)
+
2
;
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
),
host
,
strlen
(
host
),
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"PROXY 10.0.0.1:8080"
),
"got
\"
%s
\"\n
"
,
proxy
);
GlobalFree
(
proxy
);
buf
.
lpszScriptBuffer
=
script3
;
buf
.
dwScriptBufferSize
=
strlen
(
script3
);
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
ok
(
ret
||
broken
(
old_jsproxy
&&
!
ret
),
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
||
broken
(
old_jsproxy
&&
!
ret
),
"got %
l
u
\n
"
,
GetLastError
()
);
buf
.
dwScriptBufferSize
=
1
;
script3
[
0
]
=
0
;
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ret
=
pInternetDeInitializeAutoProxyDll
(
NULL
,
0
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
}
static
void
test_InternetGetProxyInfo
(
void
)
...
...
@@ -106,48 +106,48 @@ static void test_InternetGetProxyInfo(void)
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
),
host
,
strlen
(
host
),
&
proxy
,
&
len
);
err
=
GetLastError
();
ok
(
!
ret
,
"unexpected success
\n
"
);
ok
(
err
==
ERROR_CAN_NOT_COMPLETE
,
"got %u
\n
"
,
err
);
ok
(
err
==
ERROR_CAN_NOT_COMPLETE
,
"got %
l
u
\n
"
,
err
);
buf
.
dwStructSize
=
sizeof
(
buf
);
buf
.
lpszScriptBuffer
=
script
;
buf
.
dwScriptBufferSize
=
strlen
(
script
)
+
1
;
ret
=
pInternetInitializeAutoProxyDll
(
0
,
NULL
,
NULL
,
NULL
,
&
buf
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
len
=
0
;
proxy
=
NULL
;
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
),
host
,
strlen
(
host
),
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"DIRECT"
),
"got
\"
%s
\"\n
"
,
proxy
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %u
\n
"
,
len
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %
l
u
\n
"
,
len
);
GlobalFree
(
proxy
);
len
=
0
;
proxy
=
NULL
;
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
)
+
1
,
host
,
strlen
(
host
),
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"DIRECT"
),
"got
\"
%s
\"\n
"
,
proxy
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %u
\n
"
,
len
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %
l
u
\n
"
,
len
);
GlobalFree
(
proxy
);
len
=
0
;
proxy
=
NULL
;
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
)
-
1
,
host
,
strlen
(
host
),
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"DIRECT"
),
"got
\"
%s
\"\n
"
,
proxy
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %u
\n
"
,
len
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %
l
u
\n
"
,
len
);
GlobalFree
(
proxy
);
len
=
0
;
proxy
=
NULL
;
ret
=
pInternetGetProxyInfo
(
url
,
strlen
(
url
),
host
,
strlen
(
host
)
+
1
,
&
proxy
,
&
len
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
ok
(
!
strcmp
(
proxy
,
"DIRECT"
),
"got
\"
%s
\"\n
"
,
proxy
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %u
\n
"
,
len
);
ok
(
len
==
strlen
(
"DIRECT"
)
+
1
,
"got %
l
u
\n
"
,
len
);
GlobalFree
(
proxy
);
ret
=
pInternetDeInitializeAutoProxyDll
(
NULL
,
0
);
ok
(
ret
,
"got %u
\n
"
,
GetLastError
()
);
ok
(
ret
,
"got %
l
u
\n
"
,
GetLastError
()
);
}
START_TEST
(
jsproxy
)
...
...
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