reSIProcate/stack  9694
Static Public Member Functions
resip::TestSupport Class Reference

#include <TestSupport.hxx>

List of all members.

Static Public Member Functions

static void prettyPrint (const char *buffer, size_t length)
static Data showN (const char *buffer, size_t length)
static SipMessagemakeMessage (const Data &data, bool isExternal=false)

Detailed Description

Definition at line 9 of file TestSupport.hxx.


Member Function Documentation

SipMessage * resip::TestSupport::makeMessage ( const Data data,
bool  isExternal = false 
) [static]
void resip::TestSupport::prettyPrint ( const char *  buffer,
size_t  length 
) [static]

Definition at line 98 of file TestSupport.cxx.

References boxWidth.

Referenced by main().

{
  
  size_t row = 0;
  if (TestSupportPriv::chPerRow == 0)
    {
      char * p = getenv("COLUMNS");
            if (p)
            {
               TestSupportPriv::chPerRow=strtol(p,0,0)/boxWidth;
            }
            else
            {
               TestSupportPriv::chPerRow = 80/boxWidth;
            }
         }
         
         for ( row = 0 ; row <= len/TestSupportPriv::chPerRow ; row++)
         {
            // do this row's banner
            TestSupportPriv::banner(len,row);
            // do this row's data
            TestSupportPriv::data(p,len,row);
            // do this row's banner
            TestSupportPriv::banner(len,row);
            // do this row's counts
            TestSupportPriv::labels(len,row);
         }
      };
Data resip::TestSupport::showN ( const char *  buffer,
size_t  length 
) [static]

Definition at line 129 of file TestSupport.cxx.

{
  Data s;
  for(unsigned int i = 0 ; i < l ; i++)
    {
      s += p[i];
    }
  return s;
}

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