20 #include "ns3/timer.h" 
   22 #include "ns3/simulator.h" 
   23 #include "ns3/nstime.h" 
   38 void bar5i (
int, 
int, 
int, 
int, 
int)
 
   55   virtual void DoRun (
void);
 
   59   : 
TestCase (
"Check correct state transitions")
 
   65   Timer timer = 
Timer (Timer::CANCEL_ON_DESTROY);
 
  100   virtual void DoRun (
void);
 
  114   void baz5i (
int, 
int, 
int, 
int, 
int)
 
  117   void baz6i (
int, 
int, 
int, 
int, 
int, 
int)
 
  135   : 
TestCase (
"Check that template magic is working")
 
  142   Timer timer = 
Timer (Timer::CANCEL_ON_DESTROY);
 
  201   Simulator::Destroy ();
 
  208   Simulator::Destroy ();
 
void bar4i(int, int, int, int)
 
void bar3i(int, int, int)
 
void baz4i(int, int, int, int)
 
This test suite implements a Unit Test. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
bool IsRunning(void) const 
 
virtual void DoTeardown(void)
Implementation to do any local setup required for this TestCase. 
 
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite. 
 
void Schedule(void)
Schedule a new event using the currently-configured delay, function, and arguments. 
 
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not. 
 
void bar5i(int, int, int, int, int)
 
void SetDelay(const Time &delay)
 
enum Timer::State GetState(void) const 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
void Resume(void)
Restart the timer to expire within the amount of time left saved during Suspend. 
 
void baz5i(int, int, int, int, int)
 
void baz6i(int, int, int, int, int, int)
 
Time Seconds(double value)
Construct a Time in the indicated unit. 
 
void Cancel(void)
Cancel the currently-running event if there is one. 
 
bool IsExpired(void) const 
 
void Suspend(void)
Cancel the timer and save the amount of time left until it was set to expire. 
 
TimerTestSuite g_timerTestSuite
 
bool IsSuspended(void) const 
 
void baz3i(int, int, int)