diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/flash_common.c | 4 | ||||
-rw-r--r-- | common/host_command.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/flash_common.c b/common/flash_common.c index 9407f3336a..47938804cf 100644 --- a/common/flash_common.c +++ b/common/flash_common.c @@ -44,7 +44,7 @@ int flash_is_erased(uint32_t offset, int size) } #endif -int flash_write(int offset, int size, const char *data) +test_mockable int flash_write(int offset, int size, const char *data) { if (flash_dataptr(offset, size, CONFIG_FLASH_WRITE_SIZE, NULL) < 0) return EC_ERROR_INVAL; /* Invalid range */ @@ -56,7 +56,7 @@ int flash_write(int offset, int size, const char *data) return flash_physical_write(offset, size, data); } -int flash_erase(int offset, int size) +test_mockable int flash_erase(int offset, int size) { if (flash_dataptr(offset, size, CONFIG_FLASH_ERASE_SIZE, NULL) < 0) return EC_ERROR_INVAL; /* Invalid range */ diff --git a/common/host_command.c b/common/host_command.c index 264c3dca8e..72669e0429 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -50,7 +50,7 @@ uint8_t *host_get_memmap(int offset) #endif } -void host_send_response(struct host_cmd_handler_args *args) +test_mockable void host_send_response(struct host_cmd_handler_args *args) { #ifdef CONFIG_HOST_COMMAND_STATUS /* |