ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
malMock.hpp
Go to the documentation of this file.
1 // GCOVR_EXCL_START
2 #include <mal/Mal.hpp>
3 #include <gmock/gmock.h>
4 
5 struct MalMock : elt::mal::Mal {
6  MOCK_METHOD5(getPublisherUnsafe, void*(const std::string& libraryName,
7  const std::string& symbolName,
8  const elt::mal::Uri& uri,
9  const std::vector<std::shared_ptr<elt::mal::ps::qos::QoS>>& standardQoS,
10  const Properties& malSpecificProperties));
11 
12  MOCK_METHOD5(getSubscriberUnsafe, void*(const std::string& libraryName,
13  const std::string& symbolName,
14  const elt::mal::Uri& uri,
15  const std::vector<std::shared_ptr<elt::mal::ps::qos::QoS>>& standardQoS,
16  const Properties& malSpecificProperties));
17 
18  MOCK_METHOD5(getMrvSubscriberUnsafe, void*(const std::string& libraryName,
19  const std::string& symbolName,
20  const elt::mal::Uri& uri,
21  const std::vector<std::shared_ptr<elt::mal::ps::qos::QoS>>& standardQoS,
22  const Properties& malSpecificProperties));
23 
24  MOCK_METHOD5(getClientUnsafe, void* (const std::string& libraryName,
25  const std::string& symbolName,
26  const elt::mal::Uri& uri,
27  const std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>>& standardQoS,
28  const Properties& malSpecificProperties));
29 
30  MOCK_METHOD2(getDataEntityUnsafe, void* (const std::string& libraryName,
31  const std::string& symbolName));
32 
33  MOCK_METHOD3(createServer, std::unique_ptr<elt::mal::rr::Server> (
34  const elt::mal::Uri& uri,
35  const std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>>& standardQoS,
36  const Properties& malSpecificProperties));
37 };
38 // GCOVR_EXCL_STOP
MOCK_METHOD5(getSubscriberUnsafe, void *(const std::string &libraryName, const std::string &symbolName, const elt::mal::Uri &uri, const std::vector< std::shared_ptr< elt::mal::ps::qos::QoS >> &standardQoS, const Properties &malSpecificProperties))
MOCK_METHOD5(getMrvSubscriberUnsafe, void *(const std::string &libraryName, const std::string &symbolName, const elt::mal::Uri &uri, const std::vector< std::shared_ptr< elt::mal::ps::qos::QoS >> &standardQoS, const Properties &malSpecificProperties))
MOCK_METHOD5(getClientUnsafe, void *(const std::string &libraryName, const std::string &symbolName, const elt::mal::Uri &uri, const std::vector< std::shared_ptr< elt::mal::rr::qos::QoS >> &standardQoS, const Properties &malSpecificProperties))
MOCK_METHOD5(getPublisherUnsafe, void *(const std::string &libraryName, const std::string &symbolName, const elt::mal::Uri &uri, const std::vector< std::shared_ptr< elt::mal::ps::qos::QoS >> &standardQoS, const Properties &malSpecificProperties))
MOCK_METHOD3(createServer, std::unique_ptr< elt::mal::rr::Server >(const elt::mal::Uri &uri, const std::vector< std::shared_ptr< elt::mal::rr::qos::QoS >> &standardQoS, const Properties &malSpecificProperties))
MOCK_METHOD2(getDataEntityUnsafe, void *(const std::string &libraryName, const std::string &symbolName))