21 #include "ns3/simulator.h"
24 #include "ns3/lte-rlc-header.h"
25 #include "ns3/lte-rlc-am.h"
39 :
TestSuite (
"lte-rlc-am-transmitter", SYSTEM)
76 Packet::EnablePrinting ();
81 txPdcp = CreateObject<LteTestPdcp> ();
84 txRlc = CreateObject<LteRlcAm> ();
86 txRlc->SetLcId (lcid);
89 txMac = CreateObject<LteTestMac> ();
143 Simulator::Destroy ();
185 Simulator::Destroy ();
221 Simulator::Destroy ();
297 Simulator::Destroy ();
LteRlcAmTransmitterTestCase()
Simulation virtual time values and global simulation resolution.
LteRlcAmTransmitterTestSuite()
TestSuite 4.1.1 RLC AM: Only transmitter.
virtual void DoRun(void)
Implementation to actually run this TestCase.
void CheckDataReceived(Time time, std::string shouldReceived, std::string assertMsg)
LteRlcAmTransmitterConcatenationTestCase()
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual ~LteRlcAmTransmitterSegmentationTestCase()
LteRlcAmTransmitterReportBufferStatusTestCase()
void SetRnti(uint16_t rnti)
Test 4.1.1.4 Report Buffer Status (test primitive parameters)
Test 4.1.1.2 Segmentation (One SDU => n PDUs)
Ptr< LteTestPdcp > txPdcp
void SetLteMacSapUser(LteMacSapUser *s)
Set the MAC SAP user.
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite.
#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.
Test 4.1.1.1 One SDU, One PDU.
Test 4.1.1.3 Concatenation (n SDUs => One PDU)
virtual ~LteRlcAmTransmitterTestCase()
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TestSuite 4.1.1 RLC AM: Only transmitter.
void DoCheckDataReceived(std::string shouldReceived, std::string assertMsg)
LteRlcAmTransmitterSegmentationTestCase()
std::string GetDataReceived(void)
void SendTxOpportunity(Time, uint32_t)
virtual void DoRun(void)
Implementation to actually run this TestCase.
Time Seconds(double value)
Construct a Time in the indicated unit.
virtual ~LteRlcAmTransmitterConcatenationTestCase()
static LteRlcAmTransmitterTestSuite lteRlcAmTransmitterTestSuite
void SendData(Time time, std::string dataToSend)
virtual ~LteRlcAmTransmitterReportBufferStatusTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
LteRlcAmTransmitterOneSduTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
void SetRlcHeaderType(uint8_t rlcHeaderType)
virtual ~LteRlcAmTransmitterOneSduTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
LteRlcSapUser * GetLteRlcSapUser(void)
Get the RLC SAP user.