2008-11-07 14:32:28 -05:00
|
|
|
|
|
|
|
/* Stuff you put in here is setup once in main() and gets passed around to
|
|
|
|
* all test functions and fixture setup/teardown functions in the data
|
|
|
|
* argument */
|
|
|
|
typedef struct _TestConformSharedState
|
|
|
|
{
|
|
|
|
int *argc_addr;
|
|
|
|
char ***argv_addr;
|
|
|
|
} TestConformSharedState;
|
|
|
|
|
|
|
|
|
|
|
|
/* This fixture structure is allocated by glib, and before running each test
|
|
|
|
* the test_conform_simple_fixture_setup func (see below) is called to
|
|
|
|
* initialise it, and test_conform_simple_fixture_teardown is called when
|
|
|
|
* the test is finished. */
|
|
|
|
typedef struct _TestConformSimpleFixture
|
|
|
|
{
|
|
|
|
/**/
|
2009-03-31 08:41:44 -04:00
|
|
|
int dummy;
|
2008-11-07 14:32:28 -05:00
|
|
|
} TestConformSimpleFixture;
|
|
|
|
|
2010-10-12 12:11:52 -04:00
|
|
|
typedef struct _TestConformTodo
|
|
|
|
{
|
|
|
|
gchar *name;
|
|
|
|
void (* func) (TestConformSimpleFixture *, gconstpointer);
|
|
|
|
} TestConformTodo;
|
|
|
|
|
2011-07-13 09:10:47 -04:00
|
|
|
typedef struct _TestConformGLFunctions
|
|
|
|
{
|
2012-03-23 13:12:26 -04:00
|
|
|
const guint8 * (* glGetString) (guint name);
|
|
|
|
void (* glGetIntegerv) (guint pname, int *params);
|
|
|
|
void (* glPixelStorei) (guint pname, int param);
|
|
|
|
void (* glBindTexture) (guint target, guint texture);
|
|
|
|
void (* glGenTextures) (int n, guint *textures);
|
|
|
|
guint (* glGetError) (void);
|
|
|
|
void (* glDeleteTextures) (int n, const guint *textures);
|
|
|
|
void (* glTexImage2D) (guint target, int level,
|
|
|
|
int internalFormat,
|
|
|
|
int width, int height,
|
|
|
|
int border, guint format, guint type,
|
|
|
|
const void *pixels);
|
|
|
|
void (* glTexParameteri) (guint target, guint pname, int param);
|
2011-07-13 09:10:47 -04:00
|
|
|
} TestConformGLFunctions;
|
|
|
|
|
|
|
|
void test_conform_get_gl_functions (TestConformGLFunctions *functions);
|
|
|
|
|
2008-11-07 14:32:28 -05:00
|
|
|
void test_conform_simple_fixture_setup (TestConformSimpleFixture *fixture,
|
|
|
|
gconstpointer data);
|
|
|
|
void test_conform_simple_fixture_teardown (TestConformSimpleFixture *fixture,
|
|
|
|
gconstpointer data);
|
|
|
|
|
2009-11-04 06:47:09 -05:00
|
|
|
gchar *clutter_test_get_data_file (const gchar *filename);
|