push 45342d27cd031b08b6cfabdf8789426cb53c1c53
[wine/hacks.git] / dlls / msvfw32 / tests / msvfw.c
blobb0d820815a1418800e08a9a827b93228c67c2366
1 /*
2 * Unit tests for video playback
4 * Copyright 2008 Jörg Höhle
5 * Copyright 2008 Austin English
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define WIN32_LEAN_AND_MEAN
23 #include <windows.h>
24 #include <vfw.h>
26 #include "wine/test.h"
28 static void test_OpenCase(void)
30 HIC h;
31 /* Open a compressor with combinations of lowercase
32 * and uppercase compressortype and handler.
34 h = ICOpen(mmioFOURCC('v','i','d','c'),mmioFOURCC('m','s','v','c'),ICMODE_DECOMPRESS);
35 ok(0!=h,"ICOpen(vidc.msvc) failed\n");
36 if (h) {
37 ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
39 h = ICOpen(mmioFOURCC('v','i','d','c'),mmioFOURCC('M','S','V','C'),ICMODE_DECOMPRESS);
40 ok(0!=h,"ICOpen(vidc.MSVC) failed\n");
41 if (h) {
42 ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
44 h = ICOpen(mmioFOURCC('V','I','D','C'),mmioFOURCC('m','s','v','c'),ICMODE_DECOMPRESS);
45 ok(0!=h,"ICOpen(VIDC.msvc) failed\n");
46 if (h) {
47 ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
49 h = ICOpen(mmioFOURCC('V','I','D','C'),mmioFOURCC('M','S','V','C'),ICMODE_DECOMPRESS);
50 ok(0!=h,"ICOpen(VIDC.MSVC) failed\n");
51 if (h) {
52 ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
54 h = ICOpen(mmioFOURCC('v','i','d','c'),mmioFOURCC('m','S','v','C'),ICMODE_DECOMPRESS);
55 ok(0!=h,"ICOpen(vidc.mSvC) failed\n");
56 if (h) {
57 ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
59 h = ICOpen(mmioFOURCC('v','I','d','C'),mmioFOURCC('m','s','v','c'),ICMODE_DECOMPRESS);
60 ok(0!=h,"ICOpen(vIdC.msvc) failed\n");
61 if (h) {
62 ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
66 START_TEST(msvfw)
68 test_OpenCase();