route packets or frames in different approaches see 1609.4-2010 chapter 5.3.4 More...
Inheritance diagram for ChannelRoutingTestCase:
Collaboration diagram for ChannelRoutingTestCase:Public Member Functions | |
| ChannelRoutingTestCase (void) | |
| virtual | ~ChannelRoutingTestCase (void) |
| void | SendIp (bool shouldSucceed, bool ipv6) |
| void | SendWsa (bool shouldSucceed, const VsaInfo &vsaInfo) |
| void | SendWsmp (bool shouldSucceed, const TxInfo &txInfo) |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Private Member Functions | |
| virtual void | DoRun (void) |
| Implementation to actually run this TestCase. More... | |
| bool | Receive (Ptr< NetDevice > dev, Ptr< const Packet > pkt, uint16_t mode, const Address &sender) |
| bool | ReceiveVsa (Ptr< const Packet >, const Address &, uint32_t, uint32_t) |
Private Attributes | |
| Ptr< WaveNetDevice > | m_sender |
Additional Inherited Members | |
Public Types inherited from ns3::TestCase | |
| enum | TestDuration { 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) | |
| 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) |
route packets or frames in different approaches see 1609.4-2010 chapter 5.3.4
Definition at line 262 of file mac-extension-test-suite.cc.
| ChannelRoutingTestCase::ChannelRoutingTestCase | ( | void | ) |
Definition at line 286 of file mac-extension-test-suite.cc.
|
virtual |
Definition at line 291 of file mac-extension-test-suite.cc.
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 324 of file mac-extension-test-suite.cc.
References CCH, ns3::VsaInfo::channelNumber, TestCaseHelper::CreatWaveDevice(), first::devices, EXTENDED_ALTERNATING, ns3::NetDeviceContainer::Get(), m_sender, SCH1, SCH2, SCH3, SCH4, SCH5, SCH6, ns3::Seconds(), SendIp(), SendWsa(), SendWsmp(), and ns3::VSA_TRANSMIT_IN_BOTHI.
Here is the call graph for this function:
|
private |
|
private |
| void ChannelRoutingTestCase::SendIp | ( | bool | shouldSucceed, |
| bool | ipv6 | ||
| ) |
Definition at line 305 of file mac-extension-test-suite.cc.
References m_sender, NS_TEST_EXPECT_MSG_EQ, and ns3::WaveNetDevice::Send().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:| void ChannelRoutingTestCase::SendWsa | ( | bool | shouldSucceed, |
| const VsaInfo & | vsaInfo | ||
| ) |
Definition at line 317 of file mac-extension-test-suite.cc.
References m_sender, NS_TEST_EXPECT_MSG_EQ, and ns3::WaveNetDevice::StartVsa().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:| void ChannelRoutingTestCase::SendWsmp | ( | bool | shouldSucceed, |
| const TxInfo & | txInfo | ||
| ) |
Definition at line 296 of file mac-extension-test-suite.cc.
References m_sender, NS_TEST_EXPECT_MSG_EQ, and ns3::WaveNetDevice::SendX().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 283 of file mac-extension-test-suite.cc.
Referenced by DoRun(), SendIp(), SendWsa(), and SendWsmp().