DDraceNetwork Docs
packer.cpp File Reference
#include "test.h"
#include <gtest/gtest.h>
#include <base/system.h>
#include <engine/shared/packer.h>
Include dependency graph for packer.cpp:

Functions

static void ExpectAddString5 (const char *pString, int Limit, const char *pExpected)
 
static void ExpectAddInt (int Input, int Expected)
 
static void ExpectAddExtendedInt (int Input, unsigned char *pExpected, int Size)
 
 TEST (Packer, AddInt)
 
 TEST (Packer, AddExtendedInt)
 
 TEST (Packer, AddString)
 
 TEST (Packer, AddStringLimit)
 
 TEST (Packer, AddStringBroken)
 
 TEST (Packer, Error)
 

Function Documentation

◆ ExpectAddExtendedInt()

static void ExpectAddExtendedInt ( int  Input,
unsigned char *  pExpected,
int  Size 
)
static

◆ ExpectAddInt()

static void ExpectAddInt ( int  Input,
int  Expected 
)
static

◆ ExpectAddString5()

static void ExpectAddString5 ( const char *  pString,
int  Limit,
const char *  pExpected 
)
static

◆ TEST() [1/6]

TEST ( Packer  ,
AddExtendedInt   
)

◆ TEST() [2/6]

TEST ( Packer  ,
AddInt   
)

◆ TEST() [3/6]

TEST ( Packer  ,
AddString   
)

◆ TEST() [4/6]

TEST ( Packer  ,
AddStringBroken   
)

◆ TEST() [5/6]

TEST ( Packer  ,
AddStringLimit   
)

◆ TEST() [6/6]

TEST ( Packer  ,
Error   
)