This is a simple class used to simulate the communication with a device by using
known buffers. Pass this device to a SCSICommand, and during the sgio_execute()
it sets the response buffers with the data instead of executing a real ioctl.
Note:
To test a scsi command test cases will pass the constructor applicable buffers (dataout,
datain, sense) and then pass the device to a SCSICommand. The unmarshall will work on
those buffers.
This is a simple class used to simulate the communication with a device by using known buffers. Pass this device to a SCSICommand, and during the sgio_execute() it sets the response buffers with the data instead of executing a real ioctl.
Note: To test a scsi command test cases will pass the constructor applicable buffers (dataout, datain, sense) and then pass the device to a SCSICommand. The unmarshall will work on those buffers.