|
Packit |
a4058c |
/* -*- Mode: C; c-basic-offset: 2; -*- */
|
|
Packit |
a4058c |
/* GdkPixbuf library - test loaders
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Copyright (C) 2014 Red Hat, Inc.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
a4058c |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
a4058c |
* the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
a4058c |
* (at your option) any later version.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
a4058c |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a4058c |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
a4058c |
* GNU General Public License for more details.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* You should have received a copy of the GNU General Public License
|
|
Packit |
a4058c |
* along with this program; if not, write to the Free Software
|
|
Packit |
a4058c |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Author: Matthias Clasen
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#ifndef __TEST_COMMON_H__
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#include <glib.h>
|
|
Packit |
a4058c |
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
G_BEGIN_DECLS
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
typedef gboolean (* AddTestFunc) (GFile *file);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
gboolean format_supported (const gchar *filename);
|
|
Packit |
a4058c |
gboolean file_supported (GFile *file);
|
|
Packit |
a4058c |
gboolean skip_if_insufficient_memory (GError **err);
|
|
Packit |
a4058c |
gboolean pixdata_equal (GdkPixbuf *test, GdkPixbuf *ref, GError **error);
|
|
Packit |
a4058c |
GdkPixbuf *make_checkerboard (int width, int height);
|
|
Packit |
a4058c |
GdkPixbuf *make_rg (int width, int height);
|
|
Packit |
a4058c |
void add_test_for_all_images (const gchar *prefix,
|
|
Packit |
a4058c |
GFile *base,
|
|
Packit |
a4058c |
GFile *file,
|
|
Packit |
a4058c |
GTestDataFunc test_func,
|
|
Packit |
a4058c |
AddTestFunc add_test_func);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
G_END_DECLS
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#endif /* __TEST_COMMON_H__ */
|