SMBIOS Library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
testRbu Class Reference

#include <testRbu.h>

Collaboration diagram for testRbu:
Collaboration graph

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 ()
std::string getTestInputString (std::string toFind, std::string section="systemInfo")

Protected Attributes

XML_NAMESPACE DOMBuilderparser
XERCES_CPP_NAMESPACE_QUALIFIER
DOMDocument
doc

Detailed Description

Definition at line 35 of file testRbu.h.

Member Function Documentation

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

Definition at line 199 of file testRbu.cpp.

References rbu::checkSystemId(), fileExists(), RbuFactory::getFactory(), and stringToLower().

Here is the call graph for this function:

CPPUNIT_TEST ( testRbuBasic  )
CPPUNIT_TEST ( testRbuBadData  )
CPPUNIT_TEST ( testRbuOldVerCompare  )
CPPUNIT_TEST ( testRbuNewVerCompare  )
CPPUNIT_TEST ( testRbuNewVerSplit  )
CPPUNIT_TEST ( testRbuOutput  )
CPPUNIT_TEST_SUITE ( testRbu  )
CPPUNIT_TEST_SUITE_END ( )
virtual std::string getCppunitTopDirectory ( )
inlineprotectedvirtual

Definition at line 38 of file testRbu.h.

References global_argv.

virtual std::string getTestDirectory ( )
inlineprotectedvirtual

Definition at line 53 of file testRbu.h.

References global_argv.

string getTestInputString ( std::string  toFind,
std::string  section = "systemInfo" 
)
protected

Definition at line 145 of file testRbu.cpp.

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

Here is the call graph for this function:

virtual std::string getTestName ( )
inlineprotectedvirtual

Definition at line 48 of file testRbu.h.

References global_argv.

virtual std::string getWritableDirectory ( )
inlineprotectedvirtual

Definition at line 43 of file testRbu.h.

References global_argv.

void setUp ( )
virtual
void tearDown ( )
virtual
void testRbuBadData ( )

Definition at line 184 of file testRbu.cpp.

References ASSERT_THROWS, fileExists(), RbuFactory::getFactory(), STD_TEST_END, and STD_TEST_START.

Here is the call graph for this function:

void testRbuBasic ( )

Definition at line 221 of file testRbu.cpp.

References STD_TEST_END, and STD_TEST_START.

void testRbuNewVerCompare ( )

Definition at line 275 of file testRbu.cpp.

References rbu::compareBiosVersion(), STD_TEST_END, and STD_TEST_START.

Here is the call graph for this function:

void testRbuNewVerSplit ( )

Definition at line 310 of file testRbu.cpp.

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

Here is the call graph for this function:

void testRbuOldVerCompare ( )

Definition at line 237 of file testRbu.cpp.

References rbu::compareBiosVersion(), STD_TEST_END, and STD_TEST_START.

Here is the call graph for this function:

void testRbuOutput ( )

Definition at line 411 of file testRbu.cpp.

References STD_TEST_END, and STD_TEST_START.

Member Data Documentation

Definition at line 68 of file testRbu.h.

XML_NAMESPACE DOMBuilder* parser
protected

Definition at line 63 of file testRbu.h.


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