Public Member Functions | |
LrWpanErrorDistanceTestCase () | |
virtual | ~LrWpanErrorDistanceTestCase () |
uint32_t | GetReceived (void) const |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
void | Callback (McpsDataIndicationParams params, Ptr< Packet > p) |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
Private Attributes | |
uint32_t | m_received |
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, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
void | SetDataDir (std::string directory) |
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. More... | |
bool | MustAssertOnFailure (void) const |
bool | MustContinueOnFailure (void) const |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
Definition at line 40 of file lr-wpan-error-model-test.cc.
LrWpanErrorDistanceTestCase::LrWpanErrorDistanceTestCase | ( | ) |
Definition at line 66 of file lr-wpan-error-model-test.cc.
|
virtual |
Definition at line 72 of file lr-wpan-error-model-test.cc.
|
private |
Definition at line 77 of file lr-wpan-error-model-test.cc.
References m_received.
Referenced by DoRun().
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 83 of file lr-wpan-error-model-test.cc.
References ns3::Node::AddDevice(), ns3::SingleModelSpectrumChannel::AddPropagationLossModel(), Callback(), GetReceived(), ns3::McpsDataRequestParams::m_dstAddr, ns3::McpsDataRequestParams::m_dstAddrMode, ns3::McpsDataRequestParams::m_dstPanId, ns3::McpsDataRequestParams::m_msduHandle, ns3::McpsDataRequestParams::m_srcAddrMode, ns3::McpsDataRequestParams::m_txOptions, ns3::MakeCallback(), NS_TEST_ASSERT_MSG_EQ, ns3::Seconds(), ns3::MobilityModel::SetPosition(), and ns3::SHORT_ADDR.
|
inline |
Definition at line 45 of file lr-wpan-error-model-test.cc.
Referenced by DoRun().
|
private |
Definition at line 53 of file lr-wpan-error-model-test.cc.
Referenced by Callback().