Project
Loading...
Searching...
No Matches
test_HeartbeatFrame.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#define BOOST_TEST_MODULE Test HeartbeatFrame
13
#define BOOST_TEST_MAIN
14
#define BOOST_TEST_DYN_LINK
15
#include <boost/test/unit_test.hpp>
16
#include <iostream>
17
#include <iomanip>
18
#include "
Headers/DataHeader.h
"
19
#include "
Headers/HeartbeatFrame.h
"
20
21
using
DataHeader
=
o2::header::DataHeader
;
22
using
HeartbeatHeader
=
o2::header::HeartbeatHeader
;
23
using
HeartbeatTrailer
=
o2::header::HeartbeatTrailer
;
24
25
BOOST_AUTO_TEST_CASE
(test_heartbeatframe)
26
{
27
HeartbeatHeader
header;
28
HeartbeatTrailer
trailer;
29
30
// checking the consistency operators
31
BOOST_CHECK
(header);
32
BOOST_CHECK
(trailer);
33
34
// checking the block type identifier
35
BOOST_CHECK
(header.
blockType
== 1);
36
BOOST_CHECK
(trailer.
blockType
== 5);
37
38
// checking length
39
BOOST_CHECK
(header.
headerLength
== 1);
40
BOOST_CHECK
(trailer.
trailerLength
== 1);
41
}
DataHeader.h
HeartbeatFrame.h
o2::header::DataHeader
the main header struct
Definition
DataHeader.h:618
o2::header::HeartbeatHeader
Definition
HeartbeatFrame.h:51
o2::header::HeartbeatHeader::headerLength
uint8_t headerLength
Definition
HeartbeatFrame.h:67
o2::header::HeartbeatHeader::blockType
uint8_t blockType
Definition
HeartbeatFrame.h:69
o2::header::HeartbeatTrailer
Definition
HeartbeatFrame.h:84
o2::header::HeartbeatTrailer::blockType
uint8_t blockType
Definition
HeartbeatFrame.h:102
o2::header::HeartbeatTrailer::trailerLength
uint16_t trailerLength
Definition
HeartbeatFrame.h:100
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(test_heartbeatframe)
Definition
test_HeartbeatFrame.cxx:25
BOOST_CHECK
BOOST_CHECK(tree)
DataFormats
Headers
test
test_HeartbeatFrame.cxx
Generated on Tue Feb 25 2025 23:16:11 for Project by
1.9.8