2 * Unit tests for the MPEG-1 stream splitter functions
4 * Copyright 2015 Anton Baskanov
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "wine/test.h"
26 static IUnknown
*create_mpeg_splitter(void)
28 IUnknown
*mpeg_splitter
= NULL
;
29 HRESULT result
= CoCreateInstance(&CLSID_MPEG1Splitter
, NULL
, CLSCTX_INPROC_SERVER
,
30 &IID_IUnknown
, (void **)&mpeg_splitter
);
31 ok(S_OK
== result
, "got 0x%08x\n", result
);
35 static void test_query_interface(void)
37 IUnknown
*mpeg_splitter
= create_mpeg_splitter();
39 IAMStreamSelect
*stream_select
= NULL
;
40 HRESULT result
= IUnknown_QueryInterface(
41 mpeg_splitter
, &IID_IAMStreamSelect
, (void **)&stream_select
);
42 ok(S_OK
== result
, "got 0x%08x\n", result
);
45 IAMStreamSelect_Release(stream_select
);
48 IUnknown_Release(mpeg_splitter
);
55 test_query_interface();