Fix minor issues and create a .clangd config for different builddirs
All checks were successful
Build ptprnt / build (push) Successful in 2m19s

This commit is contained in:
2025-10-19 14:47:52 +02:00
parent 56a3722da9
commit b24793bce6
7 changed files with 19 additions and 13 deletions

View File

@@ -22,9 +22,9 @@
#include <memory>
#include "../../tests/mocks/MockUsbDevice.hpp"
#include "graphics/Bitmap.hpp"
#include "graphics/Monochrome.hpp"
#include "mocks/MockUsbDevice.hpp"
#include "printers/P700Printer.hpp"
using ::testing::_;
@@ -39,8 +39,8 @@ namespace ptprnt::printer {
class P700PrinterTest : public ::testing::Test {
protected:
void SetUp() override {
printer = std::make_unique<P700Printer>();
mockUsbDev = std::make_shared<NiceMock<libusbwrap::MockUsbDevice>>();
printer = std::make_unique<P700Printer>();
mockUsbDev = std::make_shared<NiceMock<libusbwrap::MockUsbDevice>>();
// Default mock behaviors
ON_CALL(*mockUsbDev, open()).WillByDefault(Return(true));