summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-08-14 18:12:20 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-08-14 18:12:20 +0000
commit2592a2abb26683bf0a2ec23b6aa19dc7bafa5878 (patch)
tree20b49a684b449cf87570020b4a2037c1aa1ba29b /test
parentb3b725b1137b61d786794f516ea07562cc34b220 (diff)
* dbus/dbus-bus.c:
* test/name-test/test-names.c: Remove test method dbus_bus_connection_get_unique_name because we already have public method dbus_bus_get_unique_name that does the exact same thing
Diffstat (limited to 'test')
-rw-r--r--test/name-test/test-names.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/name-test/test-names.c b/test/name-test/test-names.c
index 3db2a8cc..3cf7047b 100644
--- a/test/name-test/test-names.c
+++ b/test/name-test/test-names.c
@@ -24,8 +24,6 @@
#define TEST_NAME "org.freedesktop.DBus.TestSuite.NameTest"
#define NUM_TRIES_TIL_FAIL 15
-extern const char *dbus_bus_connection_get_unique_name (DBusConnection *connection);
-
typedef struct {
int command;
@@ -162,7 +160,7 @@ check_connection (DBusConnection *conn,
}
expected_uname =
- dbus_bus_connection_get_unique_name (uniq_conn[expected_conn_num]);
+ dbus_bus_get_unique_name (uniq_conn[expected_conn_num]);
if (strcmp (list[i], expected_uname) != 0)
{
@@ -385,10 +383,10 @@ check_signals (DBusConnection *monitor,
}
lost_name = lost_conn == NULL? NULL :
- dbus_bus_connection_get_unique_name (lost_conn);
+ dbus_bus_get_unique_name (lost_conn);
acquired_name = acquired_conn == NULL? NULL :
- dbus_bus_connection_get_unique_name (acquired_conn);
+ dbus_bus_get_unique_name (acquired_conn);
if (lost_name != NULL)
if (!match_acquired_or_lost_signal (lost_conn,
@@ -436,7 +434,7 @@ main (int argc, char *argv[])
if (!match_acquired_or_lost_signal (conn[0],
"NameAcquired",
- dbus_bus_connection_get_unique_name (conn[0])))
+ dbus_bus_get_unique_name (conn[0])))
return 1;
conn[1] = dbus_bus_get_private (DBUS_BUS_SESSION, &error);
@@ -450,7 +448,7 @@ main (int argc, char *argv[])
if (!match_acquired_or_lost_signal (conn[1],
"NameAcquired",
- dbus_bus_connection_get_unique_name (conn[1])))
+ dbus_bus_get_unique_name (conn[1])))
return 1;
@@ -465,7 +463,7 @@ main (int argc, char *argv[])
if (!match_acquired_or_lost_signal (conn[2],
"NameAcquired",
- dbus_bus_connection_get_unique_name (conn[2])))
+ dbus_bus_get_unique_name (conn[2])))
return 1;
@@ -480,7 +478,7 @@ main (int argc, char *argv[])
if (!match_acquired_or_lost_signal (conn[3],
"NameAcquired",
- dbus_bus_connection_get_unique_name (conn[3])))
+ dbus_bus_get_unique_name (conn[3])))
return 1;
@@ -495,7 +493,7 @@ main (int argc, char *argv[])
if (!match_acquired_or_lost_signal (monitor,
"NameAcquired",
- dbus_bus_connection_get_unique_name (monitor)))
+ dbus_bus_get_unique_name (monitor)))
return 1;
dbus_bus_add_match (monitor, "", &error);