diff options
Diffstat (limited to 'src/plugins/test_thumbnailgtk.c')
-rw-r--r-- | src/plugins/test_thumbnailgtk.c | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/src/plugins/test_thumbnailgtk.c b/src/plugins/test_thumbnailgtk.c index 53edb19..4970af7 100644 --- a/src/plugins/test_thumbnailgtk.c +++ b/src/plugins/test_thumbnailgtk.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 THUMBNAILGTKJ testcase. | 30 | * Main function for the THUMBNAILGTKJ testcase. |
32 | * | 31 | * |
@@ -38,33 +37,32 @@ int | |||
38 | main (int argc, char *argv[]) | 37 | main (int argc, char *argv[]) |
39 | { | 38 | { |
40 | uint8_t thumbnail_data[] = { 137, 80, 78, 71 /* rest omitted */ }; | 39 | uint8_t thumbnail_data[] = { 137, 80, 78, 71 /* rest omitted */ }; |
41 | struct SolutionData thumbnail_torsten_sol[] = | 40 | struct SolutionData thumbnail_torsten_sol[] = { |
42 | { | 41 | { |
43 | { | 42 | EXTRACTOR_METATYPE_IMAGE_DIMENSIONS, |
44 | EXTRACTOR_METATYPE_IMAGE_DIMENSIONS, | 43 | EXTRACTOR_METAFORMAT_UTF8, |
45 | EXTRACTOR_METAFORMAT_UTF8, | 44 | "text/plain", |
46 | "text/plain", | 45 | "1600x1200", |
47 | "1600x1200", | 46 | strlen ("1600x1200") + 1, |
48 | strlen ("1600x1200") + 1, | 47 | 0 |
49 | 0 | 48 | }, |
50 | }, | ||
51 | { | ||
52 | EXTRACTOR_METATYPE_THUMBNAIL, | ||
53 | EXTRACTOR_METAFORMAT_BINARY, | ||
54 | "image/png", | ||
55 | (void *) thumbnail_data, | ||
56 | sizeof (thumbnail_data), | ||
57 | 0 | ||
58 | }, | ||
59 | { 0, 0, NULL, NULL, 0, -1 } | ||
60 | }; | ||
61 | struct ProblemSet ps[] = | ||
62 | { | 49 | { |
63 | { "testdata/thumbnail_torsten.jpg", | 50 | EXTRACTOR_METATYPE_THUMBNAIL, |
64 | thumbnail_torsten_sol }, | 51 | EXTRACTOR_METAFORMAT_BINARY, |
65 | { NULL, NULL } | 52 | "image/png", |
66 | }; | 53 | (void *) thumbnail_data, |
54 | sizeof (thumbnail_data), | ||
55 | 0 | ||
56 | }, | ||
57 | { 0, 0, NULL, NULL, 0, -1 } | ||
58 | }; | ||
59 | struct ProblemSet ps[] = { | ||
60 | { "testdata/thumbnail_torsten.jpg", | ||
61 | thumbnail_torsten_sol }, | ||
62 | { NULL, NULL } | ||
63 | }; | ||
67 | return ET_main ("thumbnailgtk", ps); | 64 | return ET_main ("thumbnailgtk", ps); |
68 | } | 65 | } |
69 | 66 | ||
67 | |||
70 | /* end of test_thumbnailgtk.c */ | 68 | /* end of test_thumbnailgtk.c */ |