diff options
author | wm4 <wm4@nowhere> | 2019-11-08 14:35:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-08 20:34:07 +0100 |
commit | a6c8b4efa59628a755755c510aa9ee6db2728fb9 (patch) | |
tree | 2a5af32fad4748cae5504462ccb855682d950a1d /test/index.h | |
parent | 98b38b04c9f771562cdf262c6fa49734a318f5ce (diff) | |
download | mpv-a6c8b4efa59628a755755c510aa9ee6db2728fb9.tar.bz2 mpv-a6c8b4efa59628a755755c510aa9ee6db2728fb9.tar.xz |
test: merge test_helpers.c and index.c
No need to keep them separate. Originally I thought index.c was only
going to contain the list of tests, but that didn't happen.
Diffstat (limited to 'test/index.h')
-rw-r--r-- | test/index.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/index.h b/test/index.h deleted file mode 100644 index 1564fe311a..0000000000 --- a/test/index.h +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#include <stdbool.h> - -struct MPContext; - -bool run_tests(struct MPContext *mpctx); - -struct test_ctx { - struct mpv_global *global; - struct mp_log *log; -}; - -struct unittest { - // This is used to select the test on command line with --unittest=<name>. - const char *name; - - // Cannot run without additional arguments supplied. - bool is_complex; - - // Entrypoints. There are various for various purposes. Only 1 of them must - // be set. - - // Entrypoint for tests which have a simple dependency on the mpv core. The - // core is sufficiently initialized at this point. - void (*run)(struct test_ctx *ctx); -}; - -extern const struct unittest test_chmap; -extern const struct unittest test_gl_video; -extern const struct unittest test_json; -extern const struct unittest test_linked_list; |