Changeset 59117 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Dec 14, 2015 2:04:37 PM (9 years ago)
- Location:
- trunk/src/VBox/Main/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/Makefile.kmk
r56825 r59117 208 208 tstUSBProxyLinux_SOURCES = \ 209 209 tstUSBProxyLinux.cpp \ 210 ../src-server/linux/USBProxy ServiceLinux.cpp \210 ../src-server/linux/USBProxyBackendLinux.cpp \ 211 211 ../src-server/linux/USBGetDevices.cpp 212 212 tstUSBProxyLinux_INCS = \ -
trunk/src/VBox/Main/testcase/tstUSBProxyLinux.cpp
r57358 r59117 1 1 /* $Id$ */ 2 2 /** @file 3 * USBProxy ServiceLinux test case.3 * USBProxyBackendLinux test case. 4 4 */ 5 5 … … 21 21 *********************************************************************************************************************************/ 22 22 23 #include "USBProxy Service.h"23 #include "USBProxyBackend.h" 24 24 #include "USBGetDevices.h" 25 25 … … 32 32 /*** BEGIN STUBS ***/ 33 33 34 USBProxy Service::USBProxyService(Host*) {}35 USBProxy Service::~USBProxyService() {}36 HRESULT USBProxyService::init() { return S_OK; }37 int USBProxy Service::start() { return VINF_SUCCESS; }38 int USBProxy Service::stop() { return VINF_SUCCESS; }39 RWLockHandle *USBProxy Service::lockHandle() const { return NULL; }40 void *USBProxy Service::insertFilter(USBFILTER const*) { return NULL; }41 void USBProxy Service::removeFilter(void*) {}42 int USBProxy Service::captureDevice(HostUSBDevice*) { return VINF_SUCCESS; }43 void USBProxy Service::captureDeviceCompleted(HostUSBDevice*, bool) {}44 void USBProxy Service::detachingDevice(HostUSBDevice*) {}45 int USBProxy Service::releaseDevice(HostUSBDevice*) { return VINF_SUCCESS; }46 void USBProxy Service::releaseDeviceCompleted(HostUSBDevice*, bool) {}47 void USBProxy Service::serviceThreadInit() {}48 void USBProxy Service::serviceThreadTerm() {}49 int USBProxy Service::wait(unsigned int) { return VINF_SUCCESS; }50 int USBProxy Service::interruptWait() { return VINF_SUCCESS; }51 PUSBDEVICE USBProxy Service::getDevices() { return NULL; }52 void USBProxy Service::deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, SessionMachinesList &llOpenedMachines, PUSBDEVICE aUSBDevice) {}53 void USBProxy Service::deviceRemoved(ComObjPtr<HostUSBDevice> &aDevice) {}54 void USBProxy Service::deviceChanged(ComObjPtr<HostUSBDevice> &aDevice, SessionMachinesList*, SessionMachine*) {}55 bool USBProxy Service::updateDeviceState(HostUSBDevice*, USBDEVICE*, bool*, SessionMachine**) { return true; }56 bool USBProxy Service::updateDeviceStateFake(HostUSBDevice*, USBDEVICE*, bool*, SessionMachine**) { return true; }57 bool USBProxy Service::isActive() { return true; }34 USBProxyBackend::USBProxyBackend(USBProxyService*) {} 35 USBProxyBackend::~USBProxyBackend() {} 36 int USBProxyBackend::init() { return VINF_SUCCESS; } 37 int USBProxyBackend::start() { return VINF_SUCCESS; } 38 int USBProxyBackend::stop() { return VINF_SUCCESS; } 39 RWLockHandle *USBProxyBackend::lockHandle() const { return NULL; } 40 void *USBProxyBackend::insertFilter(USBFILTER const*) { return NULL; } 41 void USBProxyBackend::removeFilter(void*) {} 42 int USBProxyBackend::captureDevice(HostUSBDevice*) { return VINF_SUCCESS; } 43 void USBProxyBackend::captureDeviceCompleted(HostUSBDevice*, bool) {} 44 void USBProxyBackend::detachingDevice(HostUSBDevice*) {} 45 int USBProxyBackend::releaseDevice(HostUSBDevice*) { return VINF_SUCCESS; } 46 void USBProxyBackend::releaseDeviceCompleted(HostUSBDevice*, bool) {} 47 void USBProxyBackend::serviceThreadInit() {} 48 void USBProxyBackend::serviceThreadTerm() {} 49 int USBProxyBackend::wait(unsigned int) { return VINF_SUCCESS; } 50 int USBProxyBackend::interruptWait() { return VINF_SUCCESS; } 51 PUSBDEVICE USBProxyBackend::getDevices() { return NULL; } 52 void USBProxyBackend::deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, SessionMachinesList &llOpenedMachines, PUSBDEVICE aUSBDevice) {} 53 void USBProxyBackend::deviceRemoved(ComObjPtr<HostUSBDevice> &aDevice) {} 54 void USBProxyBackend::deviceChanged(ComObjPtr<HostUSBDevice> &aDevice, SessionMachinesList*, SessionMachine*) {} 55 bool USBProxyBackend::updateDeviceState(HostUSBDevice*, USBDEVICE*, bool*, SessionMachine**) { return true; } 56 bool USBProxyBackend::updateDeviceStateFake(HostUSBDevice*, USBDEVICE*, bool*, SessionMachine**) { return true; } 57 bool USBProxyBackend::isActive() { return true; } 58 58 59 59 VBoxMainHotplugWaiter::VBoxMainHotplugWaiter(char const*) {} … … 62 62 { 63 63 return Utf8Str(); 64 }65 66 int USBProxyService::getLastError(void)67 {68 return mLastError;69 64 } 70 65
Note:
See TracChangeset
for help on using the changeset viewer.