diff options
| author | Peter Jones <pjones@redhat.com> | 2021-08-03 11:15:29 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-09-07 17:05:04 -0400 |
| commit | 5ed27307d4854e67cf999fd7785b48f5cf488a51 (patch) | |
| tree | c223f1ea3b8cc6df1f03aff789d5476d03d6ac56 /include | |
| parent | 1368d9ac37b985454ff1b9a28f9a46b82b5eba9b (diff) | |
| download | efi-boot-shim-5ed27307d4854e67cf999fd7785b48f5cf488a51.tar.gz efi-boot-shim-5ed27307d4854e67cf999fd7785b48f5cf488a51.zip | |
tests: add some slightly better EFIAPI error mocks
This adds more mock functions that just return various EFI error codes
in the EFIAPI ABI.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/test.h b/include/test.h index f6b0e929..fcaa1cdf 100644 --- a/include/test.h +++ b/include/test.h @@ -304,6 +304,12 @@ extern int debug; #define dprint(fmt, ...) {( if (debug) printf("%s:%d:" fmt, __func__, __LINE__, ##__VA_ARGS__); }) #endif +void EFIAPI mock_efi_void(); +EFI_STATUS EFIAPI mock_efi_success(); +EFI_STATUS EFIAPI mock_efi_unsupported(); +EFI_STATUS EFIAPI mock_efi_not_found(); +void init_efi_system_table(void); +void reset_efi_system_table(void); void print_traceback(int skip); #define eassert(cond, fmt, ...) \ |
