mshtml: Added test of CompareUrl.
This commit is contained in:
parent
ff721806ca
commit
139d2b813d
|
@ -102,6 +102,13 @@ static HRESULT WINAPI InternetProtocolInfo_CombineUrl(IInternetProtocolInfo *ifa
|
||||||
return INET_E_USE_DEFAULT_PROTOCOLHANDLER;
|
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
|
#undef PROTOCOLINFO_THIS
|
||||||
|
|
||||||
#define CLASSFACTORY_THIS(iface) DEFINE_THIS(ProtocolFactory, ClassFactory, iface)
|
#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;
|
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,
|
static HRESULT WINAPI AboutProtocolInfo_QueryInfo(IInternetProtocolInfo *iface, LPCWSTR pwzUrl,
|
||||||
QUERYOPTION QueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf,
|
QUERYOPTION QueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf,
|
||||||
DWORD dwReserved)
|
DWORD dwReserved)
|
||||||
|
@ -460,7 +460,7 @@ static const IInternetProtocolInfoVtbl AboutProtocolInfoVtbl = {
|
||||||
InternetProtocolInfo_Release,
|
InternetProtocolInfo_Release,
|
||||||
AboutProtocolInfo_ParseUrl,
|
AboutProtocolInfo_ParseUrl,
|
||||||
InternetProtocolInfo_CombineUrl,
|
InternetProtocolInfo_CombineUrl,
|
||||||
AboutProtocolInfo_CompareUrl,
|
InternetProtocolInfo_CompareUrl,
|
||||||
AboutProtocolInfo_QueryInfo
|
AboutProtocolInfo_QueryInfo
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -839,13 +839,6 @@ static HRESULT WINAPI ResProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPC
|
||||||
return INET_E_DEFAULT_ACTION;
|
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,
|
static HRESULT WINAPI ResProtocolInfo_QueryInfo(IInternetProtocolInfo *iface, LPCWSTR pwzUrl,
|
||||||
QUERYOPTION QueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf,
|
QUERYOPTION QueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf,
|
||||||
DWORD dwReserved)
|
DWORD dwReserved)
|
||||||
|
@ -861,7 +854,7 @@ static const IInternetProtocolInfoVtbl ResProtocolInfoVtbl = {
|
||||||
InternetProtocolInfo_Release,
|
InternetProtocolInfo_Release,
|
||||||
ResProtocolInfo_ParseUrl,
|
ResProtocolInfo_ParseUrl,
|
||||||
InternetProtocolInfo_CombineUrl,
|
InternetProtocolInfo_CombineUrl,
|
||||||
ResProtocolInfo_CompareUrl,
|
InternetProtocolInfo_CompareUrl,
|
||||||
ResProtocolInfo_QueryInfo
|
ResProtocolInfo_QueryInfo
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -354,6 +354,12 @@ static void test_res_protocol(void)
|
||||||
ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres);
|
ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres);
|
||||||
ok(size == 0xdeadbeef, "size=%d\n", size);
|
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);
|
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(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres);
|
||||||
ok(size == 0xdeadbeef, "size=%d\n", size);
|
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);
|
IInternetProtocolInfo_Release(protocol_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue