ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
mockMal.hpp
Go to the documentation of this file.
1/**
2 * @file
3 * @ingroup daq_common_libdpm
4 * @copyright (c) Copyright ESO 2022
5 * All Rights Reserved
6 * ESO (eso.org) is an Intergovernmental Organisation, and therefore special legal conditions apply.
7 *
8 * @brief Mocks for daq::dpm::Workspace and daq::dpm::DaqWorkspace
9 */
10#ifndef DAQ_DPM_MOCK_MOCKMAL_HPP
11#define DAQ_DPM_MOCK_MOCKMAL_HPP
12// GCOVR_EXCL_START
13#include <mal/Mal.hpp>
14#include <gmock/gmock.h>
15
16struct MockMal : elt::mal::Mal {
17 MOCK_METHOD5(getPublisherUnsafe, void*(const std::string& libraryName,
18 const std::string& symbolName,
19 const elt::mal::Uri& uri,
20 const std::vector<std::shared_ptr<elt::mal::ps::qos::QoS>>& standardQoS,
21 const Properties& malSpecificProperties));
22
23 MOCK_METHOD5(getSubscriberUnsafe, void*(const std::string& libraryName,
24 const std::string& symbolName,
25 const elt::mal::Uri& uri,
26 const std::vector<std::shared_ptr<elt::mal::ps::qos::QoS>>& standardQoS,
27 const Properties& malSpecificProperties));
28
29 MOCK_METHOD5(getMrvSubscriberUnsafe, void*(const std::string& libraryName,
30 const std::string& symbolName,
31 const elt::mal::Uri& uri,
32 const std::vector<std::shared_ptr<elt::mal::ps::qos::QoS>>& standardQoS,
33 const Properties& malSpecificProperties));
34
35 MOCK_METHOD5(getClientUnsafe, void* (const std::string& libraryName,
36 const std::string& symbolName,
37 const elt::mal::Uri& uri,
38 const std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>>& standardQoS,
39 const Properties& malSpecificProperties));
40
41 MOCK_METHOD2(getDataEntityUnsafe, void* (const std::string& libraryName,
42 const std::string& symbolName));
43
44 MOCK_METHOD3(createServer, std::unique_ptr<elt::mal::rr::Server> (
45 const elt::mal::Uri& uri,
46 const std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>>& standardQoS,
47 const Properties& malSpecificProperties));
48};
49// GCOVR_EXCL_STOP
50
51#endif
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_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(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_METHOD2(getDataEntityUnsafe, void *(const std::string &libraryName, const std::string &symbolName))
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))