urlmon: Added InternetSecurityManager marshalling test.

This commit is contained in:
Piotr Caban 2009-12-08 16:02:52 +01:00 committed by Alexandre Julliard
parent dc78e8d315
commit 6894d841cd
1 changed files with 26 additions and 0 deletions

View File

@ -605,6 +605,31 @@ static void test_GetZoneAttributes(void)
ok(hr == S_OK, "got 0x%x (expected S_OK)\n", hr); ok(hr == S_OK, "got 0x%x (expected S_OK)\n", hr);
} }
static void test_InternetSecurityMarshalling(void)
{
IInternetSecurityManager *secmgr = NULL;
IUnknown *unk;
IStream *stream;
HRESULT hres;
hres = CoInternetCreateSecurityManager(NULL, &secmgr, 0);
if(FAILED(hres))
return;
hres = IInternetSecurityManager_QueryInterface(secmgr, &IID_IUnknown, (void**)&unk);
ok(hres == S_OK, "QueryInterface returned: %08x\n", hres);
hres = CreateStreamOnHGlobal(NULL, TRUE, &stream);
ok(hres == S_OK, "CreateStreamOnHGlobal returned: %08x\n", hres);
hres = CoMarshalInterface(stream, &IID_IInternetSecurityManager, unk, MSHCTX_INPROC, NULL, MSHLFLAGS_NORMAL);
ok(hres == S_OK, "CoMarshalInterface returned: %08x\n", hres);
IStream_Release(stream);
IUnknown_Release(unk);
IInternetSecurityManager_Release(secmgr);
}
START_TEST(sec_mgr) START_TEST(sec_mgr)
{ {
@ -617,6 +642,7 @@ START_TEST(sec_mgr)
test_GetZoneActionPolicy(); test_GetZoneActionPolicy();
test_GetZoneAt(); test_GetZoneAt();
test_GetZoneAttributes(); test_GetZoneAttributes();
test_InternetSecurityMarshalling();
OleUninitialize(); OleUninitialize();
} }