summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-08-03 11:15:29 -0400
committerPeter Jones <pjones@redhat.com>2021-09-07 17:05:04 -0400
commit5ed27307d4854e67cf999fd7785b48f5cf488a51 (patch)
treec223f1ea3b8cc6df1f03aff789d5476d03d6ac56 /include
parent1368d9ac37b985454ff1b9a28f9a46b82b5eba9b (diff)
downloadefi-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.h6
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, ...) \