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
ce7eb256
Commit
ce7eb256
authored
Jan 31, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: UrlIs* is not present on Win95B (winetestbot).
parent
4f4a47a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
15 deletions
+28
-15
url.c
dlls/shlwapi/tests/url.c
+28
-15
No files found.
dlls/shlwapi/tests/url.c
View file @
ce7eb256
...
@@ -31,6 +31,8 @@
...
@@ -31,6 +31,8 @@
/* ################ */
/* ################ */
static
HMODULE
hShlwapi
;
static
HMODULE
hShlwapi
;
static
BOOL
(
WINAPI
*
pUrlIsA
)(
LPCSTR
,
URLIS
);
static
BOOL
(
WINAPI
*
pUrlIsW
)(
LPCWSTR
,
URLIS
);
static
HRESULT
(
WINAPI
*
pUrlHashA
)(
LPCSTR
,
LPBYTE
,
DWORD
);
static
HRESULT
(
WINAPI
*
pUrlHashA
)(
LPCSTR
,
LPBYTE
,
DWORD
);
static
HRESULT
(
WINAPI
*
pUrlHashW
)(
LPCWSTR
,
LPBYTE
,
DWORD
);
static
HRESULT
(
WINAPI
*
pUrlHashW
)(
LPCWSTR
,
LPBYTE
,
DWORD
);
static
HRESULT
(
WINAPI
*
pUrlGetPartA
)(
LPCSTR
,
LPSTR
,
LPDWORD
,
DWORD
,
DWORD
);
static
HRESULT
(
WINAPI
*
pUrlGetPartA
)(
LPCSTR
,
LPSTR
,
LPDWORD
,
DWORD
,
DWORD
);
...
@@ -995,39 +997,48 @@ static void test_UrlIs(void)
...
@@ -995,39 +997,48 @@ static void test_UrlIs(void)
size_t
i
;
size_t
i
;
WCHAR
wurl
[
80
];
WCHAR
wurl
[
80
];
if
(
!
pUrlIsA
)
{
win_skip
(
"UrlIsA not found
\n
"
);
return
;
}
for
(
i
=
0
;
i
<
sizeof
(
TEST_PATH_IS_URL
)
/
sizeof
(
TEST_PATH_IS_URL
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
TEST_PATH_IS_URL
)
/
sizeof
(
TEST_PATH_IS_URL
[
0
]);
i
++
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
TEST_PATH_IS_URL
[
i
].
path
,
-
1
,
wurl
,
80
);
MultiByteToWideChar
(
CP_ACP
,
0
,
TEST_PATH_IS_URL
[
i
].
path
,
-
1
,
wurl
,
80
);
ret
=
UrlIsA
(
TEST_PATH_IS_URL
[
i
].
path
,
URLIS_URL
);
ret
=
p
UrlIsA
(
TEST_PATH_IS_URL
[
i
].
path
,
URLIS_URL
);
ok
(
ret
==
TEST_PATH_IS_URL
[
i
].
expect
,
ok
(
ret
==
TEST_PATH_IS_URL
[
i
].
expect
,
"returned %d from path %s, expected %d
\n
"
,
ret
,
TEST_PATH_IS_URL
[
i
].
path
,
"returned %d from path %s, expected %d
\n
"
,
ret
,
TEST_PATH_IS_URL
[
i
].
path
,
TEST_PATH_IS_URL
[
i
].
expect
);
TEST_PATH_IS_URL
[
i
].
expect
);
ret
=
UrlIsW
(
wurl
,
URLIS_URL
);
if
(
pUrlIsW
)
{
ok
(
ret
==
TEST_PATH_IS_URL
[
i
].
expect
,
ret
=
pUrlIsW
(
wurl
,
URLIS_URL
);
"returned %d from path (UrlIsW) %s, expected %d
\n
"
,
ret
,
TEST_PATH_IS_URL
[
i
].
path
,
ok
(
ret
==
TEST_PATH_IS_URL
[
i
].
expect
,
TEST_PATH_IS_URL
[
i
].
expect
);
"returned %d from path (UrlIsW) %s, expected %d
\n
"
,
ret
,
TEST_PATH_IS_URL
[
i
].
path
,
TEST_PATH_IS_URL
[
i
].
expect
);
}
}
}
for
(
i
=
0
;
i
<
sizeof
(
TEST_URLIS_ATTRIBS
)
/
sizeof
(
TEST_URLIS_ATTRIBS
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
TEST_URLIS_ATTRIBS
)
/
sizeof
(
TEST_URLIS_ATTRIBS
[
0
]);
i
++
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
-
1
,
wurl
,
80
);
MultiByteToWideChar
(
CP_ACP
,
0
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
-
1
,
wurl
,
80
);
ret
=
UrlIsA
(
TEST_URLIS_ATTRIBS
[
i
].
url
,
URLIS_OPAQUE
);
ret
=
p
UrlIsA
(
TEST_URLIS_ATTRIBS
[
i
].
url
,
URLIS_OPAQUE
);
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
,
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
,
"returned %d for URLIS_OPAQUE, url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
"returned %d for URLIS_OPAQUE, url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
);
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
);
ret
=
UrlIsA
(
TEST_URLIS_ATTRIBS
[
i
].
url
,
URLIS_FILEURL
);
ret
=
p
UrlIsA
(
TEST_URLIS_ATTRIBS
[
i
].
url
,
URLIS_FILEURL
);
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectFile
,
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectFile
,
"returned %d for URLIS_FILEURL, url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
"returned %d for URLIS_FILEURL, url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
TEST_URLIS_ATTRIBS
[
i
].
expectFile
);
TEST_URLIS_ATTRIBS
[
i
].
expectFile
);
ret
=
UrlIsW
(
wurl
,
URLIS_OPAQUE
);
if
(
pUrlIsW
)
{
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
,
ret
=
pUrlIsW
(
wurl
,
URLIS_OPAQUE
);
"returned %d for URLIS_OPAQUE (UrlIsW), url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
,
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
);
"returned %d for URLIS_OPAQUE (UrlIsW), url
\"
%s
\"
, expected %d
\n
"
,
ret
=
UrlIsW
(
wurl
,
URLIS_FILEURL
);
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
TEST_URLIS_ATTRIBS
[
i
].
expectOpaque
);
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectFile
,
ret
=
pUrlIsW
(
wurl
,
URLIS_FILEURL
);
"returned %d for URLIS_FILEURL (UrlIsW), url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
ok
(
ret
==
TEST_URLIS_ATTRIBS
[
i
].
expectFile
,
TEST_URLIS_ATTRIBS
[
i
].
expectFile
);
"returned %d for URLIS_FILEURL (UrlIsW), url
\"
%s
\"
, expected %d
\n
"
,
ret
,
TEST_URLIS_ATTRIBS
[
i
].
url
,
TEST_URLIS_ATTRIBS
[
i
].
expectFile
);
}
}
}
}
}
...
@@ -1255,6 +1266,8 @@ START_TEST(url)
...
@@ -1255,6 +1266,8 @@ START_TEST(url)
{
{
hShlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
hShlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
pUrlIsA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlIsA"
);
pUrlIsW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlIsW"
);
pUrlHashA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlHashA"
);
pUrlHashA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlHashA"
);
pUrlHashW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlHashW"
);
pUrlHashW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlHashW"
);
pUrlGetPartA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlGetPartA"
);
pUrlGetPartA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"UrlGetPartA"
);
...
...
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