summaryrefslogtreecommitdiff
path: root/tests/lib/simple-conn.c
AgeCommit message (Collapse)AuthorFilesLines
2014-04-08TpExportableChannel: turn channel-properties into a GVariantrm-dbus-glib-properties1Simon McVittie1-3/+18
2014-04-08simple-conn: don't reimplement dbus-statusSimon McVittie1-15/+1
This used to be done so we could emulate a connection manager older than telepathy-spec 0.19.2, but that functionality was removed in commit 347307b7.
2014-04-07TpTestsSimpleConn: Stop using tp_svc_dbus_properties_*()Xavier Claessens1-41/+0
We are about to stop exporting TpSvcDBusProperties iface so they would be no-op.
2014-03-26Replace trivial uses of DBusGMethodInvocation with GDBusMethodInvocationSimon McVittie1-1/+1
Mostly done with perl/sed one-liners.
2014-02-13TpHandleType has been renmed to TpEntityTypeGuillaume Desmottes1-8/+8
2014-01-13Assume that Conn.I.Requests is supported, and don't put it in InterfacesSimon McVittie1-15/+0
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-25Merge branch 'master' into nextXavier Claessens1-9/+2
Conflicts: tests/lib/broken-client-types-conn.c tests/lib/bug-19101-conn.c tests/lib/bug16307-conn.c tests/lib/bug16307-conn.h tests/lib/contacts-conn.c tests/lib/contacts-conn.h tests/lib/dbus-tube-chan.c tests/lib/echo-chan.c tests/lib/echo-chan.h tests/lib/echo-cm.h tests/lib/echo-conn.c tests/lib/echo-conn.h tests/lib/file-transfer-chan.c tests/lib/params-cm.c tests/lib/params-cm.h tests/lib/room-list-chan.c tests/lib/simple-channel-manager.c tests/lib/simple-channel-request.c tests/lib/simple-client.h tests/lib/simple-conn.c tests/lib/simple-manager.c tests/lib/simple-manager.h tests/lib/stream-tube-chan.c tests/lib/textchan-group.h tests/lib/textchan-null.c tests/lib/textchan-null.h tests/lib/tls-certificate.c tests/lib/util.c
2013-09-25Tests: disable single includeXavier Claessens1-7/+2
This will make tests rebuild more often, but makes life easier to other projects who copy/paste our test utilities (e.g. folks)
2013-09-13tp_dbus_properties_mixin_dup_all: make publicSimon McVittie1-11/+2
There's no real reason not to - anything that implements D-Bus properties is clearly going to have this method in some form. Also, my next commit needs it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69283 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-12tp_dbus_properties_mixin_dup_all: make publicSimon McVittie1-11/+2
There's no real reason not to - anything that implements D-Bus properties is clearly going to have this method in some form. Also, my next commit needs it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69283
2012-10-08Merge branch 'master' into nextSimon McVittie1-0/+52
Conflicts: configure.ac docs/reference/telepathy-glib-sections.txt telepathy-glib/abi.am telepathy-glib/channel-request.c telepathy-glib/connection.c telepathy-glib/contact.c telepathy-glib/message.c tests/dbus/account-channel-request.c tests/dbus/self-handle.c tests/lib/simple-conn.c
2012-10-08self-handle test: test with a modern CM, not just an archaic oneSimon McVittie1-0/+43
If we'd done this at the time, we wouldn't have broken SelfHandleChanged. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55666 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> [g_debug -> DEBUG as per Xavier's review -smcv]
2012-07-10Merge branch 'master' into nextXavier Claessens1-3/+14
Conflicts: configure.ac telepathy-glib/abi.am telepathy-glib/account.h telepathy-glib/automatic-proxy-factory.c telepathy-glib/base-channel.h telepathy-glib/base-client.c telepathy-glib/base-connection-manager.c telepathy-glib/base-connection-manager.h telepathy-glib/base-connection.c telepathy-glib/client-channel-factory.c telepathy-glib/connection.h tests/dbus/connection-balance.c tests/dbus/protocol-objects.c tests/lib/bug16307-conn.c tests/lib/contacts-conn.c tests/lib/echo-cm.c tests/lib/echo-conn.c
2012-07-05example & test connections: update to use new get_interfaces… vfuncJonny Lamb1-3/+14
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-06-26Tests: Stop using textchan-null.hXavier Claessens1-16/+8
Those text channels does not use TpBaseChannel, and TpMessageMixin is about to make TpBaseChannel mandatory. We can replace them by TpTestsEchoChannel and TpTestsTextChannelGroup
2012-06-05Merge branch 'master' into nextXavier Claessens1-12/+10
Conflicts: examples/cm/call/conn.c examples/cm/channelspecific/conn.c examples/cm/channelspecific/room.c examples/cm/contactlist/conn.c examples/cm/echo-message-parts/conn.c examples/cm/extended/conn.c telepathy-glib/base-connection.c telepathy-glib/base-connection.h telepathy-glib/base-contact-list.c telepathy-glib/contact-list-channel.c telepathy-glib/presence-mixin.c tests/dbus/channel-request.c tests/dbus/contacts-slow-path.c tests/lib/bug-19101-conn.c tests/lib/bug16307-conn.c tests/lib/echo-conn.c tests/lib/simple-channel-request.c tests/lib/simple-conn.c tests/lib/textchan-group.c
2012-06-04Use accessors rather than accessing TpBaseConnection fields directlySimon McVittie1-12/+11
2012-05-14Don't set TpBaseConnection:self_handle struct member directlyXavier Claessens1-2/+2
The setter does more things
2012-05-10Merge branch 'master' into nextXavier Claessens1-3/+0
Conflicts: examples/cm/channelspecific/room.c telepathy-glib/base-contact-list.c telepathy-glib/connection-contact-list.c telepathy-glib/connection-handles.c telepathy-glib/connection.h telepathy-glib/contact.c telepathy-glib/contacts-mixin.c tests/dbus/message-mixin.c tests/lib/contact-list-manager.c
2012-05-10Deprecate tp_handle(s)_ref/unref, tp_handle(s)_client_hold/release and ↵Xavier Claessens1-3/+0
tp_connection_unref_handles() They are no-op now, so we can safely remove them all
2012-05-07Don't include svc-*.h in "high-level" headersSimon McVittie1-0/+1
This involves a small loss of type-safety in TpBaseContactList, but in practice the iface_init methods are used in a context that has casts anyway, so there's no real loss. This has the side-effect that we have to include dbus-properties-mixin.h more often, because svc-connection.h indirectly included that. Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-05-03Merge branch 'master' into nextSimon McVittie1-2/+2
Conflicts: configure.ac telepathy-glib/account-channel-request.h telepathy-glib/account-manager.h telepathy-glib/account.h telepathy-glib/automatic-client-factory.h telepathy-glib/automatic-proxy-factory.h telepathy-glib/base-client.h telepathy-glib/base-connection.c telepathy-glib/base-contact-list.c telepathy-glib/basic-proxy-factory.h telepathy-glib/channel-contacts.c telepathy-glib/channel-factory-iface.h telepathy-glib/channel-request.h telepathy-glib/channel.h telepathy-glib/cm-message.h telepathy-glib/connection-manager.h telepathy-glib/connection.h telepathy-glib/contact-list-channel.c telepathy-glib/contact.c telepathy-glib/contact.h telepathy-glib/dbus-properties-mixin-internal.h telepathy-glib/dbus.c telepathy-glib/dbus.h telepathy-glib/debug.h telepathy-glib/defs.h telepathy-glib/errors.h telepathy-glib/media-interfaces.c telepathy-glib/message-mixin.c telepathy-glib/message.h telepathy-glib/presence-mixin.c telepathy-glib/properties-mixin.c telepathy-glib/proxy.h telepathy-glib/simple-approver.h telepathy-glib/simple-client-factory.h telepathy-glib/simple-handler.h telepathy-glib/simple-observer.h telepathy-glib/text-mixin.c telepathy-glib/text-mixin.h tests/dbus/account-channel-request.c tests/dbus/channel-introspect.c tests/dbus/connection-aliasing.c tests/dbus/connection-balance.c tests/dbus/connection-error.c tests/dbus/connection-getinterfaces-failure.c tests/dbus/connection-interests.c tests/dbus/connection.c tests/dbus/contact-lists.c tests/dbus/self-presence.c tests/dbus/text-mixin.c tests/lib/contact-list-manager.c
2012-05-02Stop using TP_ERRORSSimon McVittie1-2/+2
We deprecated this in 0.11.
2012-04-30Merge branch 'master' into nextSimon McVittie1-6/+56
Conflicts: telepathy-glib/channel.c telepathy-glib/text-mixin.c telepathy-glib/text-mixin.h tests/lib/echo-chan.c tests/lib/simple-conn.c tests/lib/simple-conn.h tests/lib/textchan-group.c tests/lib/textchan-null.c
2012-04-30simple-conn: rename priv->channels to priv->text_channelsGuillaume Desmottes1-6/+7
2012-04-30simple-con: don't store the room list chan in priv->channelsGuillaume Desmottes1-12/+12
2012-04-30simple-conn: add tp_tests_simple_connection_ensure_room_list_chan()Guillaume Desmottes1-0/+49
2012-04-12Merge branch 'master' into nextSimon McVittie1-1/+1
Conflicts: docs/reference/telepathy-glib-sections.txt examples/cm/channelspecific/room.c examples/cm/echo-message-parts/chan.c telepathy-glib/base-contact-list-internal.h telepathy-glib/base-contact-list.c telepathy-glib/connection-handles.c telepathy-glib/contact-list-channel.c telepathy-glib/message.c
2012-04-12Use TP_NUM_… instead of NUM_TP_…Simon McVittie1-1/+1
Based on a patch from Jonny Lamb, updated for current master. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46470
2012-03-02Merge branch 'master' into next, and update to merged specSimon McVittie1-2/+1
Conflicts: configure.ac docs/reference/telepathy-glib-sections.txt examples/cm/Makefile.am examples/cm/call/example_call.manager examples/future/call-cm/call-channel.c examples/future/call-cm/call-content.c extensions/call-content.xml spec/Account_Manager.xml spec/Call_Content.xml spec/Call_Content_Interface_Audio_Control.xml spec/Call_Content_Interface_Media.xml spec/Call_Content_Interface_Video_Control.xml spec/Call_Content_Media_Description.xml spec/Call_Content_Media_Description_Interface_RTCP_Extended_Reports.xml spec/Call_Content_Media_Description_Interface_RTCP_Feedback.xml spec/Call_Content_Media_Description_Interface_RTP_Header_Extensions.xml spec/Call_Interface_Mute.xml spec/Call_Stream.xml spec/Call_Stream_Endpoint.xml spec/Call_Stream_Interface_Media.xml spec/Channel.xml spec/Channel_Interface_Addressing.xml spec/Channel_Interface_DTMF.xml spec/Channel_Type_Call.xml spec/Connection_Interface_Addressing.xml spec/Connection_Interface_Contact_List.xml spec/Connection_Manager.xml spec/Makefile.am spec/Protocol.xml spec/Protocol_Interface_Addressing.xml spec/all.xml telepathy-glib/abi.am telepathy-glib/channel-factory-iface.c telepathy-glib/channel-request.c telepathy-glib/channel.c telepathy-glib/channel.xml telepathy-glib/signals-marshal.list tests/dbus/Makefile.am tests/dbus/call-example.c tests/lib/bug16307-conn.c tests/lib/echo-channel-manager-conn.c tests/lib/echo-conn.c tests/lib/simple-conn.c Acked-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-03-01Use GLib's default marshaller everywhereSimon McVittie1-2/+1
In contrast to the previous commit, I'm just using NULL here - telepathy-glib has an explicit dependency on GLib 2.30. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46523 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-02-09Consistently use G_PARAM_STATIC_STRINGS for propertiesSimon McVittie1-4/+2
Many didn't use this shorthand, and some even didn't declare one of the three strings as static (causing GObject to copy it). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Vivek Dasmohapatra <vivek@collabora.co.uk>
2012-02-09Merge branch 'master' into nextSimon McVittie1-0/+2
Conflicts: examples/cm/callable/conn.c examples/cm/callable/connection-manager.c examples/cm/callable/media-channel.c examples/cm/callable/media-manager.c examples/cm/callable/media-stream.c examples/cm/callable/protocol.c telepathy-glib/channel-factory-iface.c telepathy-glib/contact-list-channel.c telepathy-glib/media-interfaces.c telepathy-glib/properties-mixin.c telepathy-glib/text-mixin.c tests/dbus/callable-example.c tests/dbus/connection-getinterfaces-failure.c tests/dbus/connection-inject-bug16307.c tests/dbus/contacts-slow-path.c tests/dbus/text-mixin.c tests/lib/bug16307-conn.c tests/lib/echo-channel-manager-conn.c
2012-02-06Add config.h include in all source filesXavier Claessens1-0/+2
2012-01-31channel-factory-iface: removeJonny Lamb1-2/+2
\o/ Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-01-31channel: remove deprecated methods & signalsJonny Lamb1-1/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-12-13Remove from unit test CMs individual getters that should not be called anymoreXavier Claessens1-85/+2
2011-04-11TpTestsSimpleConnection: Make it possible to break 0.19.2 propsOlli Salli1-0/+40
To force slow-path introspection in TpConnection. In particular, the self-handle changing test depends on receiving GetSelfHandle calls, which it doesn't if we're just calling GetAll.
2010-12-16simple-conn: unref all our channels when we are disconnectedGuillaume Desmottes1-0/+3
This breaks a circular reference if the channels keep a reference on the connection (which will be the case when using the TpMessageMixin).
2010-12-09TpTestsSimpleConnection: allow forcing GetSelfHandle() to failSimon McVittie1-4/+25
2010-12-09TpTestsSimpleConnection: emit a signal when GetSelfHandle is calledSimon McVittie1-3/+45
2010-09-28simple-conn: create a room handles repoGuillaume Desmottes1-0/+2
2010-07-13simple-conn: add API to ensure a text channelGuillaume Desmottes1-0/+70
2010-06-07Merge branch 'master' into tp-testsSimon McVittie1-4/+4
Conflicts: tests/lib/contacts-conn.c Modified: tests/dbus/contacts.c
2010-06-04Add the TpTests namespace to tests/lib/simple-connTravis Reitter1-23/+32
2010-06-02SimpleConnection: reduce simulation delay to zeroSimon McVittie1-4/+4
This schedules the connection/disconnection as if they were network events, but without delay, which should speed up 'make check'.
2010-04-14simple-conn: add Requests to interfaces_always_presentGuillaume Desmottes1-1/+3
2010-03-30SimpleConnection: avoid invalid state transition and two potential ↵Simon McVittie1-4/+26
use-after-frees
2009-02-13SimpleConnection: actually comply with telepathy spec >= 0.17.18Simon McVittie1-2/+2
The right error for invalid identifiers is now InvalidHandle. This omission indirectly caused fd.o #20096 (we weren't testing TpContact against a fully up-to-date CM implementation).
2009-02-10Add a feature test for the self handle (fd.o#17519)Simon McVittie1-0/+16