template <auto* descriptors>
class WrapperTest
Defined at line 110 of file ../../src/devices/usb/lib/usb/tests/usb-wrapper-test.cc
WrapperTest is templated on the descriptor data used for the test, WrapperTest
<
&kDescriptors
>
will set up a test fixture with a USB protocol client that implements GetDescriptors and
GetDescriptorsLength for the provided kDescriptors.
Protected Members
usb_protocol_ops ops_
UsbProtocolClient usb_
Protected Methods
void SetUp ()
Defined at line 112 of file ../../src/devices/usb/lib/usb/tests/usb-wrapper-test.cc
void UsbGetDescriptors (void * ctx, uint8_t * out_descs_buffer, size_t descs_size, size_t * out_descs_actual)
Defined at line 119 of file ../../src/devices/usb/lib/usb/tests/usb-wrapper-test.cc
size_t UsbGetDescriptorsLength (void * ctx)
Defined at line 125 of file ../../src/devices/usb/lib/usb/tests/usb-wrapper-test.cc