A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
TestUtils Class Reference

Contains ASN encoding test utility functions. More...

Static Public Member Functions

static void LogPacketContents (Ptr< Packet > pkt)
 Function to log packet contents.
 
template<class T >
static void LogPacketInfo (T source, std::string s)
 Function to log packet info.
 
static std::string sprintPacketContentsBin (Ptr< Packet > pkt)
 Function to convert packet contents in binary format.
 
static std::string sprintPacketContentsHex (Ptr< Packet > pkt)
 Function to convert packet contents in hex format.
 

Detailed Description

Contains ASN encoding test utility functions.

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

Member Function Documentation

◆ LogPacketContents()

static void TestUtils::LogPacketContents ( Ptr< Packet > pkt)
inlinestatic

Function to log packet contents.

Parameters
pktthe packet

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

References NS_LOG_DEBUG, sprintPacketContentsBin(), and sprintPacketContentsHex().

Referenced by HandoverPreparationInfoTestCase::DoRun(), MeasurementReportTestCase::DoRun(), RrcConnectionReconfigurationCompleteTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), RrcConnectionReestablishmentCompleteTestCase::DoRun(), RrcConnectionReestablishmentRequestTestCase::DoRun(), RrcConnectionReestablishmentTestCase::DoRun(), RrcConnectionRejectTestCase::DoRun(), RrcConnectionRequestTestCase::DoRun(), RrcConnectionSetupCompleteTestCase::DoRun(), and RrcConnectionSetupTestCase::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LogPacketInfo()

template<class T >
static void TestUtils::LogPacketInfo ( T source,
std::string s )
inlinestatic

◆ sprintPacketContentsBin()

static std::string TestUtils::sprintPacketContentsBin ( Ptr< Packet > pkt)
inlinestatic

Function to convert packet contents in binary format.

Parameters
pktthe packet
Returns
the text string

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

Referenced by LogPacketContents().

+ Here is the caller graph for this function:

◆ sprintPacketContentsHex()

static std::string TestUtils::sprintPacketContentsHex ( Ptr< Packet > pkt)
inlinestatic

Function to convert packet contents in hex format.

Parameters
pktthe packet
Returns
the text string

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

Referenced by LogPacketContents().

+ Here is the caller graph for this function:

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