aboutsummaryrefslogtreecommitdiff
path: root/tests/test-libcustomindicator-dbus-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-22 14:26:53 -0500
committerTed Gould <ted@canonical.com>2009-10-22 14:26:53 -0500
commitaf102359a5d71fa5ddfad14d3e6d3063c1801578 (patch)
treecfa3450264741f7c8225e1569ae35f40a91a8e64 /tests/test-libcustomindicator-dbus-client.c
parente99a6fee70b515e68a5eda0d9e5d3e0db311d490 (diff)
downloadlibayatana-appindicator-af102359a5d71fa5ddfad14d3e6d3063c1801578.tar.gz
libayatana-appindicator-af102359a5d71fa5ddfad14d3e6d3063c1801578.tar.bz2
libayatana-appindicator-af102359a5d71fa5ddfad14d3e6d3063c1801578.zip
All strings work.
Diffstat (limited to 'tests/test-libcustomindicator-dbus-client.c')
-rw-r--r--tests/test-libcustomindicator-dbus-client.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/test-libcustomindicator-dbus-client.c b/tests/test-libcustomindicator-dbus-client.c
index 0f3ebb9..66922dc 100644
--- a/tests/test-libcustomindicator-dbus-client.c
+++ b/tests/test-libcustomindicator-dbus-client.c
@@ -68,6 +68,24 @@ prop_icon_name_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
propcount++;
+ GError * error = NULL;
+ GValue value = {0};
+
+ if (!dbus_g_proxy_end_call(proxy, call, &error, G_TYPE_VALUE, &value, G_TYPE_INVALID)) {
+ g_warning("Getting icon name failed: %s", error->message);
+ g_error_free(error);
+ passed = FALSE;
+ check_propcount();
+ return;
+ }
+
+ if (g_strcmp0(TEST_ICON_NAME, g_value_get_string(&value))) {
+ g_debug("Property icon name Returned: FAILED");
+ passed = FALSE;
+ } else {
+ g_debug("Property icon name Returned: PASSED");
+ }
+
check_propcount();
return;
}
@@ -77,6 +95,24 @@ prop_attention_icon_name_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * d
{
propcount++;
+ GError * error = NULL;
+ GValue value = {0};
+
+ if (!dbus_g_proxy_end_call(proxy, call, &error, G_TYPE_VALUE, &value, G_TYPE_INVALID)) {
+ g_warning("Getting attention icon name failed: %s", error->message);
+ g_error_free(error);
+ passed = FALSE;
+ check_propcount();
+ return;
+ }
+
+ if (g_strcmp0(TEST_ATTENTION_ICON_NAME, g_value_get_string(&value))) {
+ g_debug("Property attention icon name Returned: FAILED");
+ passed = FALSE;
+ } else {
+ g_debug("Property attention icon name Returned: PASSED");
+ }
+
check_propcount();
return;
}