1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2007-2008 Richard Hughes <richard@hughsie.com>
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28
typedef struct EggTest EggTest;
30
gboolean egg_test_start (EggTest *test, const gchar *name);
31
void egg_test_end (EggTest *test);
32
void egg_test_title (EggTest *test, const gchar *format, ...);
33
void egg_test_title_assert (EggTest *test, const gchar *text, gboolean value);
34
void egg_test_assert (EggTest *test, gboolean value);
35
void egg_test_success (EggTest *test, const gchar *format, ...);
36
void egg_test_failed (EggTest *test, const gchar *format, ...) G_GNUC_NORETURN;
37
EggTest *egg_test_init (void);
38
gint egg_test_finish (EggTest *test);
39
guint egg_test_elapsed (EggTest *test);
40
void egg_test_loop_quit (EggTest *test);
41
void egg_test_loop_wait (EggTest *test, guint timeout);
42
void egg_test_loop_check (EggTest *test);
43
void egg_test_set_user_data (EggTest *test, gpointer user_data);
44
gpointer egg_test_get_user_data (EggTest *test);
45
gchar *egg_test_get_data_file (const gchar *filename);
47
#endif /* __EGG_TEST_H */