[telepathy-glib/master] tests/lib/util.h: add test_proxy_run_until_dbus_queue_processed

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Jun 9 07:55:12 PDT 2009


This spins the main loop until Introspect() returns.
---
 tests/lib/util.c |    6 ++++++
 tests/lib/util.h |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/lib/util.c b/tests/lib/util.c
index 78dd9c6..d96641d 100644
--- a/tests/lib/util.c
+++ b/tests/lib/util.c
@@ -11,6 +11,12 @@
 #include "tests/lib/util.h"
 
 void
+test_proxy_run_until_dbus_queue_processed (gpointer proxy)
+{
+  tp_cli_dbus_introspectable_run_introspect (proxy, -1, NULL, NULL, NULL);
+}
+
+void
 test_connection_run_until_dbus_queue_processed (TpConnection *connection)
 {
   tp_cli_connection_run_get_protocol (connection, -1, NULL, NULL, NULL);
diff --git a/tests/lib/util.h b/tests/lib/util.h
index ba76706..9afe184 100644
--- a/tests/lib/util.h
+++ b/tests/lib/util.h
@@ -11,8 +11,11 @@
 #ifndef TEST_LIB_UTIL_H
 #define TEST_LIB_UTIL_H
 
+#include <telepathy-glib/proxy.h>
 #include <telepathy-glib/connection.h>
 
+void test_proxy_run_until_dbus_queue_processed (gpointer proxy);
+
 void test_connection_run_until_dbus_queue_processed (TpConnection *connection);
 
 #define test_assert_no_error(e) _test_assert_no_error (e, __FILE__, __LINE__)
-- 
1.5.6.5




More information about the telepathy-commits mailing list