LoaderTest Class Reference

#include <loader/LoaderTest.h>

List of all members.


Detailed Description

Definition at line 7 of file LoaderTest.h.

Public Member Functions

int countTestCases () const
 LoaderTest (std::string name)
virtual void registerTests (CppUnit::TestSuite *suite)
void setUp ()
void tearDown ()
void testElfHash ()
void testHppaLoad ()
void testMicroDis1 ()
void testMicroDis2 ()
void testPalmLoad ()
void testPentiumLoad ()
void testSparcLoad ()
void testWinLoad ()


Constructor & Destructor Documentation

LoaderTest::LoaderTest std::string  name  )  [inline]
 

Definition at line 11 of file LoaderTest.h.


Member Function Documentation

int LoaderTest::countTestCases  )  const
 

Definition at line 60 of file LoaderTest.cpp.

void LoaderTest::registerTests CppUnit::TestSuite *  suite  )  [virtual]
 

Definition at line 47 of file LoaderTest.cpp.

References MYTEST, testElfHash(), testHppaLoad(), testMicroDis1(), testMicroDis2(), testPalmLoad(), testPentiumLoad(), testSparcLoad(), and testWinLoad().

Referenced by main().

void LoaderTest::setUp  ) 
 

Definition at line 70 of file LoaderTest.cpp.

void LoaderTest::tearDown  ) 
 

Definition at line 80 of file LoaderTest.cpp.

void LoaderTest::testElfHash  ) 
 

Definition at line 599 of file LoaderTest.cpp.

References ELFBINFILE.

Referenced by registerTests().

void LoaderTest::testHppaLoad  ) 
 

Definition at line 145 of file LoaderTest.cpp.

References BinaryFile::GetNumSections(), BinaryFile::GetSectionInfo(), HELLO_HPPA, BinaryFileFactory::Load(), NULL, and SectionInfo::pSectionName.

Referenced by registerTests().

void LoaderTest::testMicroDis1  ) 
 

Definition at line 550 of file LoaderTest.cpp.

References microX86Dis(), and size.

Referenced by registerTests().

void LoaderTest::testMicroDis2  ) 
 

Definition at line 584 of file LoaderTest.cpp.

References microX86Dis(), and size.

Referenced by registerTests().

void LoaderTest::testPalmLoad  ) 
 

Definition at line 172 of file LoaderTest.cpp.

References BinaryFile::GetNumSections(), BinaryFile::GetSectionInfo(), BinaryFileFactory::Load(), NULL, SectionInfo::pSectionName, and STARTER_PALM.

Referenced by registerTests().

void LoaderTest::testPentiumLoad  ) 
 

Definition at line 115 of file LoaderTest.cpp.

References BinaryFile::GetNumSections(), BinaryFile::GetSectionInfo(), HELLO_PENTIUM, BinaryFileFactory::Load(), NULL, SectionInfo::pSectionName, BinaryFileFactory::UnLoad(), and BinaryFile::UnLoad().

Referenced by registerTests().

void LoaderTest::testSparcLoad  ) 
 

Definition at line 87 of file LoaderTest.cpp.

References BinaryFile::GetNumSections(), BinaryFile::GetSectionInfo(), HELLO_SPARC, BinaryFileFactory::Load(), NULL, SectionInfo::pSectionName, BinaryFileFactory::UnLoad(), and BinaryFile::UnLoad().

Referenced by registerTests().

void LoaderTest::testWinLoad  ) 
 

Definition at line 200 of file LoaderTest.cpp.

References CALC_WINDOWS, BinaryFile::GetNumSections(), BinaryFile::GetSectionInfo(), BinaryFileFactory::Load(), NULL, and SectionInfo::pSectionName.

Referenced by registerTests().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:43 2006 for Boomerang by  doxygen 1.4.6