Public Member Functions | List of all members
pilz_testutils::ServiceClientMockFactory< S > Class Template Reference

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))
 

Detailed Description

template<typename S>
class pilz_testutils::ServiceClientMockFactory< S >

Provides a mock method for service calls for a specific service type.

Template Parameters
Sservice type

Definition at line 77 of file service_client_mock.h.

Member Function Documentation

template<typename S >
ServiceClientMock<S> pilz_testutils::ServiceClientMockFactory< S >::create ( const std::string &  name,
bool   
)
inline

Returns a ServiceClientMock, which passes service calls to a (named) mock method.

Expectations on service calls can be made as follows:

EXPECT_CALL(srv_client_mock_factory, call_named(srv_name, srv_req_resp))
Parameters
namethe service name
persistentnot used by the mock

Definition at line 91 of file service_client_mock.h.

template<typename S >
pilz_testutils::ServiceClientMockFactory< S >::MOCK_CONST_METHOD1_T ( handle_invalid_named  ,
bool(const std::string &name)   
)
template<typename S >
pilz_testutils::ServiceClientMockFactory< S >::MOCK_CONST_METHOD2_T ( call_named  ,
bool(const std::string &name, S &s  
)

The documentation for this class was generated from the following file:


pilz_testutils
Author(s):
autogenerated on Tue Feb 2 2021 03:50:13