summaryrefslogtreecommitdiffstats
path: root/test/test_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* win32: cache GetConsoleMode state for stdout/stderrKacper Michajłow2024-03-191-1/+0
| | | | | | | GetConsoleMode() can be quite slow and in mpv the mode never changes, so we can just check it once. Fixes performance when writing lots of logs to terminal.
* test/test_utils: add mp_msg_set_max_level stubDudemanguy2024-03-031-0/+1
| | | | Needed since the previous commit.
* test: add basic tests for timer codesfan52023-10-201-10/+0
|
* test: change test_utils stubs to ns variantsDudemanguy2023-10-161-3/+3
| | | | The functions now internally use the ns timer and not the us one.
* timer: rename mp_add_timeout to reflect what it actually doesKacper Michajłow2023-09-291-1/+1
|
* timer: rename mp_time_us_to_timespec to reflect what it actually doesKacper Michajłow2023-09-291-1/+1
|
* test/meson: explicitly specify lavf dependencycloud116652023-07-011-0/+2
| | | | Added stubs for mp_set_avdict().
* test: integrate unittests with mesonDudemanguy2023-03-021-0/+64
This reworks all of mpv's unit tests so they are compiled as separate executables (optional) and run via meson test. Because most of the tests are dependant on mpv's internals, existing compiled objects are leveraged to create static libs and used when necessary. As an aside, a function was moved into video/out/gpu/utils for sanity's sake (otherwise most of vo would have been needed). As a plus, meson multithreads running tests automatically and also the output no longer pollutes the source directory. There are tests that can break due to ffmpeg changes, so they require a specific minimum libavutil version to be built.