Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse simopenpass
MantleAPI
Commits
49a083d9
Commit
49a083d9
authored
Aug 12, 2021
by
Matthias Greuter
Browse files
Adapt EntityRepo-Mock to be able to work with unique-ptr in function signature
parent
969fc433
Changes
1
Hide whitespace changes
Inline
Side-by-side
MantleAPI/test/MantleAPI/Test/test_utils.h
View file @
49a083d9
...
...
@@ -236,11 +236,6 @@ class MockEntityRepository : public mantle_api::IEntityRepository
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
,
const
std
::
string
&
name
,
std
::
unique_ptr
<
mantle_api
::
StaticObjectProperties
>
properties
)
override
...
...
@@ -251,6 +246,16 @@ class MockEntityRepository : public mantle_api::IEntityRepository
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
{
std
::
ignore
=
name
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment