about summary refs log tree commit diff stats
path: root/tests/unittests
Commit message (Collapse)AuthorAgeFilesLines
* Fix clears_chat_sessions unittestMichael Vetter2020-05-282-1/+6
|
* Add cons_show_bookmarks_ignore stubMichael Vetter2020-05-241-0/+1
|
* Fix build on sr.htMichael Vetter2020-05-221-0/+1
| | | | | | | | | | | | | | | | Hopefully fixing: ``` cc1: warnings being treated as errors tests/unittests/test_cmd_otr.c: In function 'cmd_otr_start_sends_otr_query_message_to_current_recipeint': tests/unittests/test_cmd_otr.c:422: warning: 'window.urls_ac' is used uninitialized in this function gmake[2]: *** [Makefile:1913: tests/unittests/test_cmd_otr.o] Error 1 gmake[2]: Leaving directory '/home/build/profanity' gmake[1]: *** [Makefile:2442: check-am] Error 2 gmake[1]: Leaving directory '/home/build/profanity' gmake: *** [Makefile:2445: check] Error 2 ```
* Update bookmark test stubMichael Vetter2020-05-221-2/+2
|
* Add executable stubMichael Vetter2020-05-201-1/+1
|
* Fix http_upload stubMichael Vetter2020-04-171-0/+3
|
* Update database stubMichael Vetter2020-04-071-3/+1
|
* Remove chat_log_get_previous()Michael Vetter2020-04-061-5/+0
| | | | | | | | | | | | We now dont get the log files from the text files via chat_log_get_previous() anymore. We use the sql backend via log_database_get_previous_chat(). So far it just has the same behaviour like chat_log_get_previous(), except that in _chatwin_history() we don't pass the sender to win_print_history() which should be fixed in a commit soon. And log_database_get_previous_chat() can later easily be expanded to fix https://github.com/profanity-im/profanity/issues/205.
* Add log_database_add_*() test stubsMichael Vetter2020-04-061-1/+6
|
* Fix message_send_private unittest stubMichael Vetter2020-04-061-1/+6
|
* db: add database unit test stubMichael Vetter2020-04-061-0/+31
|
* Add slashguard featureMichael Vetter2020-03-181-0/+1
| | | | | New command `/slashguard` tries to protect against typing ` /quit` by not allowing a slash in the first 4 characters.
* Add cons_avatar_setting to unit test stubMichael Vetter2020-03-101-0/+1
|
* Fix log test stubMichael Vetter2020-02-211-4/+5
|
* Fix test stubMichael Vetter2020-02-211-1/+1
| | | | Change done in eb2fbdba2efb9c81275461bf3651215b9456e496
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-2/+2
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Parse mentions and triggers in muc history if display is 'regular'Michael Vetter2020-02-202-3/+3
| | | | Fix https://github.com/profanity-im/profanity/issues/1261
* Add builds.sr.ht CI for OpenBSDWilliam Wennerström2020-02-171-0/+6
| | | | | | | | * Add .builds/openbsd.yml for builds.sr.ht * Update travis-build.sh -> ci-build.sh with OpenBSD case * Fix libdl check in configure.ac (OpenBSD has libdl built-in) * Fix some minor issues found when compiling on OpenBSD with GCC (e.g. uninitialized variables)
* test: Init window.layout to make compiler happyMichael Vetter2020-02-141-0/+1
| | | | | Fix tests/unittests/test_cmd_otr.c:415: warning: 'window.layout' is used uninitialized in this function on openbsd (thanks optmzr)
* Fix testsMichael Vetter2020-02-141-1/+1
|
* xep-0308: adapt unit test stubsMichael Vetter2020-02-142-8/+6
|
* xep-0308: add cons_correction_setting stub to testsMichael Vetter2020-02-101-0/+1
|
* Fix unittest buildPaul Fariello2020-01-311-14/+14
|
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-313-5/+5
| | | | Fix #1068
* Add cons_os_setting stub for testsMichael Vetter2020-01-241-0/+1
|
* Use OMEMO for offline MUC members (#1242)Paul Fariello2020-01-201-1/+1
|
* xep-0084: add test stub fileMichael Vetter2019-12-181-0/+7
|
* test: add cons_color_settingMichael Vetter2019-12-091-0/+1
|
* Add cons_logging_setting() to test stubMichael Vetter2019-11-131-2/+1
|
* Add cons_titlebar_setting stubMichael Vetter2019-11-051-1/+1
| | | | and remove encwarn one.
* Don't override ProfMessage Id with origin-idMichael Vetter2019-10-311-1/+1
| | | | | | | | | | Profanity sends the same value for both. Other clients might not. Safe both since we could need them later. Once we implement Last Message Correction we will need the regular id. If we override it with origin-id and another client chooses to not use the same value for id and origin-id then we can't interpret the id sent with the LMC request correctly.
* Adjust message stubs in unit testsMichael Vetter2019-10-291-4/+4
|
* Adjust stub for connection_get_profanity_identifierMichael Vetter2019-10-221-1/+1
|
* Move ProfMessage and message_is_sent_by_us to xmppMichael Vetter2019-10-191-1/+0
| | | | Not meant for internal usage only.
* Add message_is_sent_by_us stubMichael Vetter2019-10-181-0/+5
|
* Remove accidentally added fileMichael Vetter2019-10-181-7/+0
|
* Add connection_get_profanity_identifier stubMichael Vetter2019-10-183-0/+12
| | | | And move defintion to xmpp.h
* Fix memory leak in unittestsDmitry Podgorny2019-10-141-0/+1
|
* Fix invalid reads in unit testsMichael Vetter2019-10-101-2/+0
|
* Revert "Free lits in test_cmd_roster unittest"Michael Vetter2019-10-101-1/+0
| | | | | | This reverts commit 5b19ed28ce6f8bd8f46248de612f7ed466dc7a73. This caused a segfault.
* First destroy roster then free list in test_cmd_rosterMichael Vetter2019-10-061-3/+3
|
* Free strings in test_cmd_aliasMichael Vetter2019-10-061-0/+4
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Free lits in test_cmd_roster unittestMichael Vetter2019-10-061-0/+4
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Remove not needed strdupin test_cmd_roomsMichael Vetter2019-10-061-2/+3
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Free autocomplete_complete results in unittestMichael Vetter2019-10-061-1/+19
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Fix autocomplete memleak in test_autocompleteMichael Vetter2019-10-061-16/+16
| | | | | | | autocomplete_free() calls autocomplete_clear() and then frees the struct itself. Regards https://github.com/profanity-im/profanity/issues/1019
* Free lists in test_roster_listMichael Vetter2019-10-061-0/+20
| | | | | Fix memleaks. Regards https://github.com/profanity-im/profanity/issues/1019
* Fix two memleaks in test_parserMichael Vetter2019-10-061-0/+4
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Fix memleak in cmd_bookmark_list_shows_bookmarks unittestMichael Vetter2019-10-061-0/+16
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Fix memleak in test_parser unittestMichael Vetter2019-10-061-0/+2
| | | | Regards https://github.com/profanity-im/profanity/issues/1019