Rename occurences Libusb -> LibUsb
All checks were successful
Build ptprnt / build (push) Successful in 3m0s
All checks were successful
Build ptprnt / build (push) Successful in 3m0s
This commit is contained in:
@@ -21,24 +21,24 @@
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "libusbwrap/LibusbWrapper.hpp"
|
||||
#include "libusbwrap/LibUsbWrapper.hpp"
|
||||
|
||||
namespace libusbwrap {
|
||||
|
||||
/**
|
||||
* @brief GMock implementation of ILibusbWrapper for unit testing
|
||||
* @brief GMock implementation of ILibUsbWrapper for unit testing
|
||||
*
|
||||
* This mock allows tests to verify that UsbDevice and UsbDeviceFactory
|
||||
* correctly interact with the libusb API without requiring actual USB hardware.
|
||||
*/
|
||||
class MockLibusbWrapper : public ILibusbWrapper {
|
||||
class MockLibUsbWrapper : public ILibUsbWrapper {
|
||||
public:
|
||||
// Context management
|
||||
MOCK_METHOD(int, init, (libusb_context * *ctx), (override));
|
||||
MOCK_METHOD(void, exit, (libusb_context * ctx), (override));
|
||||
|
||||
// Device enumeration
|
||||
MOCK_METHOD(ssize_t, getDeviceList, (libusb_context * ctx, libusb_device***list), (override));
|
||||
MOCK_METHOD(ssize_t, getDeviceList, (libusb_context * ctx, libusb_device*** list), (override));
|
||||
MOCK_METHOD(void, freeDeviceList, (libusb_device * *list, int unrefDevices), (override));
|
||||
MOCK_METHOD(void, refDevice, (libusb_device * dev), (override));
|
||||
MOCK_METHOD(void, unrefDevice, (libusb_device * dev), (override));
|
||||
Reference in New Issue
Block a user