aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_ogg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_ogg.c')
-rw-r--r--src/plugins/test_ogg.c96
1 files changed, 47 insertions, 49 deletions
diff --git a/src/plugins/test_ogg.c b/src/plugins/test_ogg.c
index 418f192..d82f80f 100644
--- a/src/plugins/test_ogg.c
+++ b/src/plugins/test_ogg.c
@@ -26,7 +26,6 @@
26#include "test_lib.h" 26#include "test_lib.h"
27 27
28 28
29
30/** 29/**
31 * Main function for the OGG testcase. 30 * Main function for the OGG testcase.
32 * 31 *
@@ -37,57 +36,56 @@
37int 36int
38main (int argc, char *argv[]) 37main (int argc, char *argv[])
39{ 38{
40 struct SolutionData courseclear_sol[] = 39 struct SolutionData courseclear_sol[] = {
40 {
41 EXTRACTOR_METATYPE_MIMETYPE,
42 EXTRACTOR_METAFORMAT_UTF8,
43 "text/plain",
44 "application/ogg",
45 strlen ("application/ogg") + 1,
46 0
47 },
48 {
49 EXTRACTOR_METATYPE_VENDOR,
50 EXTRACTOR_METAFORMAT_UTF8,
51 "text/plain",
52 "Xiphophorus libVorbis I 20010813",
53 strlen ("Xiphophorus libVorbis I 20010813") + 1,
54 0
55 },
41 { 56 {
42 { 57 EXTRACTOR_METATYPE_TITLE,
43 EXTRACTOR_METATYPE_MIMETYPE, 58 EXTRACTOR_METAFORMAT_UTF8,
44 EXTRACTOR_METAFORMAT_UTF8, 59 "text/plain",
45 "text/plain", 60 "xoc_SMW_06_courseclear",
46 "application/ogg", 61 strlen ("xoc_SMW_06_courseclear") + 1,
47 strlen ("application/ogg") + 1, 62 0
48 0 63 },
49 },
50 {
51 EXTRACTOR_METATYPE_VENDOR,
52 EXTRACTOR_METAFORMAT_UTF8,
53 "text/plain",
54 "Xiphophorus libVorbis I 20010813",
55 strlen ("Xiphophorus libVorbis I 20010813") + 1,
56 0
57 },
58 {
59 EXTRACTOR_METATYPE_TITLE,
60 EXTRACTOR_METAFORMAT_UTF8,
61 "text/plain",
62 "xoc_SMW_06_courseclear",
63 strlen ("xoc_SMW_06_courseclear") + 1,
64 0
65 },
66 {
67 EXTRACTOR_METATYPE_ARTIST,
68 EXTRACTOR_METAFORMAT_UTF8,
69 "text/plain",
70 "XOC",
71 strlen ("XOC") + 1,
72 0
73 },
74 {
75 EXTRACTOR_METATYPE_TRACK_NUMBER,
76 EXTRACTOR_METAFORMAT_UTF8,
77 "text/plain",
78 "6",
79 strlen ("6") + 1,
80 0
81 },
82 { 0, 0, NULL, NULL, 0, -1 }
83 };
84 struct ProblemSet ps[] =
85 { 64 {
86 { "testdata/ogg_courseclear.ogg", 65 EXTRACTOR_METATYPE_ARTIST,
87 courseclear_sol }, 66 EXTRACTOR_METAFORMAT_UTF8,
88 { NULL, NULL } 67 "text/plain",
89 }; 68 "XOC",
69 strlen ("XOC") + 1,
70 0
71 },
72 {
73 EXTRACTOR_METATYPE_TRACK_NUMBER,
74 EXTRACTOR_METAFORMAT_UTF8,
75 "text/plain",
76 "6",
77 strlen ("6") + 1,
78 0
79 },
80 { 0, 0, NULL, NULL, 0, -1 }
81 };
82 struct ProblemSet ps[] = {
83 { "testdata/ogg_courseclear.ogg",
84 courseclear_sol },
85 { NULL, NULL }
86 };
90 return ET_main ("ogg", ps); 87 return ET_main ("ogg", ps);
91} 88}
92 89
90
93/* end of test_ogg.c */ 91/* end of test_ogg.c */