aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-22 14:21:49 -0500
committerTed Gould <ted@canonical.com>2009-10-22 14:21:49 -0500
commite99a6fee70b515e68a5eda0d9e5d3e0db311d490 (patch)
tree5c909b1234bd908d5bd1f5fb3381c85d189265cc /tests
parent199365d6ddaa30851c0a291fdfa288a8bc8ecb5f (diff)
downloadayatana-indicator-application-e99a6fee70b515e68a5eda0d9e5d3e0db311d490.tar.gz
ayatana-indicator-application-e99a6fee70b515e68a5eda0d9e5d3e0db311d490.tar.bz2
ayatana-indicator-application-e99a6fee70b515e68a5eda0d9e5d3e0db311d490.zip
Fleshing out the property counting.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-libcustomindicator-dbus-client.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/test-libcustomindicator-dbus-client.c b/tests/test-libcustomindicator-dbus-client.c
index a506760..0f3ebb9 100644
--- a/tests/test-libcustomindicator-dbus-client.c
+++ b/tests/test-libcustomindicator-dbus-client.c
@@ -11,7 +11,9 @@ static int propcount = 0;
static void
check_propcount (void)
{
-
+ if (propcount >= 6) {
+ g_main_loop_quit(mainloop);
+ }
return;
}
@@ -39,41 +41,52 @@ prop_id_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
g_debug("Property ID Returned: PASSED");
}
+ check_propcount();
return;
}
static void
prop_category_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
+ propcount++;
+ check_propcount();
return;
}
static void
prop_status_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
+ propcount++;
+ check_propcount();
return;
}
static void
prop_icon_name_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
+ propcount++;
+ check_propcount();
return;
}
static void
prop_attention_icon_name_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
+ propcount++;
+ check_propcount();
return;
}
static void
prop_menu_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
+ propcount++;
+ check_propcount();
return;
}