1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-03 06:53:18 +02:00

tests: add more wrappers for libusb funcs

The patch adds wrappers for libusb functions that are used in the
ch341a programmer and have not yet been introduced.

Change-Id: Ic11efb9fd746cb91911dbe87e1c0028759f5bb0b
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69872
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:
Alexander Goncharov
2022-11-20 11:18:00 +04:00
committed by Anastasia Klimchuk
parent de016a17f2
commit 571a9ac832
4 changed files with 66 additions and 0 deletions

View File

@ -79,10 +79,14 @@ mocks = [
'-Wl,--wrap=INL',
'-Wl,--wrap=usb_dev_get_by_vid_pid_number',
'-Wl,--wrap=libusb_init',
'-Wl,--wrap=libusb_set_debug',
'-Wl,--wrap=libusb_set_option',
'-Wl,--wrap=libusb_open',
'-Wl,--wrap=libusb_set_auto_detach_kernel_driver',
'-Wl,--wrap=libusb_detach_kernel_driver',
'-Wl,--wrap=libusb_attach_kernel_driver',
'-Wl,--wrap=libusb_open_device_with_vid_pid',
'-Wl,--wrap=libusb_get_device',
'-Wl,--wrap=libusb_get_device_list',
'-Wl,--wrap=libusb_free_device_list',
'-Wl,--wrap=libusb_get_bus_number',
@ -98,6 +102,10 @@ mocks = [
'-Wl,--wrap=libusb_ref_device',
'-Wl,--wrap=libusb_unref_device',
'-Wl,--wrap=libusb_close',
'-Wl,--wrap=libusb_alloc_transfer',
'-Wl,--wrap=libusb_submit_transfer',
'-Wl,--wrap=libusb_free_transfer',
'-Wl,--wrap=libusb_handle_events_timeout',
'-Wl,--wrap=libusb_exit',
'-Wl,--gc-sections',
]