summaryrefslogtreecommitdiff
path: root/egg/egg-testing.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-06-27 11:28:16 +0200
committerStef Walter <stefw@gnome.org>2012-06-27 11:28:16 +0200
commite31a7b095517d2f3cabf17cb15f469214c48a0a7 (patch)
treede6226d3d455baf643606d5a854ce2f38e3e17a7 /egg/egg-testing.h
parente4f2dd1a5e37884c3eb1c93322c1b71b70daedac (diff)
downloadgnome-keyring-e31a7b095517d2f3cabf17cb15f469214c48a0a7.tar.gz
egg: Add ability to run tests in a mainloop without a thread
* Lets us do async stuff without the added complication of having another thread running the main loop.
Diffstat (limited to 'egg/egg-testing.h')
-rw-r--r--egg/egg-testing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/egg/egg-testing.h b/egg/egg-testing.h
index d92dbc4c..393f4cb6 100644
--- a/egg/egg-testing.h
+++ b/egg/egg-testing.h
@@ -52,8 +52,12 @@ void egg_assertion_message_cmpmem (const char *domain, const char *
void egg_test_wait_stop (void);
+#define egg_test_wait() g_assert (egg_test_wait_until (20000) != FALSE)
+
gboolean egg_test_wait_until (int timeout);
+gint egg_tests_run_with_loop (void);
+
gint egg_tests_run_in_thread_with_loop (void);
gchar * egg_tests_create_scratch_directory (const gchar *file_to_copy,