[next] telepathy-glib: call-cancellation, disconnection tests: don' t use TpDBusDaemon as proxy

Simon McVittie smcv at kemper.freedesktop.org
Fri Mar 14 12:02:34 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 0a8b1c9170c03f35562606acf32f11fabb23b96f
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=0a8b1c9170c03f35562606acf32f11fabb23b96f

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Mar 12 08:49:41 2014 +0000

call-cancellation, disconnection tests: don't use TpDBusDaemon as proxy

TpDBusDaemon is rather special: in particular, it can't be invalidated
implicitly by the peer disconnecting, because there is no peer.
At the moment we fake it by forcing the DBusGProxy to be disposed,
but that's an implementation detail; it would be better for the peer
to actually disconnect.

While we're changing all these lines anyway, make a step towards
using GTest, by grouping some of the miscellaneous state in a
fixture.

---

 tests/dbus/call-cancellation.c |  264 +++++++++++++++++++++-------------------
 tests/dbus/disconnection.c     |  239 ++++++++++++++++++++----------------
 2 files changed, 273 insertions(+), 230 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-glib/diff/?id=0a8b1c9170c03f35562606acf32f11fabb23b96f


More information about the telepathy-commits mailing list