summaryrefslogtreecommitdiff
path: root/tests/test-common.h
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-11 13:50:01 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-11 14:47:01 +0100
commit873dbd1ab75076d3241a17ed3ee101b75d21be76 (patch)
tree29aec76b8b1308b646d6c1516d717fe6195acd6a /tests/test-common.h
parent8ae5adcf00bfe63f631013f48865c0539b888599 (diff)
downloadgdk-pixbuf-873dbd1ab75076d3241a17ed3ee101b75d21be76.tar.gz
tests: Don't depend on mime type detection without GDK_PIXBUF_USE_GIO_MIME
When building without GDK_PIXBUF_USE_GIO_MIME detect the format based on the fill extension and not the mime type. This makes these tests pass on Windows.
Diffstat (limited to 'tests/test-common.h')
-rw-r--r--tests/test-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-common.h b/tests/test-common.h
index 8e7f676b0..dbe07e9e2 100644
--- a/tests/test-common.h
+++ b/tests/test-common.h
@@ -31,6 +31,7 @@ typedef gboolean (* AddTestFunc) (GFile *file);
gboolean format_supported (const gchar *filename);
gboolean file_supported (GFile *file);
+gboolean find_format (const gchar *filename, gchar **found_format);
gboolean skip_if_insufficient_memory (GError **err);
gboolean pixdata_equal (GdkPixbuf *test, GdkPixbuf *ref, GError **error);
GdkPixbuf *make_checkerboard (int width, int height);