Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mantle-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse openpass
mantle-api
Commits
041682d1
Commit
041682d1
authored
3 years ago
by
Matthias Greuter
Browse files
Options
Downloads
Patches
Plain Diff
MockEntity allows to set the properties instead of ignoring the parameter
parent
9798a1d9
No related branches found
No related tags found
1 merge request
!16
BMW Dev-branch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MantleAPI/test/MantleAPI/Test/test_utils.h
+1
-1
1 addition, 1 deletion
MantleAPI/test/MantleAPI/Test/test_utils.h
with
1 addition
and
1 deletion
MantleAPI/test/MantleAPI/Test/test_utils.h
+
1
−
1
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
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment