diff options
author | Alexander Goncharov <chat@joursoir.net> | 2022-11-20 11:18:00 +0400 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-11-29 21:01:51 +0000 |
commit | 571a9ac832c0e82e240849862be7a395407276aa (patch) | |
tree | c5e458f3b9633b5bbeaae157a0e3817197563ca1 /tests/meson.build | |
parent | de016a17f25c71b4688781c7ca1b611cb9681694 (diff) | |
download | flashrom-571a9ac832c0e82e240849862be7a395407276aa.tar.gz flashrom-571a9ac832c0e82e240849862be7a395407276aa.tar.bz2 flashrom-571a9ac832c0e82e240849862be7a395407276aa.zip |
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>
Diffstat (limited to 'tests/meson.build')
-rw-r--r-- | tests/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build index 893cca889..e846d91cf 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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', ] |