class UsbCdcTestHelper

Defined at line 45 of file ../../src/connectivity/ethernet/drivers/usb-cdc-function/usb-cdc-function-test.cc

UsbCdcTestHelper exposes hooks to inspect private endpoint state for tests.

Note: In this test-only precursor CL, these methods return stubbed values to allow

compilation against the unmodified driver. A subsequent CL introducing the

dead-endpoint tracking feature will connect these methods to the real driver state.

Public Methods

bool IsIntrEndpointDead (const UsbCdcFunction & )

Defined at line 47 of file ../../src/connectivity/ethernet/drivers/usb-cdc-function/usb-cdc-function-test.cc

bool IsRxEndpointDead (const UsbCdcFunction & )

Defined at line 50 of file ../../src/connectivity/ethernet/drivers/usb-cdc-function/usb-cdc-function-test.cc

bool IsTxEndpointDead (const UsbCdcFunction & )

Defined at line 51 of file ../../src/connectivity/ethernet/drivers/usb-cdc-function/usb-cdc-function-test.cc

size_t ActiveRxVmoIdsSize (const UsbCdcFunction & )

Defined at line 52 of file ../../src/connectivity/ethernet/drivers/usb-cdc-function/usb-cdc-function-test.cc

void PrepareRecycledInterruptRequestsForTesting (UsbCdcFunction & driver)

Simulates request recycling where all requests in the interrupt endpoint's free request

pool have a stale size of 8 bytes (matching network_notification).

Defined at line 56 of file ../../src/connectivity/ethernet/drivers/usb-cdc-function/usb-cdc-function-test.cc