Add unit tests for printer driver, usb device and usb device factory

This commit is contained in:
2025-10-19 14:27:39 +02:00
parent d8467b8984
commit 56a3722da9
7 changed files with 466 additions and 4 deletions

View File

@@ -5,11 +5,25 @@ test_sources = [
'bitmap_test/bitmap_test.cpp',
'monochrome_test/monochrome_test.cpp',
'label_test/label_test.cpp',
'printer_service_test/printer_service_test.cpp',
'p700_printer_test/p700_printer_test.cpp',
# Source files under test
# Source files under test - graphics
'../src/graphics/Bitmap.cpp',
'../src/graphics/Monochrome.cpp',
'../src/graphics/Label.cpp',
# Source files under test - core
'../src/core/PrinterService.cpp',
'../src/core/PrinterDriverFactory.cpp',
# Source files under test - printers
'../src/printers/P700Printer.cpp',
'../src/printers/FakePrinter.cpp',
# Source files under test - USB
'../src/libusbwrap/UsbDevice.cpp',
'../src/libusbwrap/UsbDeviceFactory.cpp',
]
test_exe = executable(