mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-17 12:20:15 +02:00
tests: Add fwrite and fdopen to io_mock
BUG=None BRANCH=None TEST=None Change-Id: I4dff96c264b3ada354538b434b2808fb66c7ef59 Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/69538 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
67a393b88a
commit
da6d28f2d1
@@ -111,8 +111,10 @@ struct io_mock {
|
||||
FILE* (*iom_fopen)(void *state, const char *pathname, const char *mode);
|
||||
char* (*iom_fgets)(void *state, char *buf, int len, FILE *fp);
|
||||
size_t (*iom_fread)(void *state, void *buf, size_t size, size_t len, FILE *fp);
|
||||
size_t (*iom_fwrite)(void *state, const void *buf, size_t size, size_t len, FILE *fp);
|
||||
int (*iom_fprintf)(void *state, FILE *fp, const char *fmt, va_list args);
|
||||
int (*iom_fclose)(void *state, FILE *fp);
|
||||
FILE *(*iom_fdopen)(void *state, int fd, const char *mode);
|
||||
|
||||
/*
|
||||
* An alternative to custom open mock. A test can either register its
|
||||
|
Reference in New Issue
Block a user