Contains ASN encoding test utility functions. More...
Static Public Member Functions | |
static void | LogPacketContents (Ptr< Packet > pkt) |
Function to log packet contents. More... | |
template<class T > | |
static void | LogPacketInfo (T source, std::string s) |
Function to log packet info. More... | |
static std::string | sprintPacketContentsBin (Ptr< Packet > pkt) |
Function to convert packet contents in binary format. More... | |
static std::string | sprintPacketContentsHex (Ptr< Packet > pkt) |
Function to convert packet contents in hex format. More... | |
Contains ASN encoding test utility functions.
Definition at line 43 of file test-asn1-encoding.cc.
Function to log packet contents.
pkt | the packet |
Definition at line 86 of file test-asn1-encoding.cc.
References NS_LOG_DEBUG, ns3::TestUtils::sprintPacketContentsBin(), and ns3::TestUtils::sprintPacketContentsHex().
Referenced by RrcConnectionRequestTestCase::DoRun(), RrcConnectionSetupTestCase::DoRun(), RrcConnectionSetupCompleteTestCase::DoRun(), RrcConnectionReconfigurationCompleteTestCase::DoRun(), RrcConnectionReconfigurationTestCase::DoRun(), HandoverPreparationInfoTestCase::DoRun(), RrcConnectionReestablishmentRequestTestCase::DoRun(), RrcConnectionReestablishmentTestCase::DoRun(), RrcConnectionReestablishmentCompleteTestCase::DoRun(), RrcConnectionRejectTestCase::DoRun(), and MeasurementReportTestCase::DoRun().
|
inlinestatic |
Function to log packet info.
source | T |
s | the string |
Definition at line 99 of file test-asn1-encoding.cc.
References NS_LOG_DEBUG.
Function to convert packet contents in binary format.
pkt | the packet |
Definition at line 69 of file test-asn1-encoding.cc.
References ns3::Packet::CopyData(), and ns3::Packet::GetSize().
Function to convert packet contents in hex format.
pkt | the packet |
Definition at line 51 of file test-asn1-encoding.cc.
References ns3::Packet::CopyData(), and ns3::Packet::GetSize().