From 041682d16827373cc62785c511564ef25bcb58e1 Mon Sep 17 00:00:00 2001 From: Matthias Greuter <matthias.greuter@bmw.de> Date: Wed, 18 Aug 2021 11:25:35 +0200 Subject: [PATCH] MockEntity allows to set the properties instead of ignoring the parameter --- MantleAPI/test/MantleAPI/Test/test_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MantleAPI/test/MantleAPI/Test/test_utils.h b/MantleAPI/test/MantleAPI/Test/test_utils.h index c482fdb7..27b513d6 100644 --- a/MantleAPI/test/MantleAPI/Test/test_utils.h +++ b/MantleAPI/test/MantleAPI/Test/test_utils.h @@ -75,7 +75,7 @@ class MockVehicle : public mantle_api::IVehicle MOCK_METHOD(void, SetAssignedLaneIds, (const std::vector<std::uint64_t>& ids), (override)); MOCK_METHOD(std::vector<std::uint64_t>, GetAssignedLaneIds, (), (const, override)); - void SetProperties(std::unique_ptr<mantle_api::EntityProperties> properties) override { std::ignore = properties; } + void SetProperties(std::unique_ptr<mantle_api::EntityProperties> properties) override { properties_ = std::move(properties); } mantle_api::VehicleProperties* GetProperties() const override { return static_cast<mantle_api::VehicleProperties*>(properties_.get()); -- GitLab