Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse simopenpass
MantleAPI
Commits
041682d1
Commit
041682d1
authored
Aug 18, 2021
by
Matthias Greuter
Browse files
MockEntity allows to set the properties instead of ignoring the parameter
parent
9798a1d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
MantleAPI/test/MantleAPI/Test/test_utils.h
View file @
041682d1
...
...
@@ -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
());
...
...
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