|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include <setjmp.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <cmocka.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | DTTR_TestCase |
Macros | |
| #define | DTTR_TEST_ARRAY_COUNT(TESTS) |
| #define | DTTR_TEST_MAIN(TESTS) |
Functions | |
| static int | dttr_test_run_case (const DTTR_TestCase *test_case) |
| static void | dttr_test_require_available (bool available) |
| static const DTTR_TestCase * | dttr_test_find_case (const DTTR_TestCase *test_cases, size_t test_case_count, const char *name) |
| static int | dttr_test_run_cases (const DTTR_TestCase *test_cases, size_t test_case_count, int argc, char **argv) |
| #define DTTR_TEST_ARRAY_COUNT | ( | TESTS | ) |
Definition at line 20 of file dttr_test_support.h.
Referenced by chain_log(), and test_patch_group_target_failure_rolls_back_only_new_entries().
| #define DTTR_TEST_MAIN | ( | TESTS | ) |
Definition at line 21 of file dttr_test_support.h.
|
inlinestatic |
Definition at line 54 of file dttr_test_support.h.
References NULL.
Referenced by dttr_test_run_cases().
|
inlinestatic |
Definition at line 40 of file dttr_test_support.h.
Referenced by test_blueprint_functions_resolve_and_match_abi(), test_expected_mss32_imports_are_hooked(), test_expected_pcdogs_byte_patch_targets_resolve(), test_expected_pcdogs_jmp_hook_targets_resolve(), and test_expected_pcdogs_signatures_resolve().
|
inlinestatic |
Definition at line 27 of file dttr_test_support.h.
References DTTR_TestCase::fn, DTTR_TestCase::name, and NULL.
Referenced by dttr_test_run_cases().
|
inlinestatic |
Definition at line 73 of file dttr_test_support.h.
References dttr_test_find_case(), and dttr_test_run_case().