A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::LteRlcAmTransmitterTestCase Class Reference

#include <lte-test-rlc-am-transmitter.h>

+ Inheritance diagram for ns3::LteRlcAmTransmitterTestCase:
+ Collaboration diagram for ns3::LteRlcAmTransmitterTestCase:

Public Member Functions

 LteRlcAmTransmitterTestCase (std::string name)
 LteRlcAmTransmitterTestCase ()
virtual ~LteRlcAmTransmitterTestCase ()
void CheckDataReceived (Time time, std::string shouldReceived, std::string assertMsg)
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()

Protected Member Functions

virtual void DoRun (void)
 Implementation to actually run this test case.
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
void AddTestCase (TestCase *testCase)
 Add an individual test case to this test suite.
std::string CreateDataDirFilename (std::string filename)
std::string CreateTempDirFilename (std::string filename)
bool GetErrorStatus (void) const NS_DEPRECATED
std::string GetName (void) const
bool IsStatusFailure (void) const
bool IsStatusSuccess (void) const
bool MustAssertOnFailure (void) const
bool MustContinueOnFailure (void) const
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
void SetDataDir (std::string directory)

Protected Attributes

Ptr< LteTestMactxMac
Ptr< LteTestPdcptxPdcp
Ptr< LteRlctxRlc

Private Member Functions

void DoCheckDataReceived (std::string shouldReceived, std::string assertMsg)

Detailed Description

Definition at line 42 of file lte-test-rlc-am-transmitter.h.

Constructor & Destructor Documentation

ns3::LteRlcAmTransmitterTestCase::LteRlcAmTransmitterTestCase ( std::string  name)

Definition at line 55 of file lte-test-rlc-am-transmitter.cc.

ns3::LteRlcAmTransmitterTestCase::LteRlcAmTransmitterTestCase ( )
ns3::LteRlcAmTransmitterTestCase::~LteRlcAmTransmitterTestCase ( )
virtual

Definition at line 60 of file lte-test-rlc-am-transmitter.cc.

Member Function Documentation

void ns3::LteRlcAmTransmitterTestCase::CheckDataReceived ( Time  time,
std::string  shouldReceived,
std::string  assertMsg 
)
void ns3::LteRlcAmTransmitterTestCase::DoCheckDataReceived ( std::string  shouldReceived,
std::string  assertMsg 
)
private

Definition at line 109 of file lte-test-rlc-am-transmitter.cc.

References ns3::LteTestMac::GetDataReceived(), NS_TEST_ASSERT_MSG_EQ, and txMac.

Referenced by CheckDataReceived().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteRlcAmTransmitterTestCase::DoRun ( void  )
protectedvirtual

Implementation to actually run this test case.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 65 of file lte-test-rlc-am-transmitter.cc.

References ns3::LteTestMac::AM_RLC_HEADER, ns3::Packet::EnablePrinting(), ns3::LteTestMac::GetLteMacSapProvider(), ns3::LteTestPdcp::GetLteRlcSapUser(), ns3::LteTestMac::SetLteMacSapUser(), ns3::LteTestPdcp::SetLteRlcSapProvider(), ns3::LteTestMac::SetRlcHeaderType(), ns3::LteRlc::SetRnti(), txMac, txPdcp, and txRlc.

+ Here is the call graph for this function:

Member Data Documentation

Ptr<LteRlc> ns3::LteRlcAmTransmitterTestCase::txRlc
protected

Definition at line 55 of file lte-test-rlc-am-transmitter.h.

Referenced by DoRun().


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