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
139d2b81
Commit
139d2b81
authored
Dec 12, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added test of CompareUrl.
parent
ff721806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
protocol.c
dlls/mshtml/protocol.c
+9
-16
protocol.c
dlls/mshtml/tests/protocol.c
+12
-0
No files found.
dlls/mshtml/protocol.c
View file @
139d2b81
...
...
@@ -102,6 +102,13 @@ static HRESULT WINAPI InternetProtocolInfo_CombineUrl(IInternetProtocolInfo *ifa
return
INET_E_USE_DEFAULT_PROTOCOLHANDLER
;
}
static
HRESULT
WINAPI
InternetProtocolInfo_CompareUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
TRACE
(
"%p)->(%s %s %08x)
\n
"
,
iface
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
return
E_NOTIMPL
;
}
#undef PROTOCOLINFO_THIS
#define CLASSFACTORY_THIS(iface) DEFINE_THIS(ProtocolFactory, ClassFactory, iface)
...
...
@@ -438,13 +445,6 @@ static HRESULT WINAPI AboutProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, L
return
INET_E_DEFAULT_ACTION
;
}
static
HRESULT
WINAPI
AboutProtocolInfo_CompareUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
FIXME
(
"%p)->(%s %s %08x)
\n
"
,
iface
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AboutProtocolInfo_QueryInfo
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl
,
QUERYOPTION
QueryOption
,
DWORD
dwQueryFlags
,
LPVOID
pBuffer
,
DWORD
cbBuffer
,
DWORD
*
pcbBuf
,
DWORD
dwReserved
)
...
...
@@ -460,7 +460,7 @@ static const IInternetProtocolInfoVtbl AboutProtocolInfoVtbl = {
InternetProtocolInfo_Release
,
AboutProtocolInfo_ParseUrl
,
InternetProtocolInfo_CombineUrl
,
Abou
tProtocolInfo_CompareUrl
,
Interne
tProtocolInfo_CompareUrl
,
AboutProtocolInfo_QueryInfo
};
...
...
@@ -839,13 +839,6 @@ static HRESULT WINAPI ResProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPC
return
INET_E_DEFAULT_ACTION
;
}
static
HRESULT
WINAPI
ResProtocolInfo_CompareUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
FIXME
(
"%p)->(%s %s %08x)
\n
"
,
iface
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ResProtocolInfo_QueryInfo
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl
,
QUERYOPTION
QueryOption
,
DWORD
dwQueryFlags
,
LPVOID
pBuffer
,
DWORD
cbBuffer
,
DWORD
*
pcbBuf
,
DWORD
dwReserved
)
...
...
@@ -861,7 +854,7 @@ static const IInternetProtocolInfoVtbl ResProtocolInfoVtbl = {
InternetProtocolInfo_Release
,
ResProtocolInfo_ParseUrl
,
InternetProtocolInfo_CombineUrl
,
Res
ProtocolInfo_CompareUrl
,
Internet
ProtocolInfo_CompareUrl
,
ResProtocolInfo_QueryInfo
};
...
...
dlls/mshtml/tests/protocol.c
View file @
139d2b81
...
...
@@ -354,6 +354,12 @@ static void test_res_protocol(void)
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08x
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%d
\n
"
,
size
);
hres
=
IInternetProtocolInfo_CompareUrl
(
protocol_info
,
blank_url
,
blank_url
,
0
);
ok
(
hres
==
E_NOTIMPL
,
"CompareUrl failed: %08x
\n
"
,
hres
);
hres
=
IInternetProtocolInfo_CompareUrl
(
protocol_info
,
NULL
,
NULL
,
0xdeadbeef
);
ok
(
hres
==
E_NOTIMPL
,
"CompareUrl failed: %08x
\n
"
,
hres
);
IInternetProtocolInfo_Release
(
protocol_info
);
}
...
...
@@ -538,6 +544,12 @@ static void test_about_protocol(void)
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08x
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%d
\n
"
,
size
);
hres
=
IInternetProtocolInfo_CompareUrl
(
protocol_info
,
blank_url
,
blank_url
,
0
);
ok
(
hres
==
E_NOTIMPL
,
"CompareUrl failed: %08x
\n
"
,
hres
);
hres
=
IInternetProtocolInfo_CompareUrl
(
protocol_info
,
NULL
,
NULL
,
0xdeadbeef
);
ok
(
hres
==
E_NOTIMPL
,
"CompareUrl failed: %08x
\n
"
,
hres
);
IInternetProtocolInfo_Release
(
protocol_info
);
}
...
...
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