summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-01-07Stop calling g_type_init()Simon McVittie54-71/+0
It was deprecated in GLib 2.36, and we already have a hard dependency on that version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-11-15Tests: use g_test_dbus_unset()Xavier Claessens1-4/+4
Also link to https://bugzilla.gnome.org/show_bug.cgi?id=697348 to explain why we still have to unset STARTER env variables.
2013-11-11TpProtocol: add high-level API for the Addressing interfaceSimon McVittie1-0/+60
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-11-11tp_protocol_identify_account_async: add and testSimon McVittie1-0/+58
To make the test a little more interesting and a little more realistic, we normalize the 'account' parameter to lower-case. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-11-11tp_protocol_normalize_contact_async: add and testSimon McVittie1-0/+34
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-10-28fix spurious.service EXTRA_DIST pathGuillaume Desmottes1-1/+1
2013-10-23add TpAccount::avatar-changed signalGuillaume Desmottes1-0/+28
Fix https://bugs.freedesktop.org/show_bug.cgi?id=52938
2013-10-23simple-account: claim that we support AvatarGuillaume Desmottes1-0/+1
2013-10-23simple-account: add test API to change the avatarGuillaume Desmottes2-7/+25
2013-10-09Use MKDIR_P instead of deprecated mkdir_pSimon McVittie1-2/+2
In theory, AC_PROG_MKDIR_P only sets MKDIR_P, although for now it also sets the deprecated mkdir_p for compatibility with AM_PROG_MKDIR_P. Similar to MC commit 04dd9b4. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=70045 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-27stop using tp_account_manager_is_prepared()Guillaume Desmottes1-4/+4
2013-09-27stop using tp_account_is_prepared()Guillaume Desmottes2-3/+3
2013-09-26Suppress remaining GValueArray deprecation warningsSimon McVittie4-0/+16
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-09-26Use tp_value_array_free instead of g_value_array_freeSimon McVittie5-5/+8
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-09-26Make more use of tp_value_array_unpack, tp_value_array_buildSimon McVittie1-10/+4
As well as being less code, they're not flagged as deprecated. This requires a bit of extra copying, because there's no tp_value_array_unpack_dup() or tp_value_array_build_take(), but it seems worth it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-09-26simple-account: set 'parameters' as writableGuillaume Desmottes1-2/+27
Some logger tests relies on this.
2013-09-26Port unit tests to g_test_dbus_up/downXavier Claessens52-135/+127
https://bugs.freedesktop.org/show_bug.cgi?id=55761
2013-09-25Tests: disable single includeXavier Claessens51-140/+58
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-13cm test: test "drop name on get" on a modern CMSimon McVittie1-136/+70
We were only testing this case on the archaic CM, but that's undesirable when converting to Telepathy 1.0, since a CM with no D-Bus properties will cease to be a valid CM. The diff is a little confusing because I'm basically turning test_dbus_fallback() and its fork test_dbus_ready() back into the same function. The merged version does everything that either of its precursors did. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69283 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-13tp_dbus_properties_mixin_dup_all: make publicSimon McVittie2-16/+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-06Regression tests: also avoid tmpnam() hereSimon McVittie4-4/+34
This is a bit simpler than in production code, because we can just abort on errors that "should never happen". Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68350 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-08-20Merge branch 'telepathy-glib-0.20'Simon McVittie1-7/+69
Conflicts: NEWS configure.ac
2013-07-24TpConnectionManager: retry introspection after CM exits, up to onceSimon McVittie1-7/+69
Many connection managers automatically exit after 5 seconds of inactivity. If the CM has no .manager file *and* exits in this way while we are introspecting it, we would previously consider it to have failed introspection - but with sufficiently unfortunate timing, that can result in empathy-accounts not considering Haze to exist. To avoid this, without going into an infinite loop if the CM fails to introspect, retry once, but only once. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=67183 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-06-11Merge branch 'telepathy-glib-0.20'Simon McVittie3-1/+1
Conflicts: NEWS
2013-06-11Make tool tests executable rather than putting sh in TESTS_ENVIRONMENTSimon McVittie3-1/+1
This makes it possible to run the tool tests under the Automake 1.12+ parallel test harness, which is the default from 1.13 onwards. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65517
2013-06-11util-cxx: include config.hSimon McVittie1-0/+2
This avoids a deprecation warning for g_type_init(). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65517
2013-06-11Use AC_PROG_MKDIR_P instead of deprecated AM_PROG_MKDIR_PSimon McVittie1-2/+2
This means we define MKDIR_P instead of mkdir_p - adjust. Strictly speaking this requires Autoconf 2.59d, but 2.60 is hardly a new innovation (it was released in 2006). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65517
2013-06-10contact-lists test: add a regression test for fd.o #52011Simon McVittie1-5/+67
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=52011 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-04-14Merge branch 'telepathy-glib-0.20' and update NEWSWill Thompson2-0/+77
Conflicts: NEWS
2013-04-14Always flag delivery reports with Non_Text_ContentWill Thompson2-0/+77
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=61254
2013-04-03Fix test_utf8_make_valid()Xavier Claessens1-0/+6
Older GLib explicitly disallowed non-characters (as this test assumes) but newer GLib follows Unicode Corrigendum 9 and allows them. https://bugzilla.gnome.org/show_bug.cgi?id=694669
2013-04-03Fix test_utf8_make_valid()Xavier Claessens1-0/+6
Older GLib explicitly disallowed non-characters (as this test assumes) but newer GLib follows Unicode Corrigendum 9 and allows them. https://bugzilla.gnome.org/show_bug.cgi?id=694669
2013-04-03Verify that TpConnection is not leaked in contacts unit testsXavier Claessens1-7/+17
This plugs various leaks in the tests as well.
2013-03-12Merge branch 'telepathy-glib-0.20'Guillaume Desmottes1-0/+1
2013-03-12start_file_transfer(): unset timer_idGuillaume Desmottes1-0/+1
2013-03-12Merge branch 'telepathy-glib-0.20'Guillaume Desmottes1-2/+10
2013-03-12file-transfer-chan: don't call start_file_transfer() after disposalGuillaume Desmottes1-2/+10
2013-01-09TpAccount: implement change notification on uri-schemes propertyGuillaume Desmottes2-0/+24
2013-01-09add TpAccount:uri-schemes: propertyGuillaume Desmottes1-5/+26
The property was missing for some reason.
2013-01-09simple-account: add tp_tests_simple_account_add_uri_scheme()Guillaume Desmottes2-4/+34
2013-01-08add missing config.h includesGuillaume Desmottes1-0/+2
g_type_init() has been deprecated in GLib master. By including config.h we avoid the deprecation warning as it contains GLib's versions macros.
2013-01-03contact-lists test: add a regression test for fd.o #52011Simon McVittie1-5/+67
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=52011 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08tests/lib: define _TP_COMPILATION for the internal variantSimon McVittie1-0/+1
foo_CPPFLAGS overrides AM_CPPFLAGS, so if you want to include the latter in the former, you have to do it explicitly.
2012-10-08self-handle test: test with a modern CM, not just an archaic oneSimon McVittie4-12/+85
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-10-08Run the tests with G_MESSAGES_DEBUG=allSimon McVittie2-0/+2
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>
2012-09-26tp_message_set_variant: add and testSimon McVittie1-2/+2
https://bugs.freedesktop.org/show_bug.cgi?id=55096
2012-09-26tp_message_dup_part: addSimon McVittie1-0/+12
https://bugs.freedesktop.org/show_bug.cgi?id=55096
2012-09-26tp_account_channel_request_dup_request, request-vardict property: addSimon McVittie1-0/+21
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55099
2012-09-26tp_account_channel_request_new_vardict: addSimon McVittie1-57/+40
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55099
2012-09-26tp_g_socket_address_from_g_variant, ↵Simon McVittie1-30/+24
tp_address_g_variant_from_g_socket_address: add https://bugs.freedesktop.org/show_bug.cgi?id=55101