wined3d: Fix WINED3DRS_DEPTHBIAS handling.
[wine] / dlls / msvfw32 / tests / msvfw.c
1 /*
2  * Unit tests for video playback
3  *
4  * Copyright 2008 Jörg Höhle
5  * Copyright 2008 Austin English
6  *
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.
11  *
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.
16  *
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
20  */
21
22 #define WIN32_LEAN_AND_MEAN
23 #include <windows.h>
24 #include <vfw.h>
25
26 #include "wine/test.h"
27
28 static void test_OpenCase(void)
29 {
30     HIC h;
31     /* Open a compressor with combinations of lowercase
32      * and uppercase compressortype and handler.
33      */
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");
38     }
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");
43     }
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");
48     }
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");
53     }
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");
58     }
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");
63     }
64 }
65
66 START_TEST(msvfw)
67 {
68     test_OpenCase();
69 }