Test Multi-Link Element (Basic variant) serialization and deserialization. More...
Public Member Functions | |
BasicMultiLinkElementTest () | |
Constructor. More... | |
~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. More... | |
![]() | |
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. More... | |
![]() | |
TestCase (const TestCase &)=delete | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName () const |
TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
void | DoRun () override |
Implementation to actually run this TestCase. More... | |
Private Attributes | |
WifiMacType | m_frameType |
the type of frame possibly included in the MLE More... | |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
HeaderSerializationTestCase (std::string name) | |
Constructor. More... | |
![]() | |
TestCase (std::string name) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, TestDuration duration=QUICK) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
Get the parent of this TestCase. More... | |
bool | IsStatusFailure () const |
Check if any tests failed. More... | |
bool | IsStatusSuccess () const |
Check if all tests passed. More... | |
void | SetDataDir (std::string directory) |
Set the data directory where reference trace files can be found. More... | |
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 () const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure () const |
Check if this run should continue on failure. More... | |
std::string | CreateDataDirFilename (std::string filename) |
Construct the full path to a file in the data directory. More... | |
std::string | CreateTempDirFilename (std::string filename) |
Construct the full path to a file in a temporary directory. More... | |
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(), 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().
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::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().
|
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().