diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-28 17:01:02 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-28 17:01:02 +0100 |
commit | e8c68230750766d6dc1d5594cc898f2d914c91fb (patch) | |
tree | 84b0802999bf15fbd1088762e745ab207251a5b7 /tests | |
parent | de7f581297e8cc50d5fe9694bbccfb7e131ee009 (diff) | |
download | telepathy-glib-e8c68230750766d6dc1d5594cc898f2d914c91fb.tar.gz |
add tp_protocol_new_vardict()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus/protocol-objects.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/dbus/protocol-objects.c b/tests/dbus/protocol-objects.c index 5b73a0abe..9dcdfd27a 100644 --- a/tests/dbus/protocol-objects.c +++ b/tests/dbus/protocol-objects.c @@ -11,6 +11,7 @@ #include <telepathy-glib/protocol.h> #include <telepathy-glib/telepathy-glib.h> +#include <telepathy-glib/variant-util-internal.h> #include "tests/lib/echo-cm.h" @@ -480,9 +481,19 @@ test_protocol_object (Test *test, g_assert (vardict != NULL); g_assert (g_variant_is_of_type (vardict, G_VARIANT_TYPE_VARDICT)); - g_variant_unref (vardict); + g_object_unref (protocol); + + /* Same but using tp_protocol_new_vardict */ + protocol = tp_protocol_new_vardict (test->dbus, "example_echo_2", + "example", vardict, &test->error); + g_assert_no_error (test->error); + g_assert (TP_IS_PROTOCOL (protocol)); + + check_tp_protocol (protocol); g_object_unref (protocol); + + g_variant_unref (vardict); g_hash_table_unref (props); } |