Provides a mock method for service calls for a specific service type. More...
#include <service_client_mock.h>
Public Member Functions | |
ServiceClientMock< S > | create (const std::string &name, bool) |
Returns a ServiceClientMock, which passes service calls to a (named) mock method. More... | |
MOCK_CONST_METHOD1_T (handle_invalid_named, bool(const std::string &name)) | |
MOCK_CONST_METHOD2_T (call_named, bool(const std::string &name, S &s)) | |
Provides a mock method for service calls for a specific service type.
S | service type |
Definition at line 77 of file service_client_mock.h.
|
inline |
Returns a ServiceClientMock, which passes service calls to a (named) mock method.
Expectations on service calls can be made as follows:
name | the service name |
persistent | not used by the mock |
Definition at line 91 of file service_client_mock.h.
pilz_testutils::ServiceClientMockFactory< S >::MOCK_CONST_METHOD1_T | ( | handle_invalid_named | , |
bool(const std::string &name) | |||
) |
pilz_testutils::ServiceClientMockFactory< S >::MOCK_CONST_METHOD2_T | ( | call_named | , |
bool(const std::string &name, S &s) | |||
) |