diff options
Diffstat (limited to 'src/plugins/test_flac.c')
-rw-r--r-- | src/plugins/test_flac.c | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/src/plugins/test_flac.c b/src/plugins/test_flac.c index 1fa39f3..64a16b4 100644 --- a/src/plugins/test_flac.c +++ b/src/plugins/test_flac.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 FLAC testcase. | 30 | * Main function for the FLAC testcase. |
32 | * | 31 | * |
@@ -37,39 +36,37 @@ | |||
37 | int | 36 | int |
38 | main (int argc, char *argv[]) | 37 | main (int argc, char *argv[]) |
39 | { | 38 | { |
40 | struct SolutionData kraftwerk_sol[] = | 39 | struct SolutionData kraftwerk_sol[] = { |
41 | { | ||
42 | { | ||
43 | EXTRACTOR_METATYPE_RESOURCE_TYPE, | ||
44 | EXTRACTOR_METAFORMAT_UTF8, | ||
45 | "text/plain", | ||
46 | "44100 Hz, 2 channels", | ||
47 | strlen ("44100 Hz, 2 channels") + 1, | ||
48 | 0 | ||
49 | }, | ||
50 | { | ||
51 | EXTRACTOR_METATYPE_TITLE, | ||
52 | EXTRACTOR_METAFORMAT_UTF8, | ||
53 | "text/plain", | ||
54 | "Test Title", | ||
55 | strlen ("Test Title") + 1, | ||
56 | 0 | ||
57 | }, | ||
58 | { 0, 0, NULL, NULL, 0, -1 } | ||
59 | }; | ||
60 | struct SolutionData alien_sol[] = | ||
61 | { | 40 | { |
62 | { 0, 0, NULL, NULL, 0, -1 } | 41 | EXTRACTOR_METATYPE_RESOURCE_TYPE, |
63 | }; | 42 | EXTRACTOR_METAFORMAT_UTF8, |
64 | struct ProblemSet ps[] = | 43 | "text/plain", |
44 | "44100 Hz, 2 channels", | ||
45 | strlen ("44100 Hz, 2 channels") + 1, | ||
46 | 0 | ||
47 | }, | ||
65 | { | 48 | { |
66 | { "testdata/flac_kraftwerk.flac", | 49 | EXTRACTOR_METATYPE_TITLE, |
67 | kraftwerk_sol }, | 50 | EXTRACTOR_METAFORMAT_UTF8, |
68 | { "testdata/mpeg_alien.mpg", | 51 | "text/plain", |
69 | alien_sol }, | 52 | "Test Title", |
70 | { NULL, NULL } | 53 | strlen ("Test Title") + 1, |
71 | }; | 54 | 0 |
55 | }, | ||
56 | { 0, 0, NULL, NULL, 0, -1 } | ||
57 | }; | ||
58 | struct SolutionData alien_sol[] = { | ||
59 | { 0, 0, NULL, NULL, 0, -1 } | ||
60 | }; | ||
61 | struct ProblemSet ps[] = { | ||
62 | { "testdata/flac_kraftwerk.flac", | ||
63 | kraftwerk_sol }, | ||
64 | { "testdata/mpeg_alien.mpg", | ||
65 | alien_sol }, | ||
66 | { NULL, NULL } | ||
67 | }; | ||
72 | return ET_main ("flac", ps); | 68 | return ET_main ("flac", ps); |
73 | } | 69 | } |
74 | 70 | ||
71 | |||
75 | /* end of test_flac.c */ | 72 | /* end of test_flac.c */ |