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
a9b27c2b
Commit
a9b27c2b
authored
May 16, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
May 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Make ParseUrl call tests more strict.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e9dad9d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
misc.c
dlls/urlmon/tests/misc.c
+20
-13
No files found.
dlls/urlmon/tests/misc.c
View file @
a9b27c2b
...
...
@@ -61,6 +61,7 @@ DEFINE_GUID(CLSID_AboutProtocol, 0x3050F406, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xA
}while(0)
DEFINE_EXPECT
(
ParseUrl
);
DEFINE_EXPECT
(
ParseUrl_ENCODE
);
DEFINE_EXPECT
(
QI_IInternetProtocolInfo
);
DEFINE_EXPECT
(
CreateInstance
);
DEFINE_EXPECT
(
unk_Release
);
...
...
@@ -875,9 +876,9 @@ static HRESULT WINAPI InternetProtocolInfo_ParseUrl(IInternetProtocolInfo *iface
PARSEACTION
ParseAction
,
DWORD
dwParseFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
CHECK_EXPECT2
(
ParseUrl
);
if
(
ParseAction
==
PARSE_SECURITY_URL
)
{
switch
(
ParseAction
)
{
case
PARSE_SECURITY_URL
:
CHECK_EXPECT2
(
ParseUrl
);
if
(
pcchResult
)
*
pcchResult
=
ARRAY_SIZE
(
url1
);
...
...
@@ -886,6 +887,12 @@ static HRESULT WINAPI InternetProtocolInfo_ParseUrl(IInternetProtocolInfo *iface
memcpy
(
pwzResult
,
url1
,
sizeof
(
url1
));
return
S_OK
;
case
PARSE_ENCODE
:
CHECK_EXPECT2
(
ParseUrl_ENCODE
);
break
;
default:
CHECK_EXPECT2
(
ParseUrl
);
break
;
}
return
E_NOTIMPL
;
...
...
@@ -1030,24 +1037,24 @@ static void test_NameSpace(void)
expect_cf
=
&
test_protocol_cf
;
SET_EXPECT
(
QI_IInternetProtocolInfo
);
SET_EXPECT
(
CreateInstance
);
SET_EXPECT
(
ParseUrl
);
SET_EXPECT
(
ParseUrl
_ENCODE
);
hres
=
pCoInternetParseUrl
(
url8
,
PARSE_ENCODE
,
0
,
buf
,
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
QI_IInternetProtocolInfo
);
CHECK_CALLED
(
CreateInstance
);
CHECK_CALLED
(
ParseUrl
);
CHECK_CALLED
(
ParseUrl
_ENCODE
);
qiret
=
S_OK
;
SET_EXPECT
(
QI_IInternetProtocolInfo
);
SET_EXPECT
(
ParseUrl
);
SET_EXPECT
(
ParseUrl
_ENCODE
);
hres
=
pCoInternetParseUrl
(
url8
,
PARSE_ENCODE
,
0
,
buf
,
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
QI_IInternetProtocolInfo
);
CHECK_CALLED
(
ParseUrl
);
CHECK_CALLED
(
ParseUrl
_ENCODE
);
SET_EXPECT
(
QI_IInternetProtocolInfo
);
SET_EXPECT
(
ParseUrl
);
...
...
@@ -1097,38 +1104,38 @@ static void test_NameSpace(void)
ok
(
hres
==
S_OK
,
"RegisterNameSpace failed: %08x
\n
"
,
hres
);
SET_EXPECT
(
QI_IInternetProtocolInfo
);
SET_EXPECT
(
ParseUrl
);
SET_EXPECT
(
ParseUrl
_ENCODE
);
hres
=
pCoInternetParseUrl
(
url8
,
PARSE_ENCODE
,
0
,
buf
,
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
QI_IInternetProtocolInfo
);
CHECK_CALLED
(
ParseUrl
);
CHECK_CALLED
(
ParseUrl
_ENCODE
);
hres
=
IInternetSession_UnregisterNameSpace
(
session
,
&
test_protocol_cf
,
wszTest
);
ok
(
hres
==
S_OK
,
"UnregisterNameSpace failed: %08x
\n
"
,
hres
);
SET_EXPECT
(
QI_IInternetProtocolInfo
);
SET_EXPECT
(
ParseUrl
);
SET_EXPECT
(
ParseUrl
_ENCODE
);
hres
=
pCoInternetParseUrl
(
url8
,
PARSE_ENCODE
,
0
,
buf
,
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
QI_IInternetProtocolInfo
);
CHECK_CALLED
(
ParseUrl
);
CHECK_CALLED
(
ParseUrl
_ENCODE
);
hres
=
IInternetSession_UnregisterNameSpace
(
session
,
&
test_protocol_cf
,
wszTest
);
ok
(
hres
==
S_OK
,
"UnregisterNameSpace failed: %08x
\n
"
,
hres
);
expect_cf
=
&
test_protocol_cf2
;
SET_EXPECT
(
QI_IInternetProtocolInfo
);
SET_EXPECT
(
ParseUrl
);
SET_EXPECT
(
ParseUrl
_ENCODE
);
hres
=
pCoInternetParseUrl
(
url8
,
PARSE_ENCODE
,
0
,
buf
,
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
QI_IInternetProtocolInfo
);
CHECK_CALLED
(
ParseUrl
);
CHECK_CALLED
(
ParseUrl
_ENCODE
);
hres
=
IInternetSession_UnregisterNameSpace
(
session
,
&
test_protocol_cf
,
wszTest
);
ok
(
hres
==
S_OK
,
"UnregisterNameSpace failed: %08x
\n
"
,
hres
);
...
...
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