Primary 20 MHz Covered By Ppdu Test This test checks whether the functions WifiPpdu::DoesOverlapChannel and WifiPpdu::DoesCoverChannel are returning the expected results. More...
Public Member Functions | |
| TestPrimary20CoveredByPpdu () | |
| 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 | |
| Ptr< HePpdu > | CreatePpdu (MHz_u ppduCenterFreq) | 
| Function to create a PPDU.   | |
| void | DoRun () override | 
| Implementation to actually run this TestCase.   | |
| void | DoSetup () override | 
| Implementation to do any local setup required for this TestCase.   | |
| void | DoTeardown () override | 
| Implementation to do any local setup required for this TestCase.   | |
| void | RunOne (WifiPhyBand band, MHz_u phyCenterFreq, uint8_t p20Index, MHz_u ppduCenterFreq, bool expectedP20Overlap, bool expectedP20Covered) | 
| Run one function.   | |
Private Attributes | |
| Ptr< SpectrumWifiPhy > | m_rxPhy | 
| RX PHY.   | |
| Ptr< SpectrumWifiPhy > | m_txPhy | 
| TX PHY.   | |
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... | |
| 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.   | |
| 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.   | |
Primary 20 MHz Covered By Ppdu Test This test checks whether the functions WifiPpdu::DoesOverlapChannel and WifiPpdu::DoesCoverChannel are returning the expected results.
Definition at line 4471 of file wifi-phy-reception-test.cc.
| TestPrimary20CoveredByPpdu::TestPrimary20CoveredByPpdu | ( | ) | 
Definition at line 4512 of file wifi-phy-reception-test.cc.
References ns3::TestCase::TestCase().
Function to create a PPDU.
| ppduCenterFreq | the center frequency used for the transmission of the PPDU | 
Definition at line 4519 of file wifi-phy-reception-test.cc.
References ns3::WifiPhy::CalculateTxDuration(), ns3::Create(), ns3::WifiPhyOperatingChannel::FindFirst(), ns3::HePhy::GetHeMcs7(), m_rxPhy, m_txPhy, ns3::NanoSeconds(), ns3::WIFI_MAC_QOSDATA, ns3::WIFI_MIN_TX_PWR_LEVEL, ns3::WIFI_PREAMBLE_HE_SU, and ns3::WIFI_STANDARD_80211ax.
Referenced by RunOne().
      
  | 
  overrideprivatevirtual | 
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 4614 of file wifi-phy-reception-test.cc.
References ns3::Simulator::Destroy(), RunOne(), ns3::WIFI_PHY_BAND_2_4GHZ, and ns3::WIFI_PHY_BAND_5GHZ.
      
  | 
  overrideprivatevirtual | 
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test setup before DoRun is invoked.
Reimplemented from ns3::TestCase.
Definition at line 4549 of file wifi-phy-reception-test.cc.
References ns3::CreateObject(), m_rxPhy, m_txPhy, and ns3::WIFI_STANDARD_80211ax.
      
  | 
  overrideprivatevirtual | 
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test teardown
Reimplemented from ns3::TestCase.
Definition at line 4569 of file wifi-phy-reception-test.cc.
      
  | 
  private | 
Run one function.
| band | the PHY band to use | 
| phyCenterFreq | the operating center frequency of the PHY | 
| p20Index | the primary20 index | 
| ppduCenterFreq | the center frequency used for the transmission of the PPDU | 
| expectedP20Overlap | flag whether the primary 20 MHz channel is expected to be fully covered by the bandwidth of the incoming PPDU | 
| expectedP20Covered | flag whether the primary 20 MHz channel is expected to overlap with the bandwidth of the incoming PPDU | 
Definition at line 4578 of file wifi-phy-reception-test.cc.
References CreatePpdu(), ns3::WifiPhyOperatingChannel::FindFirst(), m_rxPhy, NS_TEST_ASSERT_MSG_EQ, and ns3::WIFI_STANDARD_80211ax.
Referenced by DoRun().
      
  | 
  private | 
RX PHY.
Definition at line 4508 of file wifi-phy-reception-test.cc.
Referenced by CreatePpdu(), DoSetup(), DoTeardown(), and RunOne().
      
  | 
  private | 
TX PHY.
Definition at line 4509 of file wifi-phy-reception-test.cc.
Referenced by CreatePpdu(), DoSetup(), and DoTeardown().