A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::SixLowPanNdRovrTest Class Reference

Test successful registration of varying numbers of 6LNs with 1 6LBR. More...

Inheritance diagram for ns3::SixLowPanNdRovrTest:
Collaboration diagram for ns3::SixLowPanNdRovrTest:

Public Member Functions

 SixLowPanNdRovrTest ()
void DoRun () override
 Implementation to actually run this TestCase.
Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 Caller graph was not generated because of its size.
virtual ~TestCase ()
 Destructor.
std::string GetName () const
TestCaseoperator= (const TestCase &)=delete

Private Member Functions

void NaRxSink (Ptr< Packet > pkt)
 Callback sink for NA packet reception trace events.

Private Attributes

std::vector< Ptr< Packet > > m_naPacketsReceived
 Container for NA packets received during test.

Additional Inherited Members

Public Types inherited from ns3::TestCase
enum class  Duration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor.
void AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK)
 Add an individual child TestCase to this test suite.
TestCaseGetParent () const
 Get the parent of this TestCase.
bool IsStatusFailure () const
 Check if any tests failed.
bool IsStatusSuccess () const
 Check if all tests passed.
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found.
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase.
bool MustAssertOnFailure () const
 Check if this run should assert on failure.
bool MustContinueOnFailure () const
 Check if this run should continue on failure.
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory.
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory.

Detailed Description

Test successful registration of varying numbers of 6LNs with 1 6LBR.

Definition at line 30 of file sixlowpan-nd-rovr-test.cc.

Constructor & Destructor Documentation

◆ SixLowPanNdRovrTest()

ns3::SixLowPanNdRovrTest::SixLowPanNdRovrTest ( )
inline

Definition at line 33 of file sixlowpan-nd-rovr-test.cc.

References ns3::TestCase::TestCase().

Here is the call graph for this function:

Member Function Documentation

◆ DoRun()

◆ NaRxSink()

void ns3::SixLowPanNdRovrTest::NaRxSink ( Ptr< Packet > pkt)
inlineprivate

Callback sink for NA packet reception trace events.

Parameters
pktReceived NA packet

Definition at line 123 of file sixlowpan-nd-rovr-test.cc.

References m_naPacketsReceived.

Referenced by DoRun().

Here is the caller graph for this function:

Member Data Documentation

◆ m_naPacketsReceived

std::vector<Ptr<Packet> > ns3::SixLowPanNdRovrTest::m_naPacketsReceived
private

Container for NA packets received during test.

Definition at line 117 of file sixlowpan-nd-rovr-test.cc.

Referenced by DoRun(), and NaRxSink().


The documentation for this class was generated from the following file: