SMBIOS Library
|
#include <testPlatform.h>
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 DOMBuilder * | parser |
XML_NAMESPACE DOMDocument * | doc |
Definition at line 40 of file testPlatform.h.
|
protected |
Definition at line 152 of file testPlatform.cpp.
References DOMElement, xmlutils::findElement(), XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.
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 | ( | ) |
|
inlineprotectedvirtual |
Definition at line 43 of file testPlatform.h.
References global_argv.
|
inlineprotectedvirtual |
Definition at line 59 of file testPlatform.h.
References global_argv.
|
protected |
Definition at line 410 of file testPlatform.cpp.
References DOMElement, xmlutils::findElement(), xmlutils::getNodeText(), XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.
|
inlineprotectedvirtual |
Definition at line 54 of file testPlatform.h.
References global_argv.
|
inlineprotectedvirtual |
Definition at line 48 of file testPlatform.h.
References global_argv.
|
virtual |
Definition at line 72 of file testPlatform.cpp.
References compatXmlReadFile, copyFile(), fileExists(), CmosRWFactory::getFactory(), MemoryFactory::getFactory(), SmiFactory::getFactory(), SmbiosFactory::getFactory(), xmlutils::getParser(), InitXML, IFactory::setMode(), IFactory::setParameter(), and IFactory::UnitTestMode.
|
virtual |
Definition at line 125 of file testPlatform.cpp.
References FiniXML, CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), MemoryFactory::getFactory(), SmiFactory::getFactory(), SmbiosFactory::getFactory(), IFactory::reset(), xmlFreeDoc, and xmlFreeParser.
void testAssetTag | ( | ) |
Definition at line 596 of file testPlatform.cpp.
References getAssetTagFromToken(), safeConvertToString(), SMBIOSGetAssetTag(), SMBIOSSetAssetTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testBiosVersion | ( | ) |
Definition at line 622 of file testPlatform.cpp.
References safeConvertToString(), SMBIOSGetBiosVersion(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testCmosChecksum | ( | ) |
Definition at line 180 of file testPlatform.cpp.
References ITokenTable::begin(), ITokenTable::end(), CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), CmosRWFactory::getSingleton(), TokenTableFactory::getSingleton(), IObservable::notify(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testCmosWriting | ( | ) |
Definition at line 205 of file testPlatform.cpp.
References IToken::activate(), ASSERT_THROWS, ITokenTable::begin(), ITokenTable::end(), CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), CmosRWFactory::getSingleton(), TokenTableFactory::getSingleton(), IToken::getString(), IToken::getStringLength(), IToken::isActive(), IToken::isString(), IObservable::notify(), IToken::setString(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testConstructionOffset1 | ( | ) |
Definition at line 826 of file testPlatform.cpp.
References ISmbiosTable::begin(), DOMElement, ISmbiosTable::end(), xmlutils::findElement(), SmbiosFactory::getFactory(), ISmbiosTable::getNumberOfEntries(), SmbiosFactory::getSingleton(), xmlutils::safeGetAttribute(), IFactory::setParameter(), STD_TEST_END, STD_TEST_START_CHECKSKIP, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.
void testConstructionOffset2 | ( | ) |
Definition at line 866 of file testPlatform.cpp.
References ASSERT_THROWS, DOMElement, xmlutils::findElement(), SmbiosFactory::getFactory(), SmbiosFactory::makeNew(), xmlutils::safeGetAttribute(), IFactory::setParameter(), STD_TEST_END, STD_TEST_START_CHECKSKIP, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.
void testGetBoundaries | ( | ) |
void testIdByte | ( | ) |
Definition at line 433 of file testPlatform.cpp.
References SMBIOSGetDellSystemId(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testIsDell | ( | ) |
Definition at line 635 of file testPlatform.cpp.
References SMBIOSIsDellSystem(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testOutOfBounds | ( | ) |
Definition at line 785 of file testPlatform.cpp.
References ASSERT_THROWS, smbios::BIOS_Information, DOMElement, xmlutils::findElement(), SmbiosFactory::getFactory(), SmbiosFactory::getSingleton(), ISmbiosItem::getStringByStringNumber(), xmlutils::safeGetAttribute(), STD_TEST_END, STD_TEST_START_CHECKSKIP, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.
void testServiceTag | ( | ) |
Definition at line 471 of file testPlatform.cpp.
References safeConvertToString(), SMBIOSGetServiceTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testServiceTagWriting | ( | ) |
Definition at line 487 of file testPlatform.cpp.
References getServiceTagFromCMOSToken(), safeConvertToString(), SMBIOSGetServiceTag(), SMBIOSSetServiceTag(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testStateBytes | ( | ) |
Definition at line 705 of file testPlatform.cpp.
References SMBIOSGetNvramStateBytes(), SMBIOSHasNvramStateBytes(), SMBIOSSetNvramStateBytes(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testSystemInfo | ( | ) |
Definition at line 354 of file testPlatform.cpp.
References SMBIOSFreeMemory(), SMBIOSGetAssetTag(), SMBIOSGetBiosVersion(), SMBIOSGetDellSystemId(), SMBIOSGetServiceTag(), SMBIOSGetSystemName(), SMBIOSGetVendorName(), SMBIOSIsDellSystem(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testSystemName | ( | ) |
Definition at line 459 of file testPlatform.cpp.
References safeConvertToString(), SMBIOSGetSystemName(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testUpBoot | ( | ) |
Definition at line 761 of file testPlatform.cpp.
References SMBIOSGetBootToUp(), SMBIOSHasBootToUp(), SMBIOSSetBootToUp(), STD_TEST_END, and STD_TEST_START_CHECKSKIP.
void testVariousAccessors | ( | ) |
Definition at line 649 of file testPlatform.cpp.
References smbios::BIOS_Information, DOMElement, xmlutils::findElement(), SmbiosFactory::getFactory(), xmlutils::getNodeText(), SmbiosFactory::getSingleton(), smbios::getString_FromItem(), ISmbiosItem::getStringByStringNumber(), STD_TEST_END, STD_TEST_START_CHECKSKIP, XERCES_CPP_NAMESPACE_QUALIFIER, and xmlDocGetRootElement.
|
protected |
Definition at line 76 of file testPlatform.h.
|
protected |
Definition at line 71 of file testPlatform.h.