summaryrefslogtreecommitdiff
path: root/tests/include/helpers/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/helpers/file.h')
-rw-r--r--tests/include/helpers/file.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/include/helpers/file.h b/tests/include/helpers/file.h
new file mode 100644
index 0000000000..a583b000a2
--- /dev/null
+++ b/tests/include/helpers/file.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _TESTS_HELPERS_FILE_H
+#define _TESTS_HELPERS_FILE_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+int test_get_file_size(const char *fname);
+int test_read_file(const char *fname, uint8_t *buf, size_t size);
+
+#endif