DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
UnitTestUtilities.hpp
Go to the documentation of this file.
1
9#ifndef DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_TESTUTILS_UNITTESTUTILITIES_HPP
10#define DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_TESTUTILS_UNITTESTUTILITIES_HPP
11
15
16namespace dunedaq {
17namespace datahandlinglibs {
18namespace unittest {
19
20template<typename ReadoutType,
21 typename RequestHandlerType,
22 typename LatencyBufferType,
23 typename RawDataProcessorType,
24 typename InputDataType = ReadoutType>
26 : public DataHandlingModel<ReadoutType, RequestHandlerType, LatencyBufferType, RawDataProcessorType, InputDataType>
27{
28public:
29 using Base =
31 using Base::Base;
34
36 std::shared_ptr<LatencyBufferType> latency_buffer_impl, std::shared_ptr<RawDataProcessorType> raw_processor_impl,
37 std::unique_ptr<folly::Timekeeper> timekeeper, uint64_t post_processing_delay_max_wait)
38 {
39 this->m_latency_buffer_impl = latency_buffer_impl;
40 this->m_raw_processor_impl = raw_processor_impl;
41 this->m_timekeeper = std::move(timekeeper);
42 this->m_post_processing_delay_max_wait = post_processing_delay_max_wait;
44 }
45
50
52 {
53 return this->m_run_marker.store(run_marker);
54 }
55};
56
57} // namespace unittest
58} // namespace datahandlinglibs
59} // namespace dunedaq
60
61#endif // DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_TESTUTILS_UNITTESTUTILITIES_HPP
std::remove_const< std::invoke_result< decltype(&metric_t::num_post_processing_delay_max_waits), metric_t >::type >::type num_post_processing_delay_max_waits_t
num_post_processing_delay_max_waits_t get_num_post_processing_delay_max_waits()
std::remove_const< std::invoke_result< decltype(&metric_t::num_post_processing_delay_max_waits), metric_t >::type >::type num_post_processing_delay_max_waits_t
void test_run_postprocess_scheduler(std::shared_ptr< LatencyBufferType > latency_buffer_impl, std::shared_ptr< RawDataProcessorType > raw_processor_impl, std::unique_ptr< folly::Timekeeper > timekeeper, uint64_t post_processing_delay_max_wait)
std::atomic< bool > run_marker
Global atomic for process lifetime.
The DUNE-DAQ namespace.