VirtualBox

Ignore:
Timestamp:
May 6, 2011 9:53:21 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71604
Message:

Main/linux/USB: unit tests for the code changed in r71554 and r71557

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/USBGetDevices.h

    r36958 r36993  
    8484                                         bool fIsDeviceNodes);
    8585
     86#ifdef UNIT_TEST
     87/**
     88 * Specify the list of devices that will appear to be available through
     89 * usbfs during unit testing (of USBProxyLinuxGetDevices)
     90 * @param  pacszDeviceAddresses  NULL terminated array of usbfs device addresses
     91 */
     92extern void TestUSBSetAvailableUsbfsDevices(const char **pacszDeviceAddresses);
     93/**
     94 * Specify the list of files that access will report as accessible (at present
     95 * we only do accessible or not accessible) during unit testing (of
     96 * USBProxyLinuxGetDevices)
     97 * @param  pacszAccessibleFiles  NULL terminated array of file paths to be
     98 *                               reported accessible
     99 */
     100extern void TestUSBSetAccessibleFiles(const char **pacszAccessibleFiles);
     101#endif
     102
    86103/**
    87104 * Get the list of USB devices supported by the system.  Should be freed using
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette