about summary refs log tree commit diff stats
path: root/tests/unittests/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add url support (downloading) to `/plugins install`John Hernandez2023-05-162-0/+21
| | | | Additional changes include code refactoring.
* Fix duplicate download IDs.IsaacM882023-03-092-0/+2
| | | | | | | | | | Fixes https://github.com/profanity-im/profanity/issues/1794 Explanation The problem is the download's identifier. Downloads are given an ID so they can be referenced later when their progress changes. Currently, the download's ID is the download's URL. When you download the same file twice, you have two downloads with the same ID. Download progress updates are shown on the first of both downloads with the same ID. Solution Change the download's ID from its URL to a random number. A random ID is generated when get_random_string() is called from cmd_funcs.c. Several other functions are updated to cope with the new ID format.
* Move unique_filename_from_url functions to commonWilliam Wennerström2020-12-041-0/+9
|
* Fix stubs and move some tests to http_commonWilliam Wennerström2020-11-164-26/+8
|
* Add stubsWilliam Wennerström2020-11-163-2/+39
|
* Run make format on rebaseWilliam Wennerström2020-11-161-11/+11
|
* Infer filename from content-disposition or URLWilliam Wennerström2020-11-161-0/+28
| | | | | The Content-Disposition inferring is probably a bad idea security wise, so I am going to remove it.
* Apply coding styleMichael Vetter2020-07-071-13/+26
|
* Revert "Apply coding style"Michael Vetter2020-07-071-26/+13
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-13/+26
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Fix http_upload stubMichael Vetter2020-04-171-0/+3
|
* tests: remove cflag -w and fix warningsDmitry Podgorny2018-10-311-3/+3
| | | | | | | | | The flag hides errors. But we want unit tests to be correct in order to reveal errors in the main code. The patch removes tests_unittests_unittests_CFLAGS which makes autotools use AM_CFLAGS instead. Therefore, unit tests are built with flags derived from configure.ac.
* fix: Missing pthread includeRafael Sadowski2018-08-131-0/+1
|
* Allow installing plugins from directoryJames Booth2017-02-051-1/+0
|
* Update CopyrightJames Booth2017-01-281-34/+0
|
* Implement XEP-0363: HTTP File UploadDominik Heidler2016-04-261-0/+63