TsByteSwapUtils Class Reference

Test suite for ByteSwapUtils. More...

#include <TsByteSwapUtils.h>

Inheritance diagram for TsByteSwapUtils:

Public Member Functions

void setUp ()
 
void tearDown ()
 

Protected Member Functions

void tcSwap2Bytes ()
 Test Case: Swap an array of 2 bytes -sizeof(<type>)== 2. More...
 
void tcSwap4Bytes ()
 Test Case: Swap an array of 4 bytes. More...
 
void tcSwap8Bytes ()
 Test Case: Swap an array of 8-bytesr. More...
 
void tcSwapBytes ()
 Test Case: Swap an array of n-bytes. More...
 
void tcSwapBytes_bint16 ()
 Test Case: Swap 2 bytes (boost::int16). More...
 
void tcSwapBytes_bint32 ()
 Test Case: Swap 4 bytes (boost::int32). More...
 
void tcSwapBytes_buint32 ()
 Test Case: Swap 4 bytes (boost::uint32). More...
 
void tcSwapBytes_double ()
 Test Case: Swap 8 bytes (double). More...
 
void tcSwapBytes_float ()
 Test Case: Swap 4 bytes (float). More...
 

Private Member Functions

 CPPUNIT_TEST (tcSwap2Bytes)
 
 CPPUNIT_TEST (tcSwap4Bytes)
 
 CPPUNIT_TEST (tcSwapBytes)
 
 CPPUNIT_TEST (tcSwap8Bytes)
 
 CPPUNIT_TEST (tcSwapBytes_bint16)
 
 CPPUNIT_TEST (tcSwapBytes_bint32)
 
 CPPUNIT_TEST (tcSwapBytes_buint32)
 
 CPPUNIT_TEST (tcSwapBytes_bint16)
 
 CPPUNIT_TEST (tcSwapBytes_float)
 
 CPPUNIT_TEST (tcSwapBytes_double)
 
 CPPUNIT_TEST_SUITE (TsByteSwapUtils)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Test suite for ByteSwapUtils.

Definition at line 37 of file TsByteSwapUtils.h.

Member Function Documentation

TsByteSwapUtils::CPPUNIT_TEST ( tcSwap2Bytes  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwap4Bytes  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwap8Bytes  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes_bint16  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes_bint32  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes_buint32  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes_bint16  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes_float  )
private
TsByteSwapUtils::CPPUNIT_TEST ( tcSwapBytes_double  )
private
TsByteSwapUtils::CPPUNIT_TEST_SUITE ( TsByteSwapUtils  )
private
TsByteSwapUtils::CPPUNIT_TEST_SUITE_END ( )
private
void TsByteSwapUtils::setUp ( )

Definition at line 53 of file TsByteSwapUtils.cpp.

void TsByteSwapUtils::tcSwap2Bytes ( )
protected

Test Case: Swap an array of 2 bytes -sizeof(<type>)== 2.

Definition at line 61 of file TsByteSwapUtils.cpp.

References te::common::Swap2Bytes().

void TsByteSwapUtils::tcSwap4Bytes ( )
protected

Test Case: Swap an array of 4 bytes.

Definition at line 80 of file TsByteSwapUtils.cpp.

References te::common::Swap4Bytes().

void TsByteSwapUtils::tcSwap8Bytes ( )
protected

Test Case: Swap an array of 8-bytesr.

Definition at line 117 of file TsByteSwapUtils.cpp.

References te::common::Swap8Bytes().

void TsByteSwapUtils::tcSwapBytes ( )
protected

Test Case: Swap an array of n-bytes.

Definition at line 98 of file TsByteSwapUtils.cpp.

References te::common::SwapBytes().

void TsByteSwapUtils::tcSwapBytes_bint16 ( )
protected

Test Case: Swap 2 bytes (boost::int16).

Definition at line 135 of file TsByteSwapUtils.cpp.

References te::common::SwapBytes().

void TsByteSwapUtils::tcSwapBytes_bint32 ( )
protected

Test Case: Swap 4 bytes (boost::int32).

Definition at line 174 of file TsByteSwapUtils.cpp.

References te::common::SwapBytes().

void TsByteSwapUtils::tcSwapBytes_buint32 ( )
protected

Test Case: Swap 4 bytes (boost::uint32).

Definition at line 202 of file TsByteSwapUtils.cpp.

References te::common::SwapBytes().

void TsByteSwapUtils::tcSwapBytes_double ( )
protected

Test Case: Swap 8 bytes (double).

Definition at line 299 of file TsByteSwapUtils.cpp.

References d, p, and te::common::SwapBytes().

void TsByteSwapUtils::tcSwapBytes_float ( )
protected

Test Case: Swap 4 bytes (float).

Definition at line 223 of file TsByteSwapUtils.cpp.

References te::common::SwapBytes().

void TsByteSwapUtils::tearDown ( )

Definition at line 57 of file TsByteSwapUtils.cpp.


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