hnetcfg: Add test for IProvideClassInfo interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eabed020c0
commit
13a3302734
|
@ -629,6 +629,11 @@ static HRESULT WINAPI upnpnat_QueryInterface(IUPnPNAT *iface, REFIID riid, void
|
||||||
{
|
{
|
||||||
*object = iface;
|
*object = iface;
|
||||||
}
|
}
|
||||||
|
else if(IsEqualGUID( riid, &IID_IProvideClassInfo))
|
||||||
|
{
|
||||||
|
TRACE("IProvideClassInfo not supported.");
|
||||||
|
return E_NOINTERFACE;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FIXME("interface %s not implemented\n", debugstr_guid(riid));
|
FIXME("interface %s not implemented\n", debugstr_guid(riid));
|
||||||
|
|
|
@ -167,11 +167,15 @@ static void test_IUPnPNAT(void)
|
||||||
IStaticPortMappingCollection *static_ports;
|
IStaticPortMappingCollection *static_ports;
|
||||||
IDynamicPortMappingCollection *dync_ports;
|
IDynamicPortMappingCollection *dync_ports;
|
||||||
INATEventManager *manager;
|
INATEventManager *manager;
|
||||||
|
IProvideClassInfo *provider;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
hr = CoCreateInstance(&CLSID_UPnPNAT, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IUPnPNAT, (void**)&nat);
|
hr = CoCreateInstance(&CLSID_UPnPNAT, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IUPnPNAT, (void**)&nat);
|
||||||
ok(hr == S_OK, "got: %08x\n", hr);
|
ok(hr == S_OK, "got: %08x\n", hr);
|
||||||
|
|
||||||
|
hr = IUPnPNAT_QueryInterface(nat, &IID_IProvideClassInfo, (void**)&provider);
|
||||||
|
ok(hr == E_NOINTERFACE, "got: %08x\n", hr);
|
||||||
|
|
||||||
hr = IUPnPNAT_get_StaticPortMappingCollection(nat, &static_ports);
|
hr = IUPnPNAT_get_StaticPortMappingCollection(nat, &static_ports);
|
||||||
todo_wine ok(hr == S_OK, "got: %08x\n", hr);
|
todo_wine ok(hr == S_OK, "got: %08x\n", hr);
|
||||||
if(hr == S_OK && static_ports)
|
if(hr == S_OK && static_ports)
|
||||||
|
|
Loading…
Reference in New Issue