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 37 of file service_client_mock.h.
typedef std::function<bool(const std::string&, S&)> pilz_testutils::ServiceClientMock< S >::CallFunction |
Definition at line 40 of file service_client_mock.h.
typedef std::function<bool(const std::string&)> pilz_testutils::ServiceClientMock< S >::LogicalOperatorFunction |
Definition at line 41 of file service_client_mock.h.
|
inline |
Definition at line 43 of file service_client_mock.h.
|
inline |
Definition at line 55 of file service_client_mock.h.
|
inline |
Definition at line 61 of file service_client_mock.h.
|
inline |
Definition at line 50 of file service_client_mock.h.
|
private |
Definition at line 68 of file service_client_mock.h.
|
private |
Definition at line 67 of file service_client_mock.h.
|
private |
Definition at line 69 of file service_client_mock.h.