FrontPentTest Class Reference

#include <frontend/FrontPentTest.h>

List of all members.


Detailed Description

Definition at line 10 of file FrontPentTest.h.

Public Member Functions

int countTestCases () const
 FrontPentTest (std::string name)
virtual void registerTests (CppUnit::TestSuite *suite)
void setUp ()
void tearDown ()
void test1 ()
void test2 ()
void test3 ()
void testBranch ()
void testFindMain ()


Constructor & Destructor Documentation

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

Definition at line 14 of file FrontPentTest.h.


Member Function Documentation

int FrontPentTest::countTestCases  )  const
 

Definition at line 46 of file FrontPentTest.cpp.

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

Definition at line 38 of file FrontPentTest.cpp.

References MYTEST, test1(), test2(), test3(), testBranch(), and testFindMain().

Referenced by main().

void FrontPentTest::setUp  ) 
 

Definition at line 57 of file FrontPentTest.cpp.

void FrontPentTest::tearDown  ) 
 

Definition at line 67 of file FrontPentTest.cpp.

void FrontPentTest::test1  ) 
 

Definition at line 74 of file FrontPentTest.cpp.

References addr(), FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), FrontEnd::getMainEntryPoint(), HELLO_PENT, BinaryFileFactory::Load(), MACHINE_PENTIUM, NO_ADDRESS, NULL, DecodeResult::numBytes, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontPentTest::test2  ) 
 

Definition at line 120 of file FrontPentTest.cpp.

References FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), HELLO_PENT, BinaryFileFactory::Load(), MACHINE_PENTIUM, NULL, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontPentTest::test3  ) 
 

Definition at line 160 of file FrontPentTest.cpp.

References FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), HELLO_PENT, BinaryFileFactory::Load(), MACHINE_PENTIUM, NULL, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontPentTest::testBranch  ) 
 

Definition at line 199 of file FrontPentTest.cpp.

References BRANCH_PENT, FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), BinaryFileFactory::Load(), MACHINE_PENTIUM, NULL, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontPentTest::testFindMain  ) 
 

Definition at line 244 of file FrontPentTest.cpp.

References addr(), BinaryFile::Close(), FEDORA2_TRUE, FEDORA3_TRUE, FrontEnd::getMainEntryPoint(), BinaryFileFactory::Load(), NULL, Prog::setFrontEnd(), SUSE_TRUE, and BinaryFileFactory::UnLoad().

Referenced by registerTests().


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