[QUARTZ_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536

svn path=/trunk/; revision=70093
This commit is contained in:
Amine Khaldi 2015-11-24 12:34:05 +00:00
parent 57095ddb13
commit 34dd2f4dab
6 changed files with 78 additions and 3 deletions

View file

@ -8,6 +8,7 @@ list(APPEND SOURCE
filtermapper.c
memallocator.c
misc.c
mpegsplit.c
referenceclock.c
videorenderer.c
testlist.c)

View file

@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#pragma makedep header
import "objidl.idl";
import "strmif.idl";
import "unknwn.idl";

View file

@ -180,6 +180,9 @@ static void test_graph_builder(void)
ok(hr == S_OK, "CoCreateInstance failed with %x\n", hr);
ok(pF != NULL, "pF is NULL\n");
hr = IGraphBuilder_AddFilter(pgraph, NULL, testFilterW);
ok(hr == E_POINTER, "IGraphBuilder_AddFilter returned %x\n", hr);
/* add the two filters to the graph */
hr = IGraphBuilder_AddFilter(pgraph, pF, testFilterW);
ok(hr == S_OK, "failed to add pF to the graph: %x\n", hr);
@ -204,6 +207,15 @@ static void test_graph_builder(void)
hr = IGraphBuilder_FindFilterByName(pgraph, testFilterW, NULL);
ok(hr == E_POINTER, "IGraphBuilder_FindFilterByName returned %x\n", hr);
hr = IGraphBuilder_Connect(pgraph, NULL, pIn);
ok(hr == E_POINTER, "IGraphBuilder_Connect returned %x\n", hr);
hr = IGraphBuilder_Connect(pgraph, pIn, NULL);
ok(hr == E_POINTER, "IGraphBuilder_Connect returned %x\n", hr);
hr = IGraphBuilder_Connect(pgraph, pIn, pIn);
ok(hr == VFW_E_CANNOT_CONNECT, "IGraphBuilder_Connect returned %x\n", hr);
if (pIn) IPin_Release(pIn);
if (pEnum) IEnumPins_Release(pEnum);
if (pF) IBaseFilter_Release(pF);

View file

@ -509,7 +509,7 @@ static void test_parse_filter_data(void)
saBound.lLbound = 0;
saBound.cElements = sizeof(data_block);
psa = SafeArrayCreate(VT_UI1, 1, &saBound);
ok(psa != NULL, "Unable to crate safe array\n");
ok(psa != NULL, "Unable to create safe array\n");
if (!psa) goto out;
hr = SafeArrayAccessData(psa, (LPVOID *)&pbSAData);
ok(hr == S_OK, "Unable to access array data\n");

View file

@ -0,0 +1,58 @@
/*
* Unit tests for the MPEG-1 stream splitter functions
*
* Copyright 2015 Anton Baskanov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include "wine/test.h"
#include "dshow.h"
static IUnknown *create_mpeg_splitter(void)
{
IUnknown *mpeg_splitter = NULL;
HRESULT result = CoCreateInstance(&CLSID_MPEG1Splitter, NULL, CLSCTX_INPROC_SERVER,
&IID_IUnknown, (void **)&mpeg_splitter);
ok(S_OK == result, "got 0x%08x\n", result);
return mpeg_splitter;
}
static void test_query_interface(void)
{
IUnknown *mpeg_splitter = create_mpeg_splitter();
IAMStreamSelect *stream_select = NULL;
HRESULT result = IUnknown_QueryInterface(
mpeg_splitter, &IID_IAMStreamSelect, (void **)&stream_select);
ok(S_OK == result, "got 0x%08x\n", result);
if (S_OK == result)
{
IAMStreamSelect_Release(stream_select);
}
IUnknown_Release(mpeg_splitter);
}
START_TEST(mpegsplit)
{
CoInitialize(NULL);
test_query_interface();
CoUninitialize();
}

View file

@ -1,4 +1,4 @@
/* Automatically generated file; DO NOT EDIT!! */
/* Automatically generated by make depend; DO NOT EDIT!! */
#define STANDALONE
#include <wine/test.h>
@ -9,6 +9,7 @@ extern void func_filtergraph(void);
extern void func_filtermapper(void);
extern void func_memallocator(void);
extern void func_misc(void);
extern void func_mpegsplit(void);
extern void func_referenceclock(void);
extern void func_videorenderer(void);
@ -20,7 +21,8 @@ const struct test winetest_testlist[] =
{ "filtermapper", func_filtermapper },
{ "memallocator", func_memallocator },
{ "misc", func_misc },
{ "videorenderer", func_videorenderer },
{ "mpegsplit", func_mpegsplit },
{ "referenceclock", func_referenceclock },
{ "videorenderer", func_videorenderer },
{ 0, 0 }
};