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
49a083d9
Commit
49a083d9
authored
3 years ago
by
Matthias Greuter
Browse files
Options
Downloads
Patches
Plain Diff
Adapt EntityRepo-Mock to be able to work with unique-ptr in function signature
parent
969fc433
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
+10
-5
10 additions, 5 deletions
MantleAPI/test/MantleAPI/Test/test_utils.h
with
10 additions
and
5 deletions
MantleAPI/test/MantleAPI/Test/test_utils.h
+
10
−
5
View file @
49a083d9
...
@@ -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
;
...
...
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