This class provides common functions to be inherited by the children TestCases. More...
Public Member Functions | |
RrcHeaderTestCase (std::string s) | |
Constructor. More... | |
void | AssertEqualRadioResourceConfigDedicated (LteRrcSap::RadioResourceConfigDedicated rrcd1, LteRrcSap::RadioResourceConfigDedicated rrcd2) |
Assert equal radio resource config dedicated. More... | |
LteRrcSap::RadioResourceConfigDedicated | CreateRadioResourceConfigDedicated () |
Create radio resource config dedicated. More... | |
virtual void | DoRun (void)=0 |
Implementation to actually run this TestCase. More... | |
Public Member Functions inherited from ns3::TestCase | |
TestCase (const TestCase &)=delete | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
TestCase & | operator= (const TestCase &)=delete |
Protected Attributes | |
Ptr< Packet > | packet |
the packet More... | |
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) | |
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 TestCsse. More... | |
bool | IsStatusFailure (void) const |
Check if any tests failed. More... | |
bool | IsStatusSuccess (void) 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 (void) const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure (void) 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... | |
This class provides common functions to be inherited by the children TestCases.
Definition at line 116 of file test-asn1-encoding.cc.
RrcHeaderTestCase::RrcHeaderTestCase | ( | std::string | s | ) |
void RrcHeaderTestCase::AssertEqualRadioResourceConfigDedicated | ( | LteRrcSap::RadioResourceConfigDedicated | rrcd1, |
LteRrcSap::RadioResourceConfigDedicated | rrcd2 | ||
) |
Assert equal radio resource config dedicated.
rrcd1 | LteRrcSap::RadioResourceConfigDedicated # 1 |
rrcd2 | LteRrcSap::RadioResourceConfigDedicated # 2 |
Definition at line 200 of file test-asn1-encoding.cc.
References ns3::LteRrcSap::PhysicalConfigDedicated::antennaInfo, ns3::LteRrcSap::RadioResourceConfigDedicated::drbToAddModList, ns3::LteRrcSap::RadioResourceConfigDedicated::drbToReleaseList, ns3::LteRrcSap::PhysicalConfigDedicated::haveAntennaInfoDedicated, ns3::LteRrcSap::PhysicalConfigDedicated::havePdschConfigDedicated, ns3::LteRrcSap::RadioResourceConfigDedicated::havePhysicalConfigDedicated, ns3::LteRrcSap::PhysicalConfigDedicated::haveSoundingRsUlConfigDedicated, NS_TEST_ASSERT_MSG_EQ, ns3::LteRrcSap::PdschConfigDedicated::pa, ns3::LteRrcSap::PhysicalConfigDedicated::pdschConfigDedicated, ns3::LteRrcSap::RadioResourceConfigDedicated::physicalConfigDedicated, ns3::LteRrcSap::PhysicalConfigDedicated::soundingRsUlConfigDedicated, ns3::LteRrcSap::RadioResourceConfigDedicated::srbToAddModList, ns3::LteRrcSap::SoundingRsUlConfigDedicated::srsBandwidth, ns3::LteRrcSap::SoundingRsUlConfigDedicated::srsConfigIndex, ns3::LteRrcSap::AntennaInfoDedicated::transmissionMode, and ns3::LteRrcSap::SoundingRsUlConfigDedicated::type.
Referenced by RrcConnectionSetupTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), HandoverPreparationInfoTestCase::DoRun(), and RrcConnectionReestablishmentTestCase::DoRun().
LteRrcSap::RadioResourceConfigDedicated RrcHeaderTestCase::CreateRadioResourceConfigDedicated | ( | ) |
Create radio resource config dedicated.
Definition at line 146 of file test-asn1-encoding.cc.
References ns3::LteRrcSap::PhysicalConfigDedicated::antennaInfo, ns3::LteRrcSap::LogicalChannelConfig::bucketSizeDurationMs, ns3::LteRrcSap::RlcConfig::choice, ns3::LteRrcSap::DrbToAddMod::drbIdentity, ns3::LteRrcSap::RadioResourceConfigDedicated::drbToAddModList, ns3::LteRrcSap::RadioResourceConfigDedicated::drbToReleaseList, ns3::LteRrcSap::DrbToAddMod::epsBearerIdentity, ns3::LteRrcSap::PhysicalConfigDedicated::haveAntennaInfoDedicated, ns3::LteRrcSap::PhysicalConfigDedicated::havePdschConfigDedicated, ns3::LteRrcSap::RadioResourceConfigDedicated::havePhysicalConfigDedicated, ns3::LteRrcSap::PhysicalConfigDedicated::haveSoundingRsUlConfigDedicated, ns3::LteRrcSap::SrbToAddMod::logicalChannelConfig, ns3::LteRrcSap::DrbToAddMod::logicalChannelConfig, ns3::LteRrcSap::LogicalChannelConfig::logicalChannelGroup, ns3::LteRrcSap::DrbToAddMod::logicalChannelIdentity, ns3::LteRrcSap::PdschConfigDedicated::pa, ns3::LteRrcSap::PhysicalConfigDedicated::pdschConfigDedicated, ns3::LteRrcSap::RadioResourceConfigDedicated::physicalConfigDedicated, ns3::LteRrcSap::LogicalChannelConfig::prioritizedBitRateKbps, ns3::LteRrcSap::LogicalChannelConfig::priority, ns3::LteRrcSap::DrbToAddMod::rlcConfig, ns3::LteRrcSap::PhysicalConfigDedicated::soundingRsUlConfigDedicated, ns3::LteRrcSap::SrbToAddMod::srbIdentity, ns3::LteRrcSap::RadioResourceConfigDedicated::srbToAddModList, ns3::LteRrcSap::SoundingRsUlConfigDedicated::srsBandwidth, ns3::LteRrcSap::SoundingRsUlConfigDedicated::srsConfigIndex, ns3::LteRrcSap::AntennaInfoDedicated::transmissionMode, and ns3::LteRrcSap::SoundingRsUlConfigDedicated::type.
Referenced by RrcConnectionSetupTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), HandoverPreparationInfoTestCase::DoRun(), and RrcConnectionReestablishmentTestCase::DoRun().
|
pure virtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Implemented in MeasurementReportTestCase, RrcConnectionRejectTestCase, RrcConnectionReestablishmentCompleteTestCase, RrcConnectionReestablishmentTestCase, RrcConnectionReestablishmentRequestTestCase, HandoverPreparationInfoTestCase, RrcConnectionReconfigurationTestCase, RrcConnectionReconfigurationCompleteTestCase, RrcConnectionSetupCompleteTestCase, RrcConnectionSetupTestCase, and RrcConnectionRequestTestCase.
the packet
Definition at line 138 of file test-asn1-encoding.cc.
Referenced by RrcConnectionRequestTestCase::DoRun(), RrcConnectionSetupTestCase::DoRun(), RrcConnectionSetupCompleteTestCase::DoRun(), RrcConnectionReconfigurationCompleteTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), HandoverPreparationInfoTestCase::DoRun(), RrcConnectionReestablishmentRequestTestCase::DoRun(), RrcConnectionReestablishmentTestCase::DoRun(), RrcConnectionReestablishmentCompleteTestCase::DoRun(), RrcConnectionRejectTestCase::DoRun(), and MeasurementReportTestCase::DoRun().