A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
LinkRenameTestCase Class Reference

LinkId of non-AP MLD changes after MLO setup. More...

+ Inheritance diagram for LinkRenameTestCase:
+ Collaboration diagram for LinkRenameTestCase:

Public Member Functions

 LinkRenameTestCase ()
 Constructor.
 
- Public Member Functions inherited from WifiCoTraceHelperBaseTestCase
 WifiCoTraceHelperBaseTestCase (const std::string &testName)
 Constructor.
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor.
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Implementation to actually run this TestCase.
 
void DoSetup () override
 Implementation to do any local setup required for this TestCase.
 

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...
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto QUICK = Duration::QUICK
 Deprecated test duration simple enums.
 
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto TAKES_FOREVER = Duration::TAKES_FOREVER
 
- Protected Member Functions inherited from WifiCoTraceHelperBaseTestCase
void ConfigureTidToLinkMapping (const std::string &mapping)
 A helper function that sets tid-to-link mapping.
 
void DisableAggregation ()
 A helper function that disables frame aggregation.
 
const std::map< WifiPhyState, Time > & GetChannelOccupancy (size_t nodeId, size_t linkId, WifiCoTraceHelper &coHelper)
 It gets the channel occupancy of a link on a node measured by WifiCoTraceHelper.
 
Ptr< PacketSocketClientInstallPacketSocketClient (Ptr< Node > client, Ptr< Node > server, size_t prot, Time startAfter, size_t numPkts, size_t pktLen, size_t tid)
 A helper function that installs PacketSocketClient application on a node.
 
void InstallPacketSocketServer (Ptr< Node > node, Time startAfter, size_t prot)
 A helper function that installs PacketSocketServer on a node.
 
void SchedulePackets (Ptr< Node > from, Ptr< Node > to, Time startAfter, size_t numPkts, size_t pktLen, size_t tid)
 A helper function that schedules to send given number of packets from one node to another.
 
- 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.
 
- Protected Attributes inherited from WifiCoTraceHelperBaseTestCase
NetDeviceContainer m_devices
 Container of all devices instantiated in this test case.
 
NodeContainer m_nodes
 Container of all nodes instantiated in this test case.
 
Time m_simulationStop {Seconds(5.0)}
 Instant at which simulation should stop.
 
size_t protocol
 A unique Protocol used in each PacketSocketClient and PacketSocketServer pair.
 

Detailed Description

LinkId of non-AP MLD changes after MLO setup.

This test case configures one AP MLD with three links and one non-AP MLD with two links. Ngon-AP MLD swaps (i.e., renames) its link after MLO setup. It asserts that WifiCoTraceHelper should capture statistics of the renamed link.

Definition at line 608 of file wifi-co-trace-helper-test.cc.

Constructor & Destructor Documentation

◆ LinkRenameTestCase()

LinkRenameTestCase::LinkRenameTestCase ( )

Constructor.

Definition at line 619 of file wifi-co-trace-helper-test.cc.

Member Function Documentation

◆ DoRun()

void LinkRenameTestCase::DoRun ( )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 626 of file wifi-co-trace-helper-test.cc.

References ns3::Simulator::Destroy(), ns3::WifiCoTraceHelper::Enable(), ns3::NodeContainer::Get(), ns3::WifiCoTraceHelper::GetDeviceRecords(), WifiCoTraceHelperBaseTestCase::m_nodes, WifiCoTraceHelperBaseTestCase::m_simulationStop, NS_TEST_ASSERT_MSG_EQ, ns3::WifiCoTraceHelper::PrintStatistics(), ns3::Simulator::Run(), WifiCoTraceHelperBaseTestCase::SchedulePackets(), ns3::Seconds(), ns3::Simulator::Stop(), and ns3::WifiCoTraceHelper::Stop().

+ Here is the call graph for this function:

◆ DoSetup()

void LinkRenameTestCase::DoSetup ( )
overrideprivatevirtual

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