[telepathy-mission-control/master] SimulatedChannel: arrange for NewChannel to be emitted, as well as NewChannels
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Apr 3 09:26:08 PDT 2009
MC watches for NewChannel while it doesn't yet know that NewChannels is
supported.
---
test/twisted/mctest.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/test/twisted/mctest.py b/test/twisted/mctest.py
index df7405c..8cde701 100644
--- a/test/twisted/mctest.py
+++ b/test/twisted/mctest.py
@@ -258,6 +258,13 @@ class SimulatedChannel(object):
assert not self.announced
self.announced = True
self.conn.channels.append(self)
+ self.q.dbus_emit(self.conn.object_path, cs.CONN,
+ 'NewChannel',
+ self.object_path, self.immutable[cs.CHANNEL + '.ChannelType'],
+ self.immutable.get(cs.CHANNEL + '.TargetHandleType', 0),
+ self.immutable.get(cs.CHANNEL + '.TargetHandle', 0),
+ self.immutable.get(cs.CHANNEL + '.Requested', False),
+ signature='osuub')
self.q.dbus_emit(self.conn.object_path, cs.CONN_IFACE_REQUESTS,
'NewChannels', [(self.object_path, self.immutable)],
signature='a(oa{sv})')
--
1.5.6.5
More information about the telepathy-commits
mailing list