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

#include <testPlatform.h>

Collaboration diagram for testPlatform:
Collaboration graph

Public Member Functions

virtual void setUp ()
virtual void tearDown ()
void testGetBoundaries ()
void testCmosChecksum ()
void testCmosWriting ()
void testSystemInfo ()
void testIdByte ()
void testServiceTag ()
void testServiceTagWriting ()
void testAssetTag ()
void testSystemName ()
void testBiosVersion ()
void testIsDell ()
void testVariousAccessors ()
void testOutOfBounds ()
void testConstructionOffset1 ()
void testConstructionOffset2 ()
void testStateBytes ()
void testUpBoot ()
 CPPUNIT_TEST_SUITE (testPlatform)
 CPPUNIT_TEST (testCmosChecksum)
 CPPUNIT_TEST (testCmosWriting)
 CPPUNIT_TEST (testSystemInfo)
 CPPUNIT_TEST (testIdByte)
 CPPUNIT_TEST (testServiceTag)
 CPPUNIT_TEST (testServiceTagWriting)
 CPPUNIT_TEST (testAssetTag)
 CPPUNIT_TEST (testSystemName)
 CPPUNIT_TEST (testBiosVersion)
 CPPUNIT_TEST (testIsDell)
 CPPUNIT_TEST (testVariousAccessors)
 CPPUNIT_TEST (testOutOfBounds)
 CPPUNIT_TEST (testConstructionOffset1)
 CPPUNIT_TEST (testConstructionOffset2)
 CPPUNIT_TEST (testStateBytes)
 CPPUNIT_TEST (testUpBoot)
 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")
void checkSkipTest (std::string testName)

Protected Attributes

XML_NAMESPACE DOMBuilderparser
XML_NAMESPACE DOMDocumentdoc

Detailed Description

Definition at line 40 of file testPlatform.h.

Member Function Documentation

void checkSkipTest ( std::string  testName)
protected

Definition at line 152 of file testPlatform.cpp.

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

Here is the call graph for this function:

CPPUNIT_TEST ( testCmosChecksum  )
CPPUNIT_TEST ( testCmosWriting  )
CPPUNIT_TEST ( testSystemInfo  )
CPPUNIT_TEST ( testIdByte  )
CPPUNIT_TEST ( testServiceTag  )
CPPUNIT_TEST ( testServiceTagWriting  )
CPPUNIT_TEST ( testAssetTag  )
CPPUNIT_TEST ( testSystemName  )
CPPUNIT_TEST ( testBiosVersion  )
CPPUNIT_TEST ( testIsDell  )
CPPUNIT_TEST ( testVariousAccessors  )
CPPUNIT_TEST ( testOutOfBounds  )
CPPUNIT_TEST ( testConstructionOffset1  )
CPPUNIT_TEST ( testConstructionOffset2  )
CPPUNIT_TEST ( testStateBytes  )
CPPUNIT_TEST ( testUpBoot  )
CPPUNIT_TEST_SUITE ( testPlatform  )
CPPUNIT_TEST_SUITE_END ( )
virtual std::string getCppunitTopDirectory ( )
inlineprotectedvirtual

Definition at line 43 of file testPlatform.h.

References global_argv.

virtual std::string getTestDirectory ( )
inlineprotectedvirtual

Definition at line 59 of file testPlatform.h.

References global_argv.

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

Definition at line 410 of file testPlatform.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 54 of file testPlatform.h.

References global_argv.

virtual std::string getWritableDirectory ( )
inlineprotectedvirtual

Definition at line 48 of file testPlatform.h.

References global_argv.

void setUp ( )
virtual
void tearDown ( )
virtual
void testAssetTag ( )

Definition at line 596 of file testPlatform.cpp.

References getAssetTagFromToken(), safeConvertToString(), SMBIOSGetAssetTag(), SMBIOSSetAssetTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testBiosVersion ( )

Definition at line 622 of file testPlatform.cpp.

References safeConvertToString(), SMBIOSGetBiosVersion(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testCmosChecksum ( )
void testCmosWriting ( )
void testConstructionOffset1 ( )
void testConstructionOffset2 ( )
void testGetBoundaries ( )
void testIdByte ( )

Definition at line 433 of file testPlatform.cpp.

References SMBIOSGetDellSystemId(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testIsDell ( )

Definition at line 635 of file testPlatform.cpp.

References SMBIOSIsDellSystem(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testOutOfBounds ( )
void testServiceTag ( )

Definition at line 471 of file testPlatform.cpp.

References safeConvertToString(), SMBIOSGetServiceTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testServiceTagWriting ( )

Definition at line 487 of file testPlatform.cpp.

References getServiceTagFromCMOSToken(), safeConvertToString(), SMBIOSGetServiceTag(), SMBIOSSetServiceTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testStateBytes ( )

Definition at line 705 of file testPlatform.cpp.

References SMBIOSGetNvramStateBytes(), SMBIOSHasNvramStateBytes(), SMBIOSSetNvramStateBytes(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testSystemInfo ( )
void testSystemName ( )

Definition at line 459 of file testPlatform.cpp.

References safeConvertToString(), SMBIOSGetSystemName(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testUpBoot ( )

Definition at line 761 of file testPlatform.cpp.

References SMBIOSGetBootToUp(), SMBIOSHasBootToUp(), SMBIOSSetBootToUp(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.

Here is the call graph for this function:

void testVariousAccessors ( )

Member Data Documentation

XML_NAMESPACE DOMDocument* doc
protected

Definition at line 76 of file testPlatform.h.

XML_NAMESPACE DOMBuilder* parser
protected

Definition at line 71 of file testPlatform.h.


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