19 #include "ns3/nstime.h"
20 #include "ns3/simulator.h"
22 #include "ns3/timer.h"
47 void bar4i (
int,
int,
int,
int) {};
49 void bar5i (
int,
int,
int,
int,
int) {};
70 void DoRun()
override;
74 :
TestCase(
"Check correct state transitions")
121 void DoRun()
override;
133 void baz5i(
int,
int,
int,
int,
int){};
135 void baz6i(
int,
int,
int,
int,
int,
int){};
147 :
TestCase(
"Check that template magic is working")
154 Timer timer =
Timer(Timer::CANCEL_ON_DESTROY);
213 Simulator::Destroy();
220 Simulator::Destroy();
Check correct state transitions.
void DoRun() override
Implementation to actually run this TestCase.
Check that Timer template magic is working.
void bazi(int)
Member function with one int parameter.
void bazcir(const int &)
Member function with one const int reference parameter.
void bazip(int *)
Member function with one int pointer parameter.
void DoRun() override
Implementation to actually run this TestCase.
void DoTeardown() override
Implementation to do any local setup required for this TestCase.
void baz6i(int, int, int, int, int, int)
Member function with six int parameters.
void bazir(int &)
Member function with one int reference parameter.
void baz3i(int, int, int)
Member function with three int parameters.
void bazcip(const int *)
Member function with one const int pointer parameter.
void baz4i(int, int, int, int)
Member function with four int parameters.
void baz2i(int, int)
Member function with two int parameters.
void baz5i(int, int, int, int, int)
Member function with five int parameters.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
@ UNIT
This test suite implements a Unit Test.
A simple virtual Timer class.
void SetDelay(const Time &delay)
Timer::State GetState() const
void SetArguments(Ts... args)
void Cancel()
Cancel the currently-running event if there is one.
void Schedule()
Schedule a new event using the currently-configured delay, function, and arguments.
void Resume()
Restart the timer to expire within the amount of time left saved during Suspend.
void Suspend()
Pause the timer and save the amount of time left until it was set to expire.
#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.
Time Seconds(double value)
Construct a Time in the indicated unit.
void bar2i(int, int)
Function with two int parameters.
void bar4i(int, int, int, int)
Function with four int parameters.
void bar5i(int, int, int, int, int)
Function with five int parameters.
void barir(int &)
Function with one int reference parameter.
void bar3i(int, int, int)
Function with three int parameters.
void bari(int)
Function with one int parameter.
void barcir(const int &)
Function with one const int reference parameter.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TimerTestSuite g_timerTestSuite
Static variable for test initialization.