File: VHDLEventTest.hh

package info (click to toggle)
tyvis 20031216-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,024 kB
  • ctags: 2,985
  • sloc: cpp: 22,881; sh: 8,372; makefile: 353
file content (32 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef VHDL_EVENT_TEST_HH
#define VHDL_EVENT_TEST_HH

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <string>
using std::string;

class VHDLVTime;
class VHDLEvent;

class VHDLEventTest : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE( VHDLEventTest);
  CPPUNIT_TEST_SUITE_END();

private:
  static void checkDefaults( const VHDLEvent *toTest );

protected:
  static const VHDLVTime &getDefaultSendTime();
  static const VHDLVTime &getDefaultReceiveTime();
  static const string &getDefaultSender();
  static const string &getDefaultReceiver();

public:
  static void testConstructor( const VHDLEvent *toTest );
  static void testSerialization( const VHDLEvent *toTest, const string &dataType );
  static void testEventCompare( const VHDLEvent *toTest );

};

#endif