21 #include "ns3/simulator.h"
24 #include "ns3/lte-rlc-header.h"
25 #include "ns3/lte-rlc-um.h"
40 :
TestSuite (
"lte-rlc-um-transmitter", SYSTEM)
80 Packet::EnablePrinting ();
85 txPdcp = CreateObject<LteTestPdcp> ();
88 txRlc = CreateObject<LteRlcUm> ();
90 txRlc->SetLcId (lcid);
93 txMac = CreateObject<LteTestMac> ();
148 Simulator::Destroy ();
190 Simulator::Destroy ();
225 Simulator::Destroy ();
299 Simulator::Destroy ();
virtual ~LteRlcUmTransmitterConcatenationTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
Test 4.1.1.4 Report Buffer Status (test primitive parameters)
Simulation virtual time values and global simulation resolution.
static LteRlcUmTransmitterTestSuite lteRlcUmTransmitterTestSuite
Test 4.1.1.2 Segmentation (One SDU => n PDUs)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual ~LteRlcUmTransmitterReportBufferStatusTestCase()
void SetRnti(uint16_t rnti)
Test 4.1.1.3 Concatenation (n SDUs => One PDU)
virtual ~LteRlcUmTransmitterTestCase()
void SetLteMacSapUser(LteMacSapUser *s)
Set the MAC SAP user.
void DoCheckDataReceived(std::string shouldReceived, std::string assertMsg)
LteRlcUmTransmitterOneSduTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual void DoRun(void)
Implementation to actually run this TestCase.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
void SetLteRlcSapProvider(LteRlcSapProvider *s)
Set the RLC SAP provider.
void CheckDataReceived(Time time, std::string shouldReceived, std::string assertMsg)
virtual ~LteRlcUmTransmitterOneSduTestCase()
LteRlcUmTransmitterTestSuite()
TestSuite 4.1.1 RLC UM: Only transmitter.
LteRlcUmTransmitterSegmentationTestCase()
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
Ptr< LteTestPdcp > txPdcp
virtual void DoRun(void)
Implementation to actually run this TestCase.
TestSuite 4.1.1 RLC UM: Only transmitter.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
std::string GetDataReceived(void)
void SendTxOpportunity(Time, uint32_t)
virtual void DoRun(void)
Implementation to actually run this TestCase.
LteRlcUmTransmitterReportBufferStatusTestCase()
virtual ~LteRlcUmTransmitterSegmentationTestCase()
Time Seconds(double value)
Construct a Time in the indicated unit.
void SendData(Time time, std::string dataToSend)
Test 4.1.1.1 One SDU, One PDU.
LteRlcUmTransmitterConcatenationTestCase()
LteRlcUmTransmitterTestCase()
void SetRlcHeaderType(uint8_t rlcHeaderType)
LteRlcSapUser * GetLteRlcSapUser(void)
Get the RLC SAP user.