Mock for a ros::ServiceClient, calls are passed through to a given callback (which can be a mock method). More...
#include <service_client_mock.h>
Public Types | |
typedef std::function< bool(const std::string &, S &)> | CallFunction |
typedef std::function< bool(const std::string &)> | LogicalOperatorFunction |
Public Member Functions | |
bool | call (S &s) |
std::string | getService () const |
bool | operator! () const |
ServiceClientMock (const std::string &name, const CallFunction &call_callback, const LogicalOperatorFunction &negation_operator_callback) | |
Private Attributes | |
CallFunction | call_callback_ |
std::string | name_ |
LogicalOperatorFunction | negation_operator_callback_ |
Mock for a ros::ServiceClient, calls are passed through to a given callback (which can be a mock method).
S | service type |
Definition at line 35 of file service_client_mock.h.
typedef std::function<bool(const std::string &, S &)> pilz_testutils::ServiceClientMock< S >::CallFunction |
Definition at line 38 of file service_client_mock.h.
typedef std::function<bool(const std::string &)> pilz_testutils::ServiceClientMock< S >::LogicalOperatorFunction |
Definition at line 39 of file service_client_mock.h.
|
inline |
Definition at line 41 of file service_client_mock.h.
|
inline |
Definition at line 54 of file service_client_mock.h.
|
inline |
Definition at line 60 of file service_client_mock.h.
|
inline |
Definition at line 49 of file service_client_mock.h.
|
private |
Definition at line 67 of file service_client_mock.h.
|
private |
Definition at line 66 of file service_client_mock.h.
|
private |
Definition at line 68 of file service_client_mock.h.