From 9b8846bbb243134981494377ff683777b0ea5c4c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 19 Sep 2013 13:26:57 +0200 Subject: [PATCH 1/3] protocol: claim to implement Presences https://bugs.freedesktop.org/show_bug.cgi?id=31108 --- src/protocol.c | 1 + tests/twisted/cm/protocol.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/protocol.c b/src/protocol.c index 9dfcad5..1ab5f3d 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 e763049..05cffc4 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) -- 1.8.3.1