Huw Davies : inetcomm: Add a test for MimeBody.
Alexandre Julliard
julliard at winehq.org
Thu Nov 15 07:45:03 CST 2007
Module: wine
Branch: master
Commit: 288196a49aa8dc5d9e0752c49c0432a2346af6f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=288196a49aa8dc5d9e0752c49c0432a2346af6f8
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Nov 14 16:39:50 2007 +0000
inetcomm: Add a test for MimeBody.
---
dlls/inetcomm/tests/mimeole.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c
index eebb783..156884e 100644
--- a/dlls/inetcomm/tests/mimeole.c
+++ b/dlls/inetcomm/tests/mimeole.c
@@ -22,6 +22,9 @@
#include "windows.h"
#include "ole2.h"
+#include "ocidl.h"
+
+#include "initguid.h"
#include "mimeole.h"
#include <stdio.h>
@@ -52,10 +55,27 @@ static void test_CreateSecurity(void)
IMimeSecurity_Release(sec);
}
+static void test_CreateBody(void)
+{
+ HRESULT hr;
+ IMimeBody *body;
+ HBODY handle = (void *)0xdeadbeef;
+
+ hr = CoCreateInstance(&CLSID_IMimeBody, NULL, CLSCTX_INPROC_SERVER, &IID_IMimeBody, (void**)&body);
+ ok(hr == S_OK, "ret %08x\n", hr);
+
+ hr = IMimeBody_GetHandle(body, &handle);
+ ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr);
+ ok(handle == NULL, "handle %p\n", handle);
+
+ IMimeBody_Release(body);
+}
+
START_TEST(mimeole)
{
OleInitialize(NULL);
test_CreateVirtualStream();
test_CreateSecurity();
+ test_CreateBody();
OleUninitialize();
}
More information about the wine-cvs
mailing list