Go to the documentation of this file.
18 #ifndef PILZ_TESTUTILS_SERVICE_CLIENT_MOCK_H
19 #define PILZ_TESTUTILS_SERVICE_CLIENT_MOCK_H
24 #include <gmock/gmock.h>
95 using std::placeholders::_1;
96 using std::placeholders::_2;
98 std::bind(&ServiceClientMockFactory::call_named,
this, _1, _2),
99 std::bind(&ServiceClientMockFactory::handle_invalid_named,
this, _1));
109 #endif // PILZ_TESTUTILS_SERVICE_CLIENT_MOCK_H
ServiceClientMock< S > create(const std::string &name, bool)
Returns a ServiceClientMock, which passes service calls to a (named) mock method.
std::function< bool(const std::string &)> LogicalOperatorFunction
std::string getService() const
LogicalOperatorFunction negation_operator_callback_
Mock for a ros::ServiceClient, calls are passed through to a given callback (which can be a mock meth...
#define ROS_DEBUG_NAMED(name,...)
CallFunction call_callback_
ServiceClientMock(const std::string &name, const CallFunction &call_callback, const LogicalOperatorFunction &negation_operator_callback)
MOCK_CONST_METHOD1_T(handle_invalid_named, bool(const std::string &name))
Provides a mock method for service calls for a specific service type.
std::function< bool(const std::string &, S &)> CallFunction
MOCK_CONST_METHOD2_T(call_named, bool(const std::string &name, S &s))