~ubuntu-branches/ubuntu/natty/gnome-keyring/natty

« back to all changes in this revision

Viewing changes to tests/gtest-helpers.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-16 19:00:06 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216190006-cqpnic4zxlkmmi0o
Tags: 2.29.90git20100218-0ubuntu1
Updated to a git snapshot version

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
void test_mainloop_run (int timeout);
40
40
GMainLoop* test_mainloop_get (void);
41
41
 
42
 
const gchar* test_dir_testdata (void);
43
 
guchar* test_read_testdata (const gchar *basename, gsize *n_data);
44
 
gchar* test_build_filename (const gchar *basename);
 
42
const gchar* test_data_directory (void);
 
43
const gchar* test_scratch_directory (void);
 
44
guchar* test_data_read (const gchar *basename, gsize *n_data);
 
45
gchar* test_scratch_filename (const gchar *basename);
 
46
gchar* test_data_filename (const gchar *basename);
 
47
 
 
48
#ifdef CRYPTOKI_VERSION_MAJOR
 
49
void test_p11_module (CK_FUNCTION_LIST_PTR module, const gchar *config);
 
50
#endif
 
51
 
 
52
 
 
53
typedef void (*TestExternalFunc) (void);
 
54
void test_external_run (const gchar *name, TestExternalFunc func);
 
55
const gchar* test_external_name (void);
 
56
void test_external_fail (void);
45
57
 
46
58
#define DECLARE_SETUP(x) \
47
59
        void setup_##x(int *v, gconstpointer d)
68
80
#define DEFINE_STOP(x) \
69
81
        void stop_##x(void)
70
82
 
 
83
#define DECLARE_EXTERNAL(x) \
 
84
        void external_##x(void)
 
85
#define DEFINE_EXTERNAL(x) \
 
86
        void external_##x(void)
 
87
 
71
88
/* #define DEFINE_ABORT(x) void abort_x(void *__unused G_GNUC_UNUSED, gconstpointer __data G_GNUC_UNUSED)' */
72
89
 
 
90
#ifndef g_assert_cmpsize
 
91
#define g_assert_cmpsize(a, o, b) \
 
92
        g_assert_cmpuint ((guint)(a), o, (guint)(b))
 
93
#endif
 
94
 
73
95
#endif /* GTEST_HELPERS_H_ */