A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
RrcHeaderTestCase Class Referenceabstract

This class provides common functions to be inherited by the children TestCases. More...

+ Inheritance diagram for RrcHeaderTestCase:
+ Collaboration diagram for RrcHeaderTestCase:

Public Member Functions

 RrcHeaderTestCase (std::string s)
 Constructor.
 
void AssertEqualRadioResourceConfigDedicated (LteRrcSap::RadioResourceConfigDedicated rrcd1, LteRrcSap::RadioResourceConfigDedicated rrcd2)
 Assert equal radio resource config dedicated.
 
LteRrcSap::RadioResourceConfigDedicated CreateRadioResourceConfigDedicated ()
 Create radio resource config dedicated.
 
void DoRun () override=0
 Implementation to actually run this TestCase.
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor.
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Protected Attributes

Ptr< Packetpacket
 the packet
 

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 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.
 

Detailed Description

This class provides common functions to be inherited by the children TestCases.

Definition at line 102 of file test-asn1-encoding.cc.

Constructor & Destructor Documentation

◆ RrcHeaderTestCase()

RrcHeaderTestCase::RrcHeaderTestCase ( std::string s)

Constructor.

Parameters
sthe reference name

Definition at line 128 of file test-asn1-encoding.cc.

Member Function Documentation

◆ AssertEqualRadioResourceConfigDedicated()

void RrcHeaderTestCase::AssertEqualRadioResourceConfigDedicated ( LteRrcSap::RadioResourceConfigDedicated rrcd1,
LteRrcSap::RadioResourceConfigDedicated rrcd2 )

Assert equal radio resource config dedicated.

Parameters
rrcd1LteRrcSap::RadioResourceConfigDedicated # 1
rrcd2LteRrcSap::RadioResourceConfigDedicated # 2

Definition at line 189 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 HandoverPreparationInfoTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), RrcConnectionReestablishmentTestCase::DoRun(), and RrcConnectionSetupTestCase::DoRun().

+ Here is the caller graph for this function:

◆ CreateRadioResourceConfigDedicated()

LteRrcSap::RadioResourceConfigDedicated RrcHeaderTestCase::CreateRadioResourceConfigDedicated ( )

Create radio resource config dedicated.

Returns
LteRrcSap::RadioResourceConfigDedicated

Definition at line 134 of file test-asn1-encoding.cc.

References ns3::LteRrcSap::PhysicalConfigDedicated::antennaInfo, ns3::LteRrcSap::LogicalChannelConfig::bucketSizeDurationMs, ns3::LteRrcSap::RlcConfig::choice, ns3::LteRrcSap::PdschConfigDedicated::dB0, 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::DrbToAddMod::logicalChannelConfig, ns3::LteRrcSap::SrbToAddMod::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::SoundingRsUlConfigDedicated::SETUP, ns3::LteRrcSap::PhysicalConfigDedicated::soundingRsUlConfigDedicated, ns3::LteRrcSap::SrbToAddMod::srbIdentity, ns3::LteRrcSap::RadioResourceConfigDedicated::srbToAddModList, ns3::LteRrcSap::SoundingRsUlConfigDedicated::srsBandwidth, ns3::LteRrcSap::SoundingRsUlConfigDedicated::srsConfigIndex, ns3::LteRrcSap::AntennaInfoDedicated::transmissionMode, ns3::LteRrcSap::SoundingRsUlConfigDedicated::type, and ns3::LteRrcSap::RlcConfig::UM_BI_DIRECTIONAL.

Referenced by HandoverPreparationInfoTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), RrcConnectionReestablishmentTestCase::DoRun(), and RrcConnectionSetupTestCase::DoRun().

+ Here is the caller graph for this function:

◆ DoRun()

Member Data Documentation

◆ packet


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