No subject

=3D?utf-8?q?J=3DC3=3DB6rg=3D20H=3DC3=3DB6hle?=3D =3D?utf-8?q?J=3DC3=3DB6rg=3D20H=3DC3=3DB6hle?=3D
Tue Sep 2 11:01:37 CDT 2008


<hoehle at users.sourceforge.net>
Date: Tue, 16 Dec 2008 21:27:56 +0100
Subject: msvfw32/tests: ICCOpen() is case-insensitive on MS-Windows

---
 configure.ac                   |    1 +
 dlls/msvfw32/tests/Makefile.in |   13 +++++++++
 dlls/msvfw32/tests/msvfw.c     |   59 =
++++++++++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+), 0 deletions(-)
 create mode 100644 dlls/msvfw32/tests/Makefile.in
 create mode 100644 dlls/msvfw32/tests/msvfw.c

diff --git a/configure.ac b/configure.ac
index 0d5c530..96ad9cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1944,6 +1944,7 @@ =
WINE_CONFIG_MAKEFILE([dlls/msvcrt40/Makefile],[dlls/Makedll.rules],[dlls]=
,[ALL_D
 =
WINE_CONFIG_MAKEFILE([dlls/msvcrtd/Makefile],[dlls/Makedll.rules],[dlls],=
[ALL_DLL_DIRS])
 =
WINE_CONFIG_MAKEFILE([dlls/msvcrtd/tests/Makefile],[dlls/Maketest.rules],=
[dlls],[ALL_TEST_DIRS],[enable_tests])
 =
WINE_CONFIG_MAKEFILE([dlls/msvfw32/Makefile],[dlls/Makedll.rules],[dlls],=
[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/msvfw32/tests/Makefile],[dlls/Maketest.rules]=
,[dlls],[ALL_TEST_DIRS],[enable_tests])
 =
WINE_CONFIG_MAKEFILE([dlls/msvidc32/Makefile],[dlls/Makedll.rules],[dlls]=
,[ALL_DLL_DIRS])
 =
WINE_CONFIG_MAKEFILE([dlls/mswsock/Makefile],[dlls/Makedll.rules],[dlls],=
[ALL_DLL_DIRS])
 =
WINE_CONFIG_MAKEFILE([dlls/msxml3/Makefile],[dlls/Makedll.rules],[dlls],[=
ALL_DLL_DIRS])
diff --git a/dlls/msvfw32/tests/Makefile.in =
b/dlls/msvfw32/tests/Makefile.in
new file mode 100644
index 0000000..df5ec6a
--- /dev/null
+++ b/dlls/msvfw32/tests/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR =3D @top_srcdir@
+TOPOBJDIR =3D ../../..
+SRCDIR    =3D @srcdir@
+VPATH     =3D @srcdir@
+TESTDLL   =3D msvfw32.dll
+IMPORTS   =3D msvfw32 kernel32
+
+CTESTS =3D \
+        msvfw.c
+
+ at MAKE_TEST_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make =
depend
diff --git a/dlls/msvfw32/tests/msvfw.c b/dlls/msvfw32/tests/msvfw.c
new file mode 100644
index 0000000..ce3a908
--- /dev/null
+++ b/dlls/msvfw32/tests/msvfw.c
@@ -0,0 +1,59 @@
+/*
+ * Unit tests for video playback
+ *
+ * Copyright 2008 J=F6rg H=F6hle
+ * Copyright 2008 Austin English
+ *
+ * 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 WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <vfw.h>
+
+#include "wine/test.h"
+
+static void test_OpenCase(void)
+{
+    HIC h;
+    /* ICOpen(fcc: vidc , handler: cvid) */
+    /* ICTYPE_VIDEO is vidc: lowercase */
+    /* Officially registered fcc for Cinepak is CVID: uppercase */
+    h =3D =
ICOpen(mmioFOURCC('v','i','d','c'),mmioFOURCC('c','v','i','d'),ICMODE_DEC=
OMPRESS);
+    ok(0!=3Dh,"ICOpen(vidc.cvid) failed\n");
+    if (h) {
+        ok(ICClose(h)=3D=3DICERR_OK,"ICClose failed\n");
+    }
+    h =3D =
ICOpen(mmioFOURCC('v','i','d','c'),mmioFOURCC('C','V','I','D'),ICMODE_DEC=
OMPRESS);
+    ok(0!=3Dh,"ICOpen(vidc.CVID) failed\n");
+    if (h) {
+        ok(ICClose(h)=3D=3DICERR_OK,"ICClose failed\n");
+    }
+    h =3D =
ICOpen(mmioFOURCC('V','I','D','C'),mmioFOURCC('c','v','i','d'),ICMODE_DEC=
OMPRESS);
+    todo_wine ok(0!=3Dh,"ICOpen(VIDC.cvid) failed\n");
+    if (h) {
+        ok(ICClose(h)=3D=3DICERR_OK,"ICClose failed\n");
+    }
+    h =3D =
ICOpen(mmioFOURCC('V','I','D','C'),mmioFOURCC('C','V','I','D'),ICMODE_DEC=
OMPRESS);
+    todo_wine ok(0!=3Dh,"ICOpen(VIDC.CVID) failed\n");
+    if (h) {
+        ok(ICClose(h)=3D=3DICERR_OK,"ICClose failed\n");
+    }
+}
+
+START_TEST(msvfw)
+{
+    test_OpenCase();
+}
--=20
1.5.6.3



More information about the wine-patches mailing list