#include <testPlatform.h>
Public Methods | |
virtual void | setUp () |
virtual void | tearDown () |
virtual void | resetFactoryToBuiltinXml () |
void | testGetBoundaries () |
void | testGetBoundaries_builtinXml () |
void | testCmosChecksum () |
void | testCmosWriting () |
void | testSystemInfo () |
void | testSystemInfo_builtinXml () |
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 (testSystemInfo_builtinXml) | |
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 Methods | |
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") |
void | checkSkipTest (std::string testName) |
Protected Attributes | |
XML_NAMESPACE DOMBuilder * | parser |
XML_NAMESPACE DOMDocument * | doc |
|
Definition at line 163 of file testPlatform.cpp. References doc, DOMElement, xmlutils::findElement(), XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 43 of file testPlatform.h. References global_argv. Referenced by setUp(). |
|
Definition at line 59 of file testPlatform.h. References global_argv. Referenced by setUp(). |
|
Definition at line 427 of file testPlatform.cpp. References doc, DOMElement, xmlutils::findElement(), xmlutils::getNodeText(), XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement. Referenced by testAssetTag(), testBiosVersion(), testIdByte(), testIsDell(), testServiceTag(), testServiceTagWriting(), and testSystemName(). |
|
Definition at line 54 of file testPlatform.h. References global_argv. Referenced by testAssetTag(), testBiosVersion(), testCmosChecksum(), testCmosWriting(), testConstructionOffset1(), testConstructionOffset2(), testIdByte(), testIsDell(), testOutOfBounds(), testServiceTag(), testServiceTagWriting(), testStateBytes(), testSystemInfo(), testSystemName(), testUpBoot(), and testVariousAccessors(). |
|
Definition at line 48 of file testPlatform.h. References global_argv. Referenced by setUp(). |
|
Definition at line 64 of file testPlatform.h. Referenced by setUp(). |
|
Definition at line 131 of file testPlatform.cpp. References SmbiosFactory::getFactory(). Referenced by testSystemInfo_builtinXml(). |
|
|
Definition at line 136 of file testPlatform.cpp. References doc, FiniXML, SmiFactory::getFactory(), CmosRWFactory::getFactory(), MemoryFactory::getFactory(), SmbiosFactory::getFactory(), TokenTableFactory::getFactory(), parser, xmlFreeDoc, and xmlFreeParser. |
|
Definition at line 613 of file testPlatform.cpp. References getAssetTagFromToken(), getTestInputString(), getTestName(), safeConvertToString(), SMBIOSGetAssetTag(), SMBIOSSetAssetTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 639 of file testPlatform.cpp. References getTestInputString(), getTestName(), safeConvertToString(), SMBIOSGetBiosVersion(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 191 of file testPlatform.cpp. References ITokenTable::begin(), ITokenTable::end(), CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), TokenTableFactory::getSingleton(), getTestName(), ITokenTable::iterator, IObservable::notify(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
|
Definition at line 843 of file testPlatform.cpp. References ISmbiosTable::begin(), doc, DOMElement, ISmbiosTable::end(), xmlutils::findElement(), SmbiosFactory::getFactory(), ISmbiosTable::getNumberOfEntries(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, STD_TEST_START_CHECKSKIP, u32, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement. |
|
Definition at line 883 of file testPlatform.cpp. References ASSERT_THROWS, doc, DOMElement, xmlutils::findElement(), SmbiosFactory::getFactory(), getTestName(), SmbiosFactory::makeNew(), IFactory::setParameter(), STD_TEST_END, STD_TEST_START_CHECKSKIP, u32, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement. |
|
|
|
|
|
Definition at line 450 of file testPlatform.cpp. References getTestInputString(), getTestName(), SMBIOSGetDellSystemId(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 652 of file testPlatform.cpp. References getTestInputString(), getTestName(), SMBIOSIsDellSystem(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 802 of file testPlatform.cpp. References ASSERT_THROWS, doc, DOMElement, xmlutils::findElement(), SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, STD_TEST_START_CHECKSKIP, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement. |
|
Definition at line 488 of file testPlatform.cpp. References getTestInputString(), getTestName(), safeConvertToString(), SMBIOSGetServiceTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 504 of file testPlatform.cpp. References getServiceTagFromCMOSToken(), getTestInputString(), getTestName(), safeConvertToString(), SMBIOSGetServiceTag(), SMBIOSSetServiceTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 722 of file testPlatform.cpp. References getTestName(), SMBIOSGetNvramStateBytes(), SMBIOSHasNvramStateBytes(), SMBIOSSetNvramStateBytes(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 365 of file testPlatform.cpp. References getTestName(), SMBIOSFreeMemory(), SMBIOSGetAssetTag(), SMBIOSGetBiosVersion(), SMBIOSGetDellSystemId(), SMBIOSGetServiceTag(), SMBIOSGetSystemName(), SMBIOSGetVendorName(), SMBIOSIsDellSystem(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. Referenced by testSystemInfo_builtinXml(). |
|
Definition at line 419 of file testPlatform.cpp. References resetFactoryToBuiltinXml(), and testSystemInfo(). |
|
Definition at line 476 of file testPlatform.cpp. References getTestInputString(), getTestName(), safeConvertToString(), SMBIOSGetSystemName(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 778 of file testPlatform.cpp. References getTestName(), SMBIOSGetBootToUp(), SMBIOSHasBootToUp(), SMBIOSSetBootToUp(), STD_TEST_END, and STD_TEST_START_CHECKSKIP. |
|
Definition at line 666 of file testPlatform.cpp. References doc, DOMElement, xmlutils::findElement(), SmbiosFactory::getFactory(), xmlutils::getNodeText(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, STD_TEST_START_CHECKSKIP, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement. |
|
Definition at line 80 of file testPlatform.h. Referenced by checkSkipTest(), getTestInputString(), setUp(), tearDown(), testConstructionOffset1(), testConstructionOffset2(), testOutOfBounds(), and testVariousAccessors(). |
|
Definition at line 75 of file testPlatform.h. Referenced by setUp(), and tearDown(). |