Skip to content
Snippets Groups Projects
Commit 041682d1 authored by Matthias Greuter's avatar Matthias Greuter
Browse files

MockEntity allows to set the properties instead of ignoring the parameter

parent 9798a1d9
No related branches found
No related tags found
1 merge request!16BMW Dev-branch
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment