summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests/dbus/test-tpl-log-store-xml: use tpl_test_create_and_prepare_account()Guillaume Desmottes2013-09-271-18/+38
| | | | | | This test will rely on the TpAccount to be prepared soon. https://bugs.freedesktop.org/show_bug.cgi?id=69814
* add logger-test-helper.cGuillaume Desmottes2013-09-273-1/+105
| | | | | | | | Introduce a new helper file to contain logger test specific helper functions. Add helper function to register and prepare accounts. https://bugs.freedesktop.org/show_bug.cgi?id=69814
* tests/lib: sync with tp-glib masterGuillaume Desmottes2013-09-2618-176/+1651
| | | | | | Adds a few new files used by the new version of the files we are using. https://bugs.freedesktop.org/show_bug.cgi?id=69846
* fix tp-glib single headersGuillaume Desmottes2013-09-253-3/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* test-entity: stop using tp_connection_get_contacts_by_handle()Guillaume Desmottes2013-09-251-31/+29
| | | | | | It has been deprecated. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* tests/lib: sync with tp-glib masterGuillaume Desmottes2013-09-258-98/+777
| | | | | | Add room-list-chan.c as it's used by simple-conn. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* stop using tp_account_new()Guillaume Desmottes2013-09-254-23/+47
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* test-log-manager: make sure to pass a (gint64) as timestampGuillaume Desmottes2013-09-231-2/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69715
* Make log-manager tests writableDan Vrátil2013-04-084-23/+58
|
* Add ignore list capabilityDan Vrátil2013-04-041-0/+149
| | | | | | This allow disabling logging for a specific contact. Fix bug https://bugs.freedesktop.org/show_bug.cgi?id=54033
* tests: Add a test for log-walker/rewindDebarshi Ray2013-01-091-0/+35
| | | | | | ... to cover the use of a filter. Fixes: https://bugs.freedesktop.org/54270
* tests: Add a test for log-walker/get-eventsDebarshi Ray2013-01-091-0/+41
| | | | | | ... to cover the use of a filter. Fixes: https://bugs.freedesktop.org/54270
* log-walker: Run the filter synchronously in the walkerDebarshi Ray2013-01-092-6/+6
| | | | | | | | | | This ensures that the TplLogEventFilter is always run from the same thread which invoked the walker. This is implemented by keeping track of skipped events in the history instead of silently ignoring them within the LogIters. This has the nice side effect that we do not need to run the filter while rewinding. Fixes: https://bugs.freedesktop.org/54270
* Include config.h as the first thing in every .c fileDebarshi Ray2013-01-0910-0/+23
| | | | | | | | | | | This is Autoconf best-practice, and ensures that the GLib and Telepathy version-selection macros defined by configure.ac work as intended. Including config.h turns on ENABLE_DEBUG, which in turn leads to the usage of _tpl_debug_set_flags_from_env. In those cases we should include telepathy-logger/debug-internal.h also. Fixes: https://bugs.freedesktop.org/59165
* Make TplLogStore:name immutable.Will Thompson2012-09-254-9/+3
| | | | | | For all log stores except the Xml one, this is always set to the same thing. For the Xml one, the name of the store depends entirely on the value of empathy-legacy.
* TplLogStore: make :readable property immutableWill Thompson2012-09-251-1/+0
| | | | | Again, it's meaningless to have this be a writeable construct-only property—a store is either readable or it's not.
* TplLogStore: remove writable property.Will Thompson2012-09-251-1/+0
| | | | | | This property was defined by the interface to be readwrite, but this doesn't make any sense: if the object implements the add_event method, then it is writable, and if not, it doesn't.
* Add missing valgrind suppressionNicolas Dufresne2012-08-281-0/+7
|
* tests: Add a test for log-walker/rewindDebarshi Ray2012-08-281-0/+90
| | | | | | | ... to cover events coming from multiple stores spanning several days where multiple events might have the same timestamp. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-walker/get-eventsDebarshi Ray2012-08-282-0/+294
| | | | | | | ... to cover events coming from multiple stores spanning several days where multiple events might have the same timestamp. Fixes: https://bugs.freedesktop.org/41772
* tests: Add new TpLogger and purple logs to flex the TplLogWalkerDebarshi Ray2012-08-287-2/+70
| | | | | | | The actual test case will be added later. Existing test cases have been adjusted accordingly. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-pidgin/rewindDebarshi Ray2012-08-281-0/+270
| | | | | | ... to cover text events spanning multiple days. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-pidgin/get-eventsDebarshi Ray2012-08-282-0/+577
| | | | | | ... to cover text events spanning multiple days. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-xml/rewindDebarshi Ray2012-08-281-0/+195
| | | | | | | ... to cover text events spanning multiple days, and a mix of call and text events. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-xml/get-eventsDebarshi Ray2012-08-282-0/+234
| | | | | | | ... to cover text events spanning multiple days, and a mix of call and text events. Fixes: https://bugs.freedesktop.org/41772
* Stop using TplChannelFactory, reply on TplClientFactory insteadXavier Claessens2012-07-041-16/+1
| | | | | Give a TplClientFactory to the TplObserver, so we get already prepared TplTextChannel and TplCallChannel subclasses.
* add missing config.h includesGuillaume Desmottes2012-06-055-0/+10
|
* simple-conn: use TP_ERROR instead of TP_ERRORSGuillaume Desmottes2012-06-051-2/+2
| | | | | The latter has been deprecated. Ideally we should sync this file from tp-glib but the current version depends on tp-glib 0.19.x
* Port TplCallChannel to Call1 APINicolas Dufresne2012-03-281-6/+4
| | | | | This include a API break in the unstable Call code. Code using the unstable call log feature will need porting.
* add missing config.hGuillaume Desmottes2012-02-141-0/+2
|
* Replace g_ptr_array_free with g_ptr_array_unrefCosimo Alfarano2011-11-181-1/+1
|
* Replace g_hash_table_destroy with g_hash_table_unrefCosimo Alfarano2011-11-181-15/+15
|
* Fix observer singleton and select featuresNicolas Dufresne2011-10-141-2/+2
|
* test_add_superseding_event: add some edit timestampsDavid Laban2011-05-261-3/+14
| | | | They should be preserved, but shouldn't affect how events are processed.
* Revert "Update tests to use original-timestamp"David Laban2011-05-261-9/+5
| | | | This reverts commit 31411d5c9d19678ff862e07c508ff3cf78cbf40a.
* Merge branch 'fix-insert-after'Nicolas Dufresne2011-05-264-18/+57
|\
| * Test case where first call is older then any textNicolas Dufresne2011-05-264-3/+39
| |
| * Add comment to explain a bit the testsNicolas Dufresne2011-05-261-0/+4
| |
| * Fixed initial call event_queue_insert_sorted_after()Nicolas Dufresne2011-05-261-15/+16
| | | | | | | | The current code would always insert after the first element.
| * Fixed initialised but unused warningNicolas Dufresne2011-05-261-3/+1
| |
* | Add a testcase for bug #37288Emilio Pozuelo Monfort2011-05-261-0/+23
|/
* Fix warn not checking system() return valueNicolas Dufresne2011-05-251-1/+4
|
* Update tests to use original-timestampDavid Laban2011-05-241-5/+9
|
* text-event: s/dup_supersedes/get_supersedes/David Laban2011-05-241-11/+5
| | | | | | Copying and freeing lists of events is a waste of time. Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
* fixup! fixup! Test message edits that have broken timestampsDavid Laban2011-05-191-9/+9
| | | | cast to GFunc
* fixup! fixup! Add tests to cover messages arriving a bit/a lot lateDavid Laban2011-05-191-2/+2
| | | | cast to GFunc
* fixup! Test message edits that have broken timestampsDavid Laban2011-05-191-9/+22
| | | | | Note that this also fixes something from "test_add_superseding_event" but rebasing to fix that would cause conflicts so I'm not going to.
* fixup! Add tests to cover messages arriving a bit/a lot lateDavid Laban2011-05-191-2/+4
|
* Test message edits that have broken timestampsDavid Laban2011-05-181-3/+80
| | | | | Note that the timestamps on edits should be that of the original message if possible.
* Add tests to cover messages arriving a bit/a lot lateDavid Laban2011-05-181-7/+39
|