Commit 49a083d9 authored by Matthias Greuter's avatar Matthias Greuter
Browse files

Adapt EntityRepo-Mock to be able to work with unique-ptr in function signature

parent 969fc433
...@@ -236,11 +236,6 @@ class MockEntityRepository : public mantle_api::IEntityRepository ...@@ -236,11 +236,6 @@ class MockEntityRepository : public mantle_api::IEntityRepository
return test_pedestrian_; return test_pedestrian_;
} }
MOCK_METHOD(mantle_api::IStaticObject&,
Create,
(const std::string& name, std::unique_ptr<mantle_api::StaticObjectProperties> properties),
(override));
mantle_api::IStaticObject& Create(mantle_api::UniqueId id, mantle_api::IStaticObject& Create(mantle_api::UniqueId id,
const std::string& name, const std::string& name,
std::unique_ptr<mantle_api::StaticObjectProperties> properties) override std::unique_ptr<mantle_api::StaticObjectProperties> properties) override
...@@ -251,6 +246,16 @@ class MockEntityRepository : public mantle_api::IEntityRepository ...@@ -251,6 +246,16 @@ class MockEntityRepository : public mantle_api::IEntityRepository
return test_static_object_; return test_static_object_;
} }
mantle_api::IStaticObject& Create(const std::string& name,
std::unique_ptr<mantle_api::StaticObjectProperties> properties) override
{
return CreateStaticObjectProxy(name, properties.get());
}
MOCK_METHOD(mantle_api::IStaticObject&,
CreateStaticObjectProxy,
(const std::string& name, mantle_api::StaticObjectProperties* properties), ());
mantle_api::IEntity& Get(const std::string& name) override mantle_api::IEntity& Get(const std::string& name) override
{ {
std::ignore = name; std::ignore = name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment