2 * Speech API (SAPI) automation tests.
4 * Copyright 2019 Jactry Zeng for CodeWeavers
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
26 #include "wine/test.h"
28 static void test_interfaces(void)
30 ISpeechFileStream
*filestream
;
31 ISpeechBaseStream
*basestream
;
37 hr
= CoCreateInstance(&CLSID_SpFileStream
, NULL
, CLSCTX_INPROC_SERVER
,
38 &IID_ISpeechFileStream
, (void **)&filestream
);
39 ok(hr
== S_OK
, "Failed to create ISpeechFileStream interface: %#x.\n", hr
);
41 hr
= CoCreateInstance(&CLSID_SpFileStream
, NULL
, CLSCTX_INPROC_SERVER
,
42 &IID_IUnknown
, (void **)&unk
);
43 ok(hr
== S_OK
, "Failed to create IUnknown interface: %#x.\n", hr
);
44 IUnknown_Release(unk
);
46 hr
= CoCreateInstance(&CLSID_SpFileStream
, NULL
, CLSCTX_INPROC_SERVER
,
47 &IID_IDispatch
, (void **)&dispatch
);
48 ok(hr
== S_OK
, "Failed to create IDispatch interface: %#x.\n", hr
);
49 IDispatch_Release(dispatch
);
51 hr
= CoCreateInstance(&CLSID_SpFileStream
, NULL
, CLSCTX_INPROC_SERVER
,
52 &IID_ISpeechBaseStream
, (void **)&basestream
);
53 ok(hr
== S_OK
, "Failed to create ISpeechBaseStream interface: %#x.\n", hr
);
54 ISpeechBaseStream_Release(basestream
);
56 hr
= CoCreateInstance(&CLSID_SpFileStream
, NULL
, CLSCTX_INPROC_SERVER
,
57 &IID_ISpStream
, (void **)&spstrem
);
58 ok(hr
== S_OK
, "Failed to create ISpStream interface: %#x.\n", hr
);
60 ISpStream_Release(spstrem
);
61 ISpeechFileStream_Release(filestream
);
64 START_TEST(automation
)