CvrStgFileTest Class Reference

#include <CvrStgFileTest.h>

Inheritance diagram for CvrStgFileTest:

UnitTest Test AuFileTest BmpFileTest BmpOS2FileTest BmpWinFileTest JpegFileTest WavFileTest

List of all members.

Public Member Functions

 CvrStgFileTest (std::string n, TestSuite *s)

Protected Member Functions

bool genericTestReadWrite (const std::string &rfn, bool new_wfn=true) const
bool genericTestReadEmbedExtract (const std::string &fn, BitString &emb) const
bool genericTestReadExtractCompare (const std::string &fn, BitString &emb) const
bool genericTestReadEmbedWriteReadExtract (const std::string &cvrfn, BitString &emb) const
bool genericTestPosition (const CvrStgFile *f, const SamplePos pos, SampleValue *sv_r) const
bool genericTestSVALCalculation (const CvrStgFile *f, const Graph *g) const
bool genericTestEmbeddedValue (const CvrStgFile *f) const

Private Member Functions

bool areEqual (const std::string &fn1, const std::string &fn2) const
void removeFile (const std::string &fn) const
void copyFile (const std::string &src, const std::string &dest) const
void moveFile (const std::string &src, const std::string &dest) const


Constructor & Destructor Documentation

CvrStgFileTest::CvrStgFileTest ( std::string  n,
TestSuite s 
) [inline]


Member Function Documentation

bool CvrStgFileTest::genericTestReadWrite ( const std::string &  rfn,
bool  new_wfn = true 
) const [protected]

read the file rfn and write it again, return true iff write op created what was read by read op

Parameters:
rfn the file name of the file to read
new_wfn wether to write the data to another file or to rfn (a backup copy is done)

bool CvrStgFileTest::genericTestReadEmbedExtract ( const std::string &  fn,
BitString emb 
) const [protected]

bool CvrStgFileTest::genericTestReadExtractCompare ( const std::string &  fn,
BitString emb 
) const [protected]

read fn and extract the first emb.getLength() bits, return true iff these equal emb

bool CvrStgFileTest::genericTestReadEmbedWriteReadExtract ( const std::string &  cvrfn,
BitString emb 
) const [protected]

bool CvrStgFileTest::genericTestPosition ( const CvrStgFile f,
const SamplePos  pos,
SampleValue sv_r 
) const [protected]

bool CvrStgFileTest::genericTestSVALCalculation ( const CvrStgFile f,
const Graph g 
) const [protected]

bool CvrStgFileTest::genericTestEmbeddedValue ( const CvrStgFile f  )  const [protected]

for all sample positions, test if f->getEmbeddedValue(p) and f->getSampleValue(p)->getEmbeddedValue() return the same result

bool CvrStgFileTest::areEqual ( const std::string &  fn1,
const std::string &  fn2 
) const [private]

void CvrStgFileTest::removeFile ( const std::string &  fn  )  const [private]

void CvrStgFileTest::copyFile ( const std::string &  src,
const std::string &  dest 
) const [private]

void CvrStgFileTest::moveFile ( const std::string &  src,
const std::string &  dest 
) const [private]


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

Generated on Fri Aug 8 16:14:19 2008 for steghide by  doxygen 1.5.6