gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r23107 - in Extractor/src/plugins: . testdata


From: gnunet
Subject: [GNUnet-SVN] r23107 - in Extractor/src/plugins: . testdata
Date: Sat, 4 Aug 2012 22:31:52 +0200

Author: grothoff
Date: 2012-08-04 22:31:52 +0200 (Sat, 04 Aug 2012)
New Revision: 23107

Added:
   Extractor/src/plugins/testdata/gif_image.gif
Modified:
   Extractor/src/plugins/Makefile.am
   Extractor/src/plugins/test_mime.c
Log:
expanding mime test

Modified: Extractor/src/plugins/Makefile.am
===================================================================
--- Extractor/src/plugins/Makefile.am   2012-08-04 20:29:07 UTC (rev 23106)
+++ Extractor/src/plugins/Makefile.am   2012-08-04 20:31:52 UTC (rev 23107)
@@ -12,7 +12,8 @@
 SUBDIRS = . 
 
 EXTRA_DIST = template_extractor.c \
-  testdata/courseclear.ogg
+  testdata/ogg_courseclear.ogg \
+  testdata/gif_image.gif
 
 if HAVE_VORBISFILE
 PLUGIN_OGG=libextractor_ogg.la

Modified: Extractor/src/plugins/test_mime.c
===================================================================
--- Extractor/src/plugins/test_mime.c   2012-08-04 20:29:07 UTC (rev 23106)
+++ Extractor/src/plugins/test_mime.c   2012-08-04 20:31:52 UTC (rev 23107)
@@ -49,10 +49,24 @@
       },
       { 0, 0, NULL, NULL, 0, -1 }
     };
+  struct SolutionData gif_image_sol[] =
+    {
+      { 
+       EXTRACTOR_METATYPE_MIMETYPE,
+       EXTRACTOR_METAFORMAT_UTF8,
+       "text/plain",
+       "image/gif",
+       strlen ("image/gif") + 1,
+       0 
+      },
+      { 0, 0, NULL, NULL, 0, -1 }
+    };
   struct ProblemSet ps[] =
     {
       { "testdata/ogg_courseclear.ogg",
        courseclear_sol },
+      { "testdata/gif_image.gif",
+       gif_image_sol },
       { NULL, NULL }
     };
   return ET_main ("mime", ps);

Copied: Extractor/src/plugins/testdata/gif_image.gif (from rev 23105, 
Extractor/test/test.gif)
===================================================================
(Binary files differ)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]