diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-19 13:26:57 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-19 13:45:14 +0200 |
commit | 9b8846bbb243134981494377ff683777b0ea5c4c (patch) | |
tree | c7dd0c440c867a98dd2926534b8d4df9b64cbe18 | |
parent | e7bf4518ba0c59cb347f9a1d324b2f699c9219ce (diff) | |
download | telepathy-salut-9b8846bbb243134981494377ff683777b0ea5c4c.tar.gz |
protocol: claim to implement Presences
https://bugs.freedesktop.org/show_bug.cgi?id=31108
-rw-r--r-- | src/protocol.c | 1 | ||||
-rw-r--r-- | tests/twisted/cm/protocol.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index 9dfcad58..1ab5f3d7 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -282,6 +282,7 @@ get_interfaces_array (TpBaseProtocol *self) salut_protocol_parent_class)->get_interfaces_array (self); g_ptr_array_add (interfaces, TP_IFACE_PROTOCOL_INTERFACE_AVATARS); + g_ptr_array_add (interfaces, TP_IFACE_PROTOCOL_INTERFACE_PRESENCE); return interfaces; } diff --git a/tests/twisted/cm/protocol.py b/tests/twisted/cm/protocol.py index e7630497..05cffc49 100644 --- a/tests/twisted/cm/protocol.py +++ b/tests/twisted/cm/protocol.py @@ -72,5 +72,7 @@ def test(q, bus, conn): assertEquals(64, avatar_props['RecommendedAvatarWidth']) assertEquals(['image/png', 'image/jpeg'], avatar_props['SupportedAvatarMIMETypes']) + assertContains(cs.PROTOCOL_IFACE_PRESENCES, proto_props['Interfaces']) + if __name__ == '__main__': exec_test(test) |