[PATCH 3/4] qedit/tests: Add COM aggregation test for MediaDet.
Michael Stefaniuc
mstefani at redhat.com
Tue Jun 26 17:01:07 CDT 2012
Argh!
Please skip this patch, it is incomplete and just skips the rest of the
tests on Wine. I'll resubmit it when I implement COM aggregation for
MediaDet. Patch 4/4 can be still applied as it doesn't depends on this.
bye
michael
On 06/26/2012 11:53 PM, Michael Stefaniuc wrote:
> ---
> dlls/qedit/tests/mediadet.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/dlls/qedit/tests/mediadet.c b/dlls/qedit/tests/mediadet.c
> index 1d9a2f1..1d75680 100644
> --- a/dlls/qedit/tests/mediadet.c
> +++ b/dlls/qedit/tests/mediadet.c
> @@ -132,6 +132,7 @@ static BOOL init_tests(void)
> static void test_mediadet(void)
> {
> HRESULT hr;
> + struct unk_impl unk_obj = {{&unk_vtbl}, 19, NULL};
> IMediaDet *pM = NULL;
> BSTR filename = NULL;
> LONG nstrms = 0;
> @@ -141,6 +142,12 @@ static void test_mediadet(void)
> int flags;
> int i;
>
> + /* COM aggregation */
> + hr = CoCreateInstance(&CLSID_MediaDet, &unk_obj.IUnknown_iface, CLSCTX_INPROC_SERVER,
> + &IID_IUnknown, (void**)&unk_obj.inner_unk);
> + todo_wine ok(hr == S_OK, "CoCreateInstance failed: %08x\n", hr);
> + if (hr != S_OK) return;
> +
> /* test.avi has one video stream. */
> hr = CoCreateInstance(&CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER,
> &IID_IMediaDet, (LPVOID*)&pM);
More information about the wine-devel
mailing list