shdocvw/tests: Added IShellBrowser, IBrowserService and IDocObjectService existence tests.

This commit is contained in:
Piotr Caban 2011-03-14 17:50:18 +01:00 committed by Alexandre Julliard
parent f1f645b345
commit a13fce16a4
1 changed files with 13 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include "exdispid.h" #include "exdispid.h"
#include "mimeinfo.h" #include "mimeinfo.h"
#include "hlink.h" #include "hlink.h"
#include "docobjectservice.h"
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0); DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0);
@ -2963,6 +2964,18 @@ static void test_dochost_qs(IUnknown *unk)
ok(iface_cmp(service, unk), "service != unk\n"); ok(iface_cmp(service, unk), "service != unk\n");
IUnknown_Release(service); IUnknown_Release(service);
hres = IServiceProvider_QueryService(serv_prov, &IID_IShellBrowser, &IID_IShellBrowser, (void**)&service);
ok(hres == S_OK, "QueryService failed: %08x\n", hres);
IUnknown_Release(service);
hres = IServiceProvider_QueryService(serv_prov, &IID_IShellBrowser, &IID_IBrowserService, (void**)&service);
ok(hres == S_OK, "QueryService failed: %08x\n", hres);
IUnknown_Release(service);
hres = IServiceProvider_QueryService(serv_prov, &IID_IShellBrowser, &IID_IDocObjectService, (void**)&service);
ok(hres == S_OK, "QueryService failed: %08x\n", hres);
IUnknown_Release(service);
IServiceProvider_Release(serv_prov); IServiceProvider_Release(serv_prov);
} }