ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
statusObserver.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * @ingroup daq_ocm_libdaq_test
4  * @copyright 2022 ESO - European Southern Observatory
5  *
6  * @brief
7  */
8 #ifndef OCF_DAQ_TEST_STATUS_OBSERVER_HPP_
9 #define OCF_DAQ_TEST_STATUS_OBSERVER_HPP_
10 
11 #include <gmock/gmock.h>
12 
13 namespace daq {
14 class ObservableStatus;
15 }
16 
17 /**
18  * Simple observer used for testing.
19  *
20  * @ingroup daq_ocm_libdaq_test
21  */
23  MOCK_METHOD1(CallOperator, void(daq::ObservableStatus const&));
25  CallOperator(s);
26  }
27 };
28 
29 #endif // #define OCF_DAQ_TEST_STATUS_OBSERVER_HPP_
StatusObserverMock::operator()
void operator()(daq::ObservableStatus const &s)
Definition: statusObserver.hpp:24
daq
Definition: asyncProcess.cpp:15
daq::ObservableStatus
Stores data acquisition status and allows subscription to status changes.
Definition: status.hpp:161
StatusObserverMock::MOCK_METHOD1
MOCK_METHOD1(CallOperator, void(daq::ObservableStatus const &))
StatusObserverMock
Simple observer used for testing.
Definition: statusObserver.hpp:22