File: MatternGVTMessageTest.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 (29 lines) | stat: -rw-r--r-- 685 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
#ifndef MATTERN_GVT_MESSAGE_TEST_H
#define MATTERN_GVT_MESSAGE_TEST_H

#include "warped/MatternGVTMessage.h"
#include "KernelMessageTest.h"

class MatternGVTMessageTest : public KernelMessageTest {
  CPPUNIT_TEST_SUITE( MatternGVTMessageTest);
  CPPUNIT_TEST( testConstructor );
  CPPUNIT_TEST( testSerialization );
  CPPUNIT_TEST_SUITE_END();

private:
  MatternGVTMessage *testMessage;

  static const VTime &getDefaultLastScheduledEventTime();
  static const VTime &getDefaultMinimumTimeStamp();
  static unsigned int getDefaultNumMessagesInTransit();

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

  void testConstructor();
  void testSerialization();
};

#endif