diff options
Diffstat (limited to 'test/mocks.c')
-rw-r--r-- | test/mocks.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/mocks.c b/test/mocks.c index 0d63ed1..df10147 100644 --- a/test/mocks.c +++ b/test/mocks.c @@ -271,6 +271,16 @@ __wrap_handle_dirty_pages(vfu_ctx_t *vfu_ctx, uint32_t size, return mock(); } +/* Always mocked. */ +int +mock_unmap_dma(vfu_ctx_t *vfu_ctx, uint64_t iova, uint64_t len) +{ + check_expected(vfu_ctx); + check_expected(iova); + check_expected(len); + return mock(); +} + /* FIXME should be something faster than unsorted array, look at tsearch(3). */ static struct function funcs[] = { {.addr = &__wrap_dma_controller_add_region}, |