File: DefaultTimeWarpEventSetTest.h

package info (click to toggle)
warped 20031216-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,276 kB
  • ctags: 2,616
  • sloc: cpp: 16,610; sh: 7,071; makefile: 318
file content (42 lines) | stat: -rw-r--r-- 1,008 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
33
34
35
36
37
38
39
40
41
42
#ifndef DEFAULT_TIME_WARP_EVENT_TEST_H
#define DEFAULT_TIME_WARP_EVENT_TEST_H

#include "TimeWarpEventSetTest.h"
#include "TimeWarpSimulationManagerAdapter.h"

class DefaultTimeWarpEventSet;

class DefaultTimeWarpEventSetTest : public TimeWarpEventSetTest {
  CPPUNIT_TEST_SUITE( DefaultTimeWarpEventSetTest );
  CPPUNIT_TEST( testConstructor );
  CPPUNIT_TEST( testInsert );
  CPPUNIT_TEST( testGetEvent );
  CPPUNIT_TEST( testGetEventTime );
  CPPUNIT_TEST( testPeekEvent );
  CPPUNIT_TEST( testPeekEventTime );
  CPPUNIT_TEST( testHandleAntiMessage );
  CPPUNIT_TEST( testRollback );
  CPPUNIT_TEST( testGarbageCollect );
  CPPUNIT_TEST_SUITE_END();

private:
  DefaultTimeWarpEventSet *toTest;

public:
  // Test interface
  void setUp();
  void tearDown();

  void testConstructor();
  void testInsert();
  void testGetEvent();
  void testGetEventTime();
  void testPeekEvent();
  void testPeekEventTime();
  void testHandleAntiMessage();
  void testRollback();
  void testGarbageCollect();

};

#endif