Testcase for MPR computation mechanism. More...
Public Member Functions | |
OlsrMprTestCase () | |
~OlsrMprTestCase () | |
virtual void | DoRun (void) |
Run test case. More... | |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
TestCase (std::string name) | |
void | AddTestCase (TestCase *testCase) NS_DEPRECATED |
Add an individual child TestCase case to this TestCase. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
bool | GetErrorStatus (void) const NS_DEPRECATED |
std::string | GetName (void) const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
bool | MustAssertOnFailure (void) const |
bool | MustContinueOnFailure (void) const |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
void | SetDataDir (std::string directory) |
Testcase for MPR computation mechanism.
Definition at line 44 of file olsr-routing-protocol-test-suite.cc.
ns3::olsr::OlsrMprTestCase::OlsrMprTestCase | ( | ) |
Definition at line 54 of file olsr-routing-protocol-test-suite.cc.
ns3::olsr::OlsrMprTestCase::~OlsrMprTestCase | ( | ) |
Definition at line 58 of file olsr-routing-protocol-test-suite.cc.
|
virtual |
Run test case.
Implements ns3::TestCase.
Definition at line 62 of file olsr-routing-protocol-test-suite.cc.
References ns3::olsr::TwoHopNeighborTuple::expirationTime, ns3::OlsrState::GetMprSet(), ns3::olsr::NeighborTuple::neighborMainAddr, ns3::olsr::TwoHopNeighborTuple::neighborMainAddr, NS_TEST_EXPECT_MSG_EQ, OLSR_WILL_ALWAYS, OLSR_WILL_DEFAULT, OLSR_WILL_NEVER, ns3::olsr::NeighborTuple::status, ns3::olsr::NeighborTuple::STATUS_SYM, ns3::olsr::TwoHopNeighborTuple::twoHopNeighborAddr, and ns3::olsr::NeighborTuple::willingness.