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
a5c016ef
Commit
a5c016ef
authored
Aug 12, 2021
by
Matthias Greuter
Browse files
Adapt EntityRepo-Mock to be able to work with unique-ptr in function signature
parent
49a083d9
Changes
1
Show whitespace changes
Inline
Side-by-side
MantleAPI/test/MantleAPI/Test/test_utils.h
View file @
a5c016ef
...
@@ -249,12 +249,12 @@ class MockEntityRepository : public mantle_api::IEntityRepository
...
@@ -249,12 +249,12 @@ class MockEntityRepository : public mantle_api::IEntityRepository
mantle_api
::
IStaticObject
&
Create
(
const
std
::
string
&
name
,
mantle_api
::
IStaticObject
&
Create
(
const
std
::
string
&
name
,
std
::
unique_ptr
<
mantle_api
::
StaticObjectProperties
>
properties
)
override
std
::
unique_ptr
<
mantle_api
::
StaticObjectProperties
>
properties
)
override
{
{
return
CreateStaticObjectProxy
(
name
,
properties
.
get
()
);
return
CreateStaticObjectProxy
(
name
,
*
properties
);
}
}
MOCK_METHOD
(
mantle_api
::
IStaticObject
&
,
MOCK_METHOD
(
mantle_api
::
IStaticObject
&
,
CreateStaticObjectProxy
,
CreateStaticObjectProxy
,
(
const
std
::
string
&
name
,
mantle_api
::
StaticObjectProperties
*
properties
),
());
(
const
std
::
string
&
name
,
const
mantle_api
::
StaticObjectProperties
&
properties
),
());
mantle_api
::
IEntity
&
Get
(
const
std
::
string
&
name
)
override
mantle_api
::
IEntity
&
Get
(
const
std
::
string
&
name
)
override
{
{
...
...
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