From 1d215c33e4ebb7cc9196da1bf32733b0d346576e Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 24 May 2024 10:21:12 +0200 Subject: [PATCH] Fix unit tests build --- include/gcodeExport.h | 2 ++ tests/ExtruderPlanTest.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/gcodeExport.h b/include/gcodeExport.h index f22d0e985a..c47c0b7b83 100644 --- a/include/gcodeExport.h +++ b/include/gcodeExport.h @@ -8,6 +8,7 @@ #ifdef BUILD_TESTS #include //To allow tests to use protected members. #endif +#include #include // for stream.str() #include @@ -26,6 +27,7 @@ namespace cura class RetractionConfig; class SliceDataStorage; +class SliceLayerPart; struct WipeScriptConfig; // The GCodeExport class writes the actual GCode. This is the only class that knows how GCode looks and feels. diff --git a/tests/ExtruderPlanTest.cpp b/tests/ExtruderPlanTest.cpp index ed15fc4a9f..9e219572c7 100644 --- a/tests/ExtruderPlanTest.cpp +++ b/tests/ExtruderPlanTest.cpp @@ -72,12 +72,12 @@ class ExtruderPlanTestPathCollection GCodePathConfig travel_config; ExtruderPlanTestPathCollection() - : extrusion_config(GCodePathConfig{ .type = PrintFeatureType::OuterWall, + : extrusion_config(GCodePathConfig{ .type_ = PrintFeatureType::OuterWall, .line_width = 400, .layer_thickness = 100, .flow = 1.0_r, .speed_derivatives = SpeedDerivatives{ .speed = 50.0, .acceleration = 1000.0, .jerk = 10.0 } }) - , travel_config(GCodePathConfig{ .type = PrintFeatureType::MoveCombing, + , travel_config(GCodePathConfig{ .type_ = PrintFeatureType::MoveCombing, .line_width = 0, .layer_thickness = 100, .flow = 0.0_r,