ut/vbdev_lvol: Replace local json mocks by json_mock.c

Change-Id: Ia1700d7e4e9c37af557048d6bc658c42e6f31673
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/442937
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Shuhei Matsumoto 2019-02-01 14:30:46 +09:00 committed by Darek Stojaczyk
parent 7b74567eb1
commit 326d4eb504

View File

@ -36,6 +36,8 @@
#include "bdev/lvol/vbdev_lvol.c"
#include "unit/lib/json_mock.c"
#define SPDK_BS_PAGE_SIZE 0x1000
int g_lvolerrno;
@ -541,48 +543,6 @@ spdk_bdev_module_list_add(struct spdk_bdev_module *bdev_module)
{
}
int
spdk_json_write_name(struct spdk_json_write_ctx *w, const char *name)
{
return 0;
}
int
spdk_json_write_array_begin(struct spdk_json_write_ctx *w)
{
return 0;
}
int
spdk_json_write_array_end(struct spdk_json_write_ctx *w)
{
return 0;
}
int
spdk_json_write_string(struct spdk_json_write_ctx *w, const char *val)
{
return 0;
}
int
spdk_json_write_bool(struct spdk_json_write_ctx *w, bool val)
{
return 0;
}
int
spdk_json_write_object_begin(struct spdk_json_write_ctx *w)
{
return 0;
}
int
spdk_json_write_object_end(struct spdk_json_write_ctx *w)
{
return 0;
}
const char *
spdk_bdev_get_name(const struct spdk_bdev *bdev)
{