Test Multi-Link Element (Basic variant) serialization and deserialization. More...
Inheritance diagram for BasicMultiLinkElementTest:
Collaboration diagram for BasicMultiLinkElementTest:Public Member Functions | |
| BasicMultiLinkElementTest () | |
| Constructor. | |
| ~BasicMultiLinkElementTest () override | |
| MultiLinkElement | GetMultiLinkElement (const CommonInfoBasicMle &commonInfo, std::vector< MultiLinkElement::PerStaProfileSubelement > subelements) |
| Get a Multi-Link Element including the given Common Info field and the given Per-STA Profile Subelements. | |
Public Member Functions inherited from ns3::HeaderSerializationTestCase | |
| template<typename T , typename... Args> | |
| void | TestHeaderSerialization (const T &hdr, Args &&... args) |
| Serialize the given header in a buffer, then create a new header by deserializing from the buffer and serialize the new header into a new buffer. | |
Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
Private Attributes | |
| WifiMacType | m_frameType |
| the type of frame possibly included in the MLE | |
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::HeaderSerializationTestCase | |
| HeaderSerializationTestCase (std::string name) | |
| Constructor. | |
Protected Member Functions inherited from ns3::TestCase | |
| TestCase (std::string name) | |
| Constructor. | |
| void | AddTestCase (TestCase *testCase, TestDuration duration=QUICK) |
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () 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. | |
Test Multi-Link Element (Basic variant) serialization and deserialization.
Definition at line 41 of file wifi-eht-info-elems-test.cc.
| BasicMultiLinkElementTest::BasicMultiLinkElementTest | ( | ) |
Constructor.
Definition at line 68 of file wifi-eht-info-elems-test.cc.
|
override |
Definition at line 75 of file wifi-eht-info-elems-test.cc.
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 112 of file wifi-eht-info-elems-test.cc.
References ns3::SupportedRates::AddSupportedRate(), ns3::MultiLinkElement::BASIC_VARIANT, GetMultiLinkElement(), ns3::CommonInfoBasicMle::m_bssParamsChangeCount, m_frameType, ns3::CommonInfoBasicMle::m_linkIdInfo, ns3::CommonInfoBasicMle::m_mediumSyncDelayInfo, ns3::CommonInfoBasicMle::m_mldMacAddress, ns3::CommonInfoBasicMle::MediumSyncDelayInfo::mediumSyncDuration, ns3::MultiLinkElement::PerStaProfileSubelement::SetAssocRequest(), ns3::MgtAssocRequestHeader::SetCapabilities(), ns3::MultiLinkElement::PerStaProfileSubelement::SetCompleteProfile(), ns3::CapabilityInformation::SetEss(), ns3::MultiLinkElement::PerStaProfileSubelement::SetLinkId(), ns3::MgtAssocRequestHeader::SetListenInterval(), ns3::CapabilityInformation::SetShortPreamble(), ns3::CapabilityInformation::SetShortSlotTime(), ns3::MgtAssocRequestHeader::SetSsid(), ns3::MultiLinkElement::PerStaProfileSubelement::SetStaMacAddress(), ns3::MgtAssocRequestHeader::SetSupportedRates(), and ns3::HeaderSerializationTestCase::TestHeaderSerialization().
Here is the call graph for this function:| MultiLinkElement BasicMultiLinkElementTest::GetMultiLinkElement | ( | const CommonInfoBasicMle & | commonInfo, |
| std::vector< MultiLinkElement::PerStaProfileSubelement > | subelements | ||
| ) |
Get a Multi-Link Element including the given Common Info field and the given Per-STA Profile Subelements.
| commonInfo | the given Common Info field |
| subelements | the given set of Per-STA Profile Subelements |
Definition at line 80 of file wifi-eht-info-elems-test.cc.
References ns3::MultiLinkElement::AddPerStaProfileSubelement(), ns3::MultiLinkElement::BASIC_VARIANT, ns3::MultiLinkElement::GetPerStaProfile(), ns3::CommonInfoBasicMle::m_bssParamsChangeCount, m_frameType, ns3::CommonInfoBasicMle::m_linkIdInfo, ns3::CommonInfoBasicMle::m_mediumSyncDelayInfo, ns3::CommonInfoBasicMle::m_mldMacAddress, ns3::MicroSeconds(), ns3::MultiLinkElement::SetBssParamsChangeCount(), ns3::MultiLinkElement::SetLinkIdInfo(), ns3::MultiLinkElement::SetMediumSyncDelayTimer(), ns3::MultiLinkElement::SetMediumSyncMaxNTxops(), ns3::MultiLinkElement::SetMediumSyncOfdmEdThreshold(), and ns3::MultiLinkElement::SetMldMacAddress().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
the type of frame possibly included in the MLE
Definition at line 65 of file wifi-eht-info-elems-test.cc.
Referenced by DoRun(), and GetMultiLinkElement().