telepathy-salut: protocol: claim to implement Presences

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu Sep 19 05:30:52 PDT 2013


Module: telepathy-salut
Branch: master
Commit: 9b8846bbb243134981494377ff683777b0ea5c4c
URL:    http://cgit.freedesktop.org/telepathy/telepathy-salut/commit/?id=9b8846bbb243134981494377ff683777b0ea5c4c

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu Sep 19 13:26:57 2013 +0200

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(+), 0 deletions(-)

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)



More information about the telepathy-commits mailing list