|
|
|
|
@@ -46,7 +46,7 @@ public:
|
|
|
|
|
pkt->CopyData (buffer, psize);
|
|
|
|
|
for (uint32_t i = 0; i < psize; i++)
|
|
|
|
|
{
|
|
|
|
|
sprintf (&sbuffer[i*3],"%02x ",buffer[i]);
|
|
|
|
|
sprintf (&sbuffer[i * 3],"%02x ",buffer[i]);
|
|
|
|
|
}
|
|
|
|
|
return std::string (sbuffer);
|
|
|
|
|
}
|
|
|
|
|
@@ -95,12 +95,12 @@ public:
|
|
|
|
|
virtual void DoRun (void) = 0;
|
|
|
|
|
LteRrcSap::RadioResourceConfigDedicated CreateRadioResourceConfigDedicated ();
|
|
|
|
|
void AssertEqualRadioResourceConfigDedicated (LteRrcSap::RadioResourceConfigDedicated rrcd1, LteRrcSap::RadioResourceConfigDedicated rrcd2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
Ptr<Packet> packet;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
RrcHeaderTestCase :: RrcHeaderTestCase(std::string s) : TestCase(s)
|
|
|
|
|
RrcHeaderTestCase :: RrcHeaderTestCase (std::string s) : TestCase (s)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -254,7 +254,7 @@ RrcConnectionRequestTestCase::RrcConnectionRequestTestCase () : RrcHeaderTestCas
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionRequestTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionRequestTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionRequest msg;
|
|
|
|
|
@@ -282,7 +282,7 @@ RrcConnectionRequestTestCase::DoRun (void)
|
|
|
|
|
// Check that the destination and source headers contain the same values
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetMmec (),destination.GetMmec (), "Different m_mmec!");
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetMtmsi (),destination.GetMtmsi (), "Different m_mTmsi!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -301,7 +301,7 @@ RrcConnectionSetupTestCase::RrcConnectionSetupTestCase () : RrcHeaderTestCase ("
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionSetupTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionSetupTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionSetup msg;
|
|
|
|
|
@@ -331,7 +331,7 @@ RrcConnectionSetupTestCase::DoRun (void)
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), "RrcTransactionIdentifier");
|
|
|
|
|
|
|
|
|
|
AssertEqualRadioResourceConfigDedicated (source.GetRadioResourceConfigDedicated (),destination.GetRadioResourceConfigDedicated ());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -350,7 +350,7 @@ RrcConnectionSetupCompleteTestCase::RrcConnectionSetupCompleteTestCase () : RrcH
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionSetupCompleteTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionSetupCompleteTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionSetupCompleted msg;
|
|
|
|
|
@@ -377,7 +377,7 @@ RrcConnectionSetupCompleteTestCase::DoRun (void)
|
|
|
|
|
|
|
|
|
|
// Check that the destination and source headers contain the same values
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), "RrcTransactionIdentifier");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -397,7 +397,7 @@ RrcConnectionReconfigurationCompleteTestCase::RrcConnectionReconfigurationComple
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionReconfigurationCompleteTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionReconfigurationCompleteTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionReconfigurationCompleted msg;
|
|
|
|
|
@@ -424,7 +424,7 @@ RrcConnectionReconfigurationCompleteTestCase::DoRun (void)
|
|
|
|
|
|
|
|
|
|
// Check that the destination and source headers contain the same values
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), "RrcTransactionIdentifier");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -444,13 +444,102 @@ RrcConnectionReconfigurationTestCase::RrcConnectionReconfigurationTestCase ()
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionReconfigurationTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionReconfigurationTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionReconfiguration msg;
|
|
|
|
|
msg.rrcTransactionIdentifier = 2;
|
|
|
|
|
|
|
|
|
|
msg.haveMeasConfig = false;
|
|
|
|
|
msg.haveMeasConfig = true;
|
|
|
|
|
|
|
|
|
|
msg.measConfig.haveQuantityConfig = true;
|
|
|
|
|
msg.measConfig.quantityConfig.filterCoefficientRSRP = 8;
|
|
|
|
|
msg.measConfig.quantityConfig.filterCoefficientRSRQ = 7;
|
|
|
|
|
|
|
|
|
|
msg.measConfig.haveMeasGapConfig = true;
|
|
|
|
|
msg.measConfig.measGapConfig.type = LteRrcSap::MeasGapConfig::SETUP;
|
|
|
|
|
msg.measConfig.measGapConfig.gapOffsetChoice = LteRrcSap::MeasGapConfig::gp0;
|
|
|
|
|
msg.measConfig.measGapConfig.gapOffsetValue = 21;
|
|
|
|
|
|
|
|
|
|
msg.measConfig.haveSmeasure = true;
|
|
|
|
|
msg.measConfig.sMeasure = 57;
|
|
|
|
|
|
|
|
|
|
msg.measConfig.haveSpeedStatePars = true;
|
|
|
|
|
msg.measConfig.speedStatePars.type = LteRrcSap::SpeedStatePars::SETUP;
|
|
|
|
|
msg.measConfig.speedStatePars.mobilityStateParameters.tEvaluation = 240;
|
|
|
|
|
msg.measConfig.speedStatePars.mobilityStateParameters.tHystNormal = 60;
|
|
|
|
|
msg.measConfig.speedStatePars.mobilityStateParameters.nCellChangeMedium = 5;
|
|
|
|
|
msg.measConfig.speedStatePars.mobilityStateParameters.nCellChangeHigh = 13;
|
|
|
|
|
msg.measConfig.speedStatePars.timeToTriggerSf.sfMedium = 25;
|
|
|
|
|
msg.measConfig.speedStatePars.timeToTriggerSf.sfHigh = 75;
|
|
|
|
|
|
|
|
|
|
msg.measConfig.measObjectToRemoveList.push_back (23);
|
|
|
|
|
msg.measConfig.measObjectToRemoveList.push_back (13);
|
|
|
|
|
|
|
|
|
|
msg.measConfig.reportConfigToRemoveList.push_back (7);
|
|
|
|
|
msg.measConfig.reportConfigToRemoveList.push_back (16);
|
|
|
|
|
|
|
|
|
|
msg.measConfig.measIdToRemoveList.push_back (4);
|
|
|
|
|
msg.measConfig.measIdToRemoveList.push_back (18);
|
|
|
|
|
|
|
|
|
|
// Set measObjectToAddModList
|
|
|
|
|
LteRrcSap::MeasObjectToAddMod measObjectToAddMod;
|
|
|
|
|
measObjectToAddMod.measObjectId = 3;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.carrierFreq = 21;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.allowedMeasBandwidth = 15;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.presenceAntennaPort1 = true;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.neighCellConfig = 3;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.offsetFreq = -12;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.cellsToRemoveList.push_back (5);
|
|
|
|
|
measObjectToAddMod.measObjectEutra.cellsToRemoveList.push_back (2);
|
|
|
|
|
measObjectToAddMod.measObjectEutra.blackCellsToRemoveList.push_back (1);
|
|
|
|
|
measObjectToAddMod.measObjectEutra.haveCellForWhichToReportCGI = true;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.cellForWhichToReportCGI = 250;
|
|
|
|
|
LteRrcSap::CellsToAddMod cellsToAddMod;
|
|
|
|
|
cellsToAddMod.cellIndex = 20;
|
|
|
|
|
cellsToAddMod.physCellId = 14;
|
|
|
|
|
cellsToAddMod.cellIndividualOffset = 22;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.cellsToAddModList.push_back (cellsToAddMod);
|
|
|
|
|
LteRrcSap::BlackCellsToAddMod blackCellsToAddMod;
|
|
|
|
|
blackCellsToAddMod.cellIndex = 18;
|
|
|
|
|
blackCellsToAddMod.physCellIdRange.start = 128;
|
|
|
|
|
blackCellsToAddMod.physCellIdRange.haveRange = true;
|
|
|
|
|
blackCellsToAddMod.physCellIdRange.range = 128;
|
|
|
|
|
measObjectToAddMod.measObjectEutra.blackCellsToAddModList.push_back (blackCellsToAddMod);
|
|
|
|
|
msg.measConfig.measObjectToAddModList.push_back (measObjectToAddMod);
|
|
|
|
|
|
|
|
|
|
// Set reportConfigToAddModList
|
|
|
|
|
LteRrcSap::ReportConfigToAddMod reportConfigToAddMod;
|
|
|
|
|
reportConfigToAddMod.reportConfigId = 22;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.triggerType = LteRrcSap::ReportConfigEutra::event;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.eventId = LteRrcSap::ReportConfigEutra::eventA2;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.threshold1.choice = LteRrcSap::ThresholdEutra::thresholdRsrp;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.threshold1.range = 15;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.threshold2.choice = LteRrcSap::ThresholdEutra::thresholdRsrq;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.threshold2.range = 10;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.reportOnLeave = true;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.a3Offset = -25;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.hysteresis = 18;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.timeToTrigger = 100;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.purpose = LteRrcSap::ReportConfigEutra::reportStrongestCells;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.triggerQuantity = LteRrcSap::ReportConfigEutra::rsrq;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.reportQuantity = LteRrcSap::ReportConfigEutra::sameAsTriggerQuantity;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.maxReportCells = 5;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.reportInterval = LteRrcSap::ReportConfigEutra::min60;
|
|
|
|
|
reportConfigToAddMod.reportConfigEutra.reportAmount = 16;
|
|
|
|
|
msg.measConfig.reportConfigToAddModList.push_back (reportConfigToAddMod);
|
|
|
|
|
|
|
|
|
|
// Set measIdToAddModList
|
|
|
|
|
LteRrcSap::MeasIdToAddMod measIdToAddMod,measIdToAddMod2;
|
|
|
|
|
measIdToAddMod.measId = 7;
|
|
|
|
|
measIdToAddMod.measObjectId = 6;
|
|
|
|
|
measIdToAddMod.reportConfigId = 5;
|
|
|
|
|
measIdToAddMod2.measId = 4;
|
|
|
|
|
measIdToAddMod2.measObjectId = 8;
|
|
|
|
|
measIdToAddMod2.reportConfigId = 12;
|
|
|
|
|
msg.measConfig.measIdToAddModList.push_back (measIdToAddMod);
|
|
|
|
|
msg.measConfig.measIdToAddModList.push_back (measIdToAddMod2);
|
|
|
|
|
|
|
|
|
|
msg.haveMobilityControlInfo = true;
|
|
|
|
|
msg.mobilityControlInfo.targetPhysCellId = 4;
|
|
|
|
|
msg.mobilityControlInfo.haveCarrierFreq = true;
|
|
|
|
|
@@ -539,7 +628,7 @@ RrcConnectionReconfigurationTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
AssertEqualRadioResourceConfigDedicated (source.GetRadioResourceConfigDedicated (), destination.GetRadioResourceConfigDedicated ());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -558,7 +647,7 @@ HandoverPreparationInfoTestCase::HandoverPreparationInfoTestCase () : RrcHeaderT
|
|
|
|
|
void
|
|
|
|
|
HandoverPreparationInfoTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= HandoverPreparationInfoTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::HandoverPreparationInfo msg;
|
|
|
|
|
@@ -573,12 +662,17 @@ HandoverPreparationInfoTestCase::DoRun (void)
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIdentity = 4;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType1.cellAccessRelatedInfo.plmnIdentityInfo.plmnIdentity = 123;
|
|
|
|
|
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.freqInfo.ulBandwidth=100;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.freqInfo.ulCarrierFreq=10;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.freqInfo.ulBandwidth = 100;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.freqInfo.ulCarrierFreq = 10;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.radioResourceConfigCommon.rachConfigCommon.preambleInfo.numberOfRaPreambles = 4;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.radioResourceConfigCommon.rachConfigCommon.raSupervisionInfo.preambleTransMax = 3;
|
|
|
|
|
msg.asConfig.sourceSystemInformationBlockType2.radioResourceConfigCommon.rachConfigCommon.raSupervisionInfo.raResponseWindowSize = 6;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msg.asConfig.sourceMeasConfig.haveQuantityConfig = false;
|
|
|
|
|
msg.asConfig.sourceMeasConfig.haveMeasGapConfig = false;
|
|
|
|
|
msg.asConfig.sourceMeasConfig.haveSmeasure = false;
|
|
|
|
|
msg.asConfig.sourceMeasConfig.haveSpeedStatePars = false;
|
|
|
|
|
|
|
|
|
|
HandoverPreparationInfoHeader source;
|
|
|
|
|
source.SetMessage (msg);
|
|
|
|
|
|
|
|
|
|
@@ -608,8 +702,8 @@ HandoverPreparationInfoTestCase::DoRun (void)
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.cellIdentity, destination.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.cellIdentity, "cellIdentity");
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIdentity, destination.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIdentity, "csgIdentity");
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceDlCarrierFreq, destination.GetAsConfig ().sourceDlCarrierFreq, "sourceDlCarrierFreq");
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// --------------------------- CLASS RrcConnectionReestablishmentRequestTestCase -----------------------------
|
|
|
|
|
@@ -627,7 +721,7 @@ RrcConnectionReestablishmentRequestTestCase::RrcConnectionReestablishmentRequest
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionReestablishmentRequestTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionReestablishmentRequestTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionReestablishmentRequest msg;
|
|
|
|
|
@@ -658,7 +752,7 @@ RrcConnectionReestablishmentRequestTestCase::DoRun (void)
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetUeIdentity ().cRnti, destination.GetUeIdentity ().cRnti, "cRnti");
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetUeIdentity ().physCellId, destination.GetUeIdentity ().physCellId, "physCellId");
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetReestablishmentCause (),destination.GetReestablishmentCause (), "ReestablishmentCause");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -677,7 +771,7 @@ RrcConnectionReestablishmentTestCase::RrcConnectionReestablishmentTestCase () :
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionReestablishmentTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionReestablishmentTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionReestablishment msg;
|
|
|
|
|
@@ -706,7 +800,7 @@ RrcConnectionReestablishmentTestCase::DoRun (void)
|
|
|
|
|
// Check that the destination and source headers contain the same values
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (), destination.GetRrcTransactionIdentifier (), "rrcTransactionIdentifier");
|
|
|
|
|
AssertEqualRadioResourceConfigDedicated (source.GetRadioResourceConfigDedicated (),destination.GetRadioResourceConfigDedicated ());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -725,7 +819,7 @@ RrcConnectionReestablishmentCompleteTestCase::RrcConnectionReestablishmentComple
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionReestablishmentCompleteTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionReestablishmentCompleteTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionReestablishmentComplete msg;
|
|
|
|
|
@@ -752,7 +846,7 @@ RrcConnectionReestablishmentCompleteTestCase::DoRun (void)
|
|
|
|
|
|
|
|
|
|
// Check that the destination and source headers contain the same values
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (), destination.GetRrcTransactionIdentifier (), "rrcTransactionIdentifier");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -771,7 +865,7 @@ RrcConnectionRejectTestCase::RrcConnectionRejectTestCase () : RrcHeaderTestCase
|
|
|
|
|
void
|
|
|
|
|
RrcConnectionRejectTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= RrcConnectionRejectTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::RrcConnectionReject msg;
|
|
|
|
|
@@ -798,7 +892,7 @@ RrcConnectionRejectTestCase::DoRun (void)
|
|
|
|
|
|
|
|
|
|
// Check that the destination and source headers contain the same values
|
|
|
|
|
NS_TEST_ASSERT_MSG_EQ (source.GetMessage ().waitTime, destination.GetMessage ().waitTime, "Different waitTime!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -817,7 +911,7 @@ MeasurementReportTestCase::MeasurementReportTestCase () : RrcHeaderTestCase ("Te
|
|
|
|
|
void
|
|
|
|
|
MeasurementReportTestCase::DoRun (void)
|
|
|
|
|
{
|
|
|
|
|
packet = Create<Packet>();
|
|
|
|
|
packet = Create<Packet> ();
|
|
|
|
|
NS_LOG_DEBUG ("============= MeasurementReportTestCase ===========");
|
|
|
|
|
|
|
|
|
|
LteRrcSap::MeasurementReport msg;
|
|
|
|
|
@@ -909,7 +1003,7 @@ MeasurementReportTestCase::DoRun (void)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
packet = 0;
|
|
|
|
|
packet = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// --------------------------- CLASS Asn1EncodingSuite -----------------------------
|
|
|
|
|
@@ -923,17 +1017,17 @@ Asn1EncodingSuite::Asn1EncodingSuite ()
|
|
|
|
|
: TestSuite ("test-asn1-encoding", UNIT)
|
|
|
|
|
{
|
|
|
|
|
NS_LOG_FUNCTION (this);
|
|
|
|
|
AddTestCase (new RrcConnectionRequestTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionSetupTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionSetupCompleteTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionReconfigurationCompleteTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionReconfigurationTestCase());
|
|
|
|
|
AddTestCase (new HandoverPreparationInfoTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionReestablishmentRequestTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionReestablishmentTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionReestablishmentCompleteTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionRejectTestCase());
|
|
|
|
|
AddTestCase (new MeasurementReportTestCase());
|
|
|
|
|
AddTestCase (new RrcConnectionRequestTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionSetupTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionSetupCompleteTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionReconfigurationCompleteTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionReconfigurationTestCase ());
|
|
|
|
|
AddTestCase (new HandoverPreparationInfoTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionReestablishmentRequestTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionReestablishmentTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionReestablishmentCompleteTestCase ());
|
|
|
|
|
AddTestCase (new RrcConnectionRejectTestCase ());
|
|
|
|
|
AddTestCase (new MeasurementReportTestCase ());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Asn1EncodingSuite asn1EncodingSuite;
|
|
|
|
|
|