Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

testRbu Class Reference

#include <testRbu.h>

List of all members.

Public Member Functions

virtual void setUp ()
virtual void tearDown ()
std::auto_ptr< rbu::IRbuHdrcheckHdrInfo (std::string name)
void testRbuBasic ()
void testRbuBadData ()
void testRbuOldVerCompare ()
void testRbuNewVerCompare ()
void testRbuNewVerSplit ()
void testRbuOutput ()
 CPPUNIT_TEST_SUITE (testRbu)
 CPPUNIT_TEST (testRbuBasic)
 CPPUNIT_TEST (testRbuBadData)
 CPPUNIT_TEST (testRbuOldVerCompare)
 CPPUNIT_TEST (testRbuNewVerCompare)
 CPPUNIT_TEST (testRbuNewVerSplit)
 CPPUNIT_TEST (testRbuOutput)
 CPPUNIT_TEST_SUITE_END ()

Protected Member Functions

virtual std::string getCppunitTopDirectory ()
virtual std::string getWritableDirectory ()
virtual std::string getTestName ()
virtual std::string getTestDirectory ()
virtual std::string getXmlFile ()
std::string getTestInputString (std::string toFind, std::string section="systemInfo")

Protected Attributes

XML_NAMESPACE DOMBuilder * parser
XERCES_CPP_NAMESPACE_QUALIFIER
DOMDocument * 
doc


Member Function Documentation

auto_ptr< rbu::IRbuHdr > checkHdrInfo std::string  name  ) 
 

Definition at line 207 of file testRbu.cpp.

References fileExists(), getCppunitTopDirectory(), getTestDirectory(), getTestInputString(), and stringToLower().

Referenced by testRbuBasic(), testRbuNewVerCompare(), testRbuOldVerCompare(), and testRbuOutput().

CPPUNIT_TEST testRbuOutput   ) 
 

CPPUNIT_TEST testRbuNewVerSplit   ) 
 

CPPUNIT_TEST testRbuNewVerCompare   ) 
 

CPPUNIT_TEST testRbuOldVerCompare   ) 
 

CPPUNIT_TEST testRbuBadData   ) 
 

CPPUNIT_TEST testRbuBasic   ) 
 

CPPUNIT_TEST_SUITE testRbu   ) 
 

CPPUNIT_TEST_SUITE_END  ) 
 

virtual std::string getCppunitTopDirectory  )  [inline, protected, virtual]
 

Definition at line 38 of file testRbu.h.

References global_argv.

Referenced by checkHdrInfo(), setUp(), and testRbuBadData().

virtual std::string getTestDirectory  )  [inline, protected, virtual]
 

Definition at line 53 of file testRbu.h.

References global_argv.

Referenced by checkHdrInfo(), setUp(), and testRbuBadData().

string getTestInputString std::string  toFind,
std::string  section = "systemInfo"
[protected]
 

Definition at line 153 of file testRbu.cpp.

References doc, DOMElement, xmlutils::findElement(), xmlutils::getNodeText(), XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.

Referenced by checkHdrInfo().

virtual std::string getTestName  )  [inline, protected, virtual]
 

Definition at line 48 of file testRbu.h.

References global_argv.

Referenced by testRbuBadData(), testRbuBasic(), testRbuNewVerCompare(), testRbuNewVerSplit(), testRbuOldVerCompare(), and testRbuOutput().

virtual std::string getWritableDirectory  )  [inline, protected, virtual]
 

Definition at line 43 of file testRbu.h.

References global_argv.

Referenced by setUp().

virtual std::string getXmlFile  )  [inline, protected, virtual]
 

Definition at line 58 of file testRbu.h.

Referenced by setUp().

void setUp  )  [virtual]
 

Definition at line 69 of file testRbu.cpp.

References compatXmlReadFile, copyFile(), doc, fileExists(), getCppunitTopDirectory(), SmiFactory::getFactory(), MemoryFactory::getFactory(), CmosRWFactory::getFactory(), SmbiosFactory::getFactory(), SmbiosXmlFactory::getFactory(), xmlutils::getParser(), getTestDirectory(), getWritableDirectory(), getXmlFile(), InitXML, and parser.

void tearDown  )  [virtual]
 

Definition at line 127 of file testRbu.cpp.

References doc, FiniXML, SmiFactory::getFactory(), CmosRWFactory::getFactory(), MemoryFactory::getFactory(), SmbiosFactory::getFactory(), TokenTableFactory::getFactory(), parser, xmlFreeDoc, and xmlFreeParser.

void testRbuBadData  ) 
 

Definition at line 192 of file testRbu.cpp.

References ASSERT_THROWS, fileExists(), getCppunitTopDirectory(), getTestDirectory(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testRbuBasic  ) 
 

Definition at line 229 of file testRbu.cpp.

References checkHdrInfo(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testRbuNewVerCompare  ) 
 

Definition at line 283 of file testRbu.cpp.

References checkHdrInfo(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testRbuNewVerSplit  ) 
 

Definition at line 318 of file testRbu.cpp.

References getTestName(), rbu::splitNewVersion(), STD_TEST_END, and STD_TEST_START.

void testRbuOldVerCompare  ) 
 

Definition at line 245 of file testRbu.cpp.

References checkHdrInfo(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testRbuOutput  ) 
 

Definition at line 419 of file testRbu.cpp.

References checkHdrInfo(), getTestName(), STD_TEST_END, and STD_TEST_START.


Member Data Documentation

XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* doc [protected]
 

Definition at line 72 of file testRbu.h.

Referenced by getTestInputString(), setUp(), and tearDown().

XML_NAMESPACE DOMBuilder* parser [protected]
 

Definition at line 67 of file testRbu.h.

Referenced by setUp(), and tearDown().


The documentation for this class was generated from the following files:
Generated on Wed Apr 11 16:25:11 2007 for SMBIOS Library by doxygen 1.3.5