TimingMarkerUnitTest.cpp
Go to the documentation of this file.
1 /*
2  * File: TimingMarkerUnitTest.cpp
3  * Author: denis
4  *
5  * Created on September 24, 2012, 10:18 AM
6  */
7 //#include "DAQDataFormats/../unittest/RawDAQDataUnitTest.h"
8 //#include "DAQDataFormats/../unittest/TimingMarkerConstructor.h"
9 #include "RawDAQDataUnitTest.h"
11 
12 namespace daqdataformats {
13 
19  CPPUNIT_TEST(testReadDataIntoSameVersion);
21 public:
24 
28 
30 
31 private:
33 };
34 
35 //------------------------------------------------------------------------------
39 {
40 }
41 
42 //------------------------------------------------------------------------------
44 
45 //------------------------------------------------------------------------------
47 
49  ASSERT_CHECK_FIELD(LowWord);
50  ASSERT_CHECK_FIELD(HighWord);
51  ASSERT_CHECK_FIELD(Time);
52 
54 
55  delete df;
56 }
57 
58 //CPPUNIT_TEST_SUITE_REGISTRATION(TimingMarkerUnitTest);
60 CPPUNIT_REGISTRY_ADD_TO_DEFAULT("DAQDataFormats");
61 
62 }; // end of class
#define DEFINE_testReadDataIntoSameVersion
#define ASSERT_PRINT_IS_NOT_UNKNOWN
virtual void basicFieldGetAndSetChecks()
Check all field gets and sets for all versions.
#define DEFINE_checkShallowCopyConstructor(CLASS)
Standard function that checks Shallow Copy Constructor.
virtual void checkShallowCopyConstructor()
Check Shallow Copy Constructors for all versions.
daqdataformats::RawDAQData * getEmptyDataFormat(const version_t) const
method to create an empty dataformat with a given version
Base class for RawDAQData unittest.
DEFINE_checkDeepCopyConstructor(RawTimingMarker) DEFINE_checkShallowCopyConstructor(RawTimingMarker) DEFINE_testReadDataIntoSameVersion void basicFieldGetAndSetChecks()
RawDAQDataConstructor * _dataFormatConstructor
Pointer to RawDAQDataConstructor.
TimingMarkerConstructor * _mainDFConstructor
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ConfigurationBlockUnitTest,"DAQDataFormats")
virtual void checkDeepCopyConstructor()
Check Deep Copy Constructors for all versions.
Class to hold the timing markers used in the construction of Microslices in the DCMs.
#define ASSERT_CHECK_FIELD(FIELD_NAME)
Assert checking get/set of the the field is good.
CPPUNIT_TEST(basicFieldGetAndSetChecks)
CPPUNIT_TEST_SUITE(TimingMarkerUnitTest)
static const version_t DAQDATAFORMAT_UNKNOWN_VERSION
Definition: RawDAQData.h:81
Class to hold the data from the FEBs in correct formats.
CPPUNIT_REGISTRY_ADD_TO_DEFAULT("DAQDataFormats")