9#include "ns3/simulator.h"
34void bar4i(
int,
int,
int,
int){};
36void bar5i(
int,
int,
int,
int,
int){};
55 void DoRun()
override;
59 :
TestCase(
"Check correct state transitions")
106 void DoRun()
override;
118 void baz5i(
int,
int,
int,
int,
int){};
120 void baz6i(
int,
int,
int,
int,
int,
int){};
132 :
TestCase(
"Check that template magic is working")
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.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static void Run()
Run the simulation.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
static constexpr auto UNIT
A simple virtual Timer class.
void SetDelay(const Time &delay)
Timer::State GetState() const
void SetArguments(Ts... args)
@ CANCEL_ON_DESTROY
This policy cancels the event from the destructor of the Timer or from Suspend().
@ RUNNING
Timer is currently running.
@ EXPIRED
Timer has already expired.
@ SUSPENDED
Timer is suspended.
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.