gplate/tags/tests/gplate-tag-test.h
changeset 400 0938cb5d076b
parent 399 6042cc7c5374
child 401 6611e9570ec2
     1.1 --- a/gplate/tags/tests/gplate-tag-test.h	Sun Jul 04 02:58:33 2010 -0500
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,49 +0,0 @@
     1.4 -/*
     1.5 - * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
     1.6 - *
     1.7 - * This program is free software: you can redistribute it and/or modify
     1.8 - * it under the terms of the GNU General Public License as published by
     1.9 - * the Free Software Foundation, either version 3 of the License, or
    1.10 - * (at your option) any later version.
    1.11 - *
    1.12 - * This program is distributed in the hope that it will be useful,
    1.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 - * GNU General Public License for more details.
    1.16 - *
    1.17 - * You should have received a copy of the GNU General Public License
    1.18 - * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1.19 - */
    1.20 -#ifndef GPLATE_TAG_TEST_H
    1.21 -#define GPLATE_TAG_TEST_H
    1.22 -
    1.23 -#include <gplate/gplate.h>
    1.24 -
    1.25 -#include <glib.h>
    1.26 -
    1.27 -#define gplate_tag_test_add(path, func) \
    1.28 -	g_test_add((path), GPlateTagTestFixture, NULL, gplate_tag_test_setup, (func), gplate_tag_test_teardown)
    1.29 -
    1.30 -typedef struct _GPlateTagTestFixture GPlateTagTestFixture;
    1.31 -
    1.32 -typedef void (*GPlateTagTestFixtureFunc)(GPlateTagTestFixture *fixture, gconstpointer data);
    1.33 -
    1.34 -struct _GPlateTagTestFixture {
    1.35 -	GPlateTemplate *template;
    1.36 -	GError *error;
    1.37 -
    1.38 -	const gchar *template_string;
    1.39 -
    1.40 -	const gchar *expected;
    1.41 -	gchar *actual;
    1.42 -};
    1.43 -
    1.44 -G_BEGIN_DECLS
    1.45 -
    1.46 -void gplate_tag_test_setup(GPlateTagTestFixture *fixture, gconstpointer data);
    1.47 -void gplate_tag_test_teardown(GPlateTagTestFixture *fixture, gconstpointer data);
    1.48 -void gplate_tag_test_output(GPlateTagTestFixture *fixture, gconstpointer data, const gchar *template_string, const gchar *expected);
    1.49 -
    1.50 -G_END_DECLS
    1.51 -
    1.52 -#endif /* GPLATE_TAG_TEST_H */