testStandalone Class Reference

#include <testStandalone.h>

List of all members.

Public Member Functions

virtual void setUp ()
virtual void tearDown ()
virtual void resetFactoryToBuiltinXml ()
void testTable_Subscript ()
void testTable_Subscript_builtinXml ()
void testEntryCount ()
void testEntryCount_builtinXml ()
void testConstIterator ()
void testConstIterator_builtinXml ()
void testSubscriptOperator1 ()
void testSubscriptOperator1_builtinXml ()
void testSubscriptOperator2 ()
void testSubscriptOperator2_builtinXml ()
void testSubscriptOperator3 ()
void testSubscriptOperator3_builtinXml ()
void testSmbiosXml ()
void testStreamify ()
void testEachItemAccessors ()
void testEachItemAccessors_builtinXml ()
void testItem_GetBiosInfo ()
void testItem_GetBiosInfo_builtinXml ()
void testItem_GetSystemInfo ()
void testItem_GetSystemInfo_builtinXml ()
void testTypeMismatch ()
void testTypeMismatch_builtinXml ()
void testItemIdentity ()
void testItemIdentity_builtinXml ()
void testGetBoundaries ()
void testGetBoundaries_builtinXml ()
void testMemoryBadFiles ()
void testMemoryFuncs ()
void testCmosConstructor ()
void testSmi_callingInterface ()
void testSmi_callingInterface_physaddr ()
void testServiceTagWriting ()
void testLibraryVersion ()
void testStateBytes ()
void testException ()
void testNonXml ()
 CPPUNIT_TEST_SUITE (testStandalone)
 CPPUNIT_TEST (testTable_Subscript)
 CPPUNIT_TEST (testTable_Subscript_builtinXml)
 CPPUNIT_TEST (testEntryCount)
 CPPUNIT_TEST (testEntryCount_builtinXml)
 CPPUNIT_TEST (testConstIterator)
 CPPUNIT_TEST (testConstIterator_builtinXml)
 CPPUNIT_TEST (testSubscriptOperator1)
 CPPUNIT_TEST (testSubscriptOperator1_builtinXml)
 CPPUNIT_TEST (testSubscriptOperator2)
 CPPUNIT_TEST (testSubscriptOperator2_builtinXml)
 CPPUNIT_TEST (testSubscriptOperator3)
 CPPUNIT_TEST (testSubscriptOperator3_builtinXml)
 CPPUNIT_TEST (testSmbiosXml)
 CPPUNIT_TEST (testStreamify)
 CPPUNIT_TEST (testItemIdentity)
 CPPUNIT_TEST (testItemIdentity_builtinXml)
 CPPUNIT_TEST (testEachItemAccessors)
 CPPUNIT_TEST (testEachItemAccessors_builtinXml)
 CPPUNIT_TEST (testItem_GetBiosInfo)
 CPPUNIT_TEST (testItem_GetBiosInfo_builtinXml)
 CPPUNIT_TEST (testItem_GetSystemInfo)
 CPPUNIT_TEST (testItem_GetSystemInfo_builtinXml)
 CPPUNIT_TEST (testGetBoundaries)
 CPPUNIT_TEST (testGetBoundaries_builtinXml)
 CPPUNIT_TEST (testTypeMismatch)
 CPPUNIT_TEST (testTypeMismatch_builtinXml)
 CPPUNIT_TEST (testMemoryBadFiles)
 CPPUNIT_TEST (testMemoryFuncs)
 CPPUNIT_TEST (testCmosConstructor)
 CPPUNIT_TEST (testSmi_callingInterface)
 CPPUNIT_TEST (testSmi_callingInterface_physaddr)
 CPPUNIT_TEST (testLibraryVersion)
 CPPUNIT_TEST (testException)
 CPPUNIT_TEST (testNonXml)
 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 ()


Detailed Description

Definition at line 40 of file testStandalone.h.


Member Function Documentation

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

Definition at line 43 of file testStandalone.h.

References global_argv.

Referenced by setUp().

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

Definition at line 48 of file testStandalone.h.

References global_argv.

Referenced by setUp().

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

Definition at line 55 of file testStandalone.h.

References global_argv.

Referenced by testCmosConstructor(), testConstIterator(), testEachItemAccessors(), testEntryCount(), testException(), testGetBoundaries(), testItem_GetBiosInfo(), testItem_GetSystemInfo(), testItemIdentity(), testLibraryVersion(), testMemoryBadFiles(), testMemoryFuncs(), testNonXml(), testSmbiosXml(), testSmi_callingInterface(), testSmi_callingInterface_physaddr(), testStreamify(), testSubscriptOperator1(), testSubscriptOperator2(), testSubscriptOperator3(), testTable_Subscript(), and testTypeMismatch().

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

Definition at line 60 of file testStandalone.h.

References global_argv.

Referenced by setUp().

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

Definition at line 65 of file testStandalone.h.

Referenced by setUp().

void setUp (  )  [virtual]

Definition at line 71 of file testStandalone.cpp.

References copyFile(), fileExists(), getCppunitTopDirectory(), SmiFactory::getFactory(), MemoryFactory::getFactory(), CmosRWFactory::getFactory(), SmbiosFactory::getFactory(), SmbiosXmlFactory::getFactory(), getTestDirectory(), getWritableDirectory(), getXmlFile(), and IFactory::UnitTestMode.

Referenced by testNonXml().

void tearDown (  )  [virtual]

Definition at line 126 of file testStandalone.cpp.

References SmiFactory::getFactory(), CmosRWFactory::getFactory(), MemoryFactory::getFactory(), SmbiosFactory::getFactory(), and TokenTableFactory::getFactory().

Referenced by testNonXml().

void resetFactoryToBuiltinXml (  )  [virtual]

Definition at line 121 of file testStandalone.cpp.

References SmbiosFactory::getFactory().

Referenced by testConstIterator_builtinXml(), testEachItemAccessors_builtinXml(), testEntryCount_builtinXml(), testGetBoundaries_builtinXml(), testItem_GetBiosInfo_builtinXml(), testItem_GetSystemInfo_builtinXml(), testItemIdentity_builtinXml(), testSubscriptOperator1_builtinXml(), testSubscriptOperator2_builtinXml(), testSubscriptOperator3_builtinXml(), testTable_Subscript_builtinXml(), and testTypeMismatch_builtinXml().

void testTable_Subscript (  ) 

Definition at line 149 of file testStandalone.cpp.

References smbios::BIOS_Information, SmbiosFactory::getFactory(), smbios::getItemHandle(), smbios::getItemLength(), smbios::getItemType(), getTestName(), STD_TEST_END, STD_TEST_START, and smbios::System_Information.

Referenced by testTable_Subscript_builtinXml().

void testTable_Subscript_builtinXml (  ) 

Definition at line 197 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testTable_Subscript().

void testEntryCount (  ) 

Definition at line 204 of file testStandalone.cpp.

References ISmbiosTable::begin(), ISmbiosTable::end(), SmbiosFactory::getFactory(), ISmbiosTable::getNumberOfEntries(), getTestName(), STD_TEST_END, and STD_TEST_START.

Referenced by testEntryCount_builtinXml().

void testEntryCount_builtinXml (  ) 

Definition at line 227 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testEntryCount().

void testConstIterator (  ) 

Definition at line 234 of file testStandalone.cpp.

References ISmbiosTable::begin(), ISmbiosTable::end(), SmbiosFactory::getFactory(), ISmbiosTable::getNumberOfEntries(), getTestName(), STD_TEST_END, and STD_TEST_START.

Referenced by testConstIterator_builtinXml().

void testConstIterator_builtinXml (  ) 

Definition at line 257 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testConstIterator().

void testSubscriptOperator1 (  ) 

Definition at line 264 of file testStandalone.cpp.

References ISmbiosTable::end(), SmbiosFactory::getFactory(), ISmbiosTable::getNumberOfEntries(), getTestName(), STD_TEST_END, and STD_TEST_START.

Referenced by testSubscriptOperator1_builtinXml().

void testSubscriptOperator1_builtinXml (  ) 

Definition at line 284 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testSubscriptOperator1().

void testSubscriptOperator2 (  ) 

Definition at line 291 of file testStandalone.cpp.

References getTestName(), STD_TEST_END, and STD_TEST_START.

Referenced by testSubscriptOperator2_builtinXml().

void testSubscriptOperator2_builtinXml (  ) 

Definition at line 315 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testSubscriptOperator2().

void testSubscriptOperator3 (  ) 

Definition at line 322 of file testStandalone.cpp.

References ISmbiosTable::end(), SmbiosFactory::getFactory(), getTestName(), STD_TEST_END, and STD_TEST_START.

Referenced by testSubscriptOperator3_builtinXml().

void testSubscriptOperator3_builtinXml (  ) 

Definition at line 347 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testSubscriptOperator3().

void testSmbiosXml (  ) 

Definition at line 792 of file testStandalone.cpp.

References SmbiosFactory::getFactory(), getStringForType(), getTestName(), smbios::isBitSet(), STD_TEST_END, and STD_TEST_START.

void testStreamify (  ) 

Definition at line 361 of file testStandalone.cpp.

References ISmbiosTable::end(), SmbiosFactory::getFactory(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testEachItemAccessors (  ) 

Definition at line 437 of file testStandalone.cpp.

References ISmbiosTable::begin(), ISmbiosTable::end(), SmbiosFactory::getFactory(), getTestName(), smbios::getU16_FromItem(), smbios::getU8_FromItem(), STD_TEST_END, and STD_TEST_START.

Referenced by testEachItemAccessors_builtinXml().

void testEachItemAccessors_builtinXml (  ) 

Definition at line 471 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testEachItemAccessors().

void testItem_GetBiosInfo (  ) 

Definition at line 477 of file testStandalone.cpp.

References ASSERT_THROWS, smbios::getBits_FromItem(), smbios::getData(), SmbiosFactory::getFactory(), smbios::getString_FromItem(), getTestName(), smbios::getU16_FromItem(), smbios::getU64_FromItem(), smbios::getU8_FromItem(), STD_TEST_END, and STD_TEST_START.

Referenced by testItem_GetBiosInfo_builtinXml().

void testItem_GetBiosInfo_builtinXml (  ) 

Definition at line 640 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testItem_GetBiosInfo().

void testItem_GetSystemInfo (  ) 

Definition at line 692 of file testStandalone.cpp.

References SmbiosFactory::getFactory(), smbios::getString_FromItem(), getTestName(), smbios::getU16_FromItem(), smbios::getU8_FromItem(), STD_TEST_END, and STD_TEST_START.

Referenced by testItem_GetSystemInfo_builtinXml().

void testItem_GetSystemInfo_builtinXml (  ) 

Definition at line 782 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testItem_GetSystemInfo().

void testTypeMismatch (  ) 

Definition at line 811 of file testStandalone.cpp.

References ASSERT_THROWS, smbios::getBits_FromItem(), SmbiosFactory::getFactory(), smbios::getString_FromItem(), getTestName(), smbios::getU16_FromItem(), smbios::getU32_FromItem(), smbios::getU64_FromItem(), smbios::getU8_FromItem(), STD_TEST_END, and STD_TEST_START.

Referenced by testTypeMismatch_builtinXml().

void testTypeMismatch_builtinXml (  ) 

Definition at line 843 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testTypeMismatch().

void testItemIdentity (  ) 

Definition at line 385 of file testStandalone.cpp.

References smbios::BIOS_Information, SmbiosFactory::getFactory(), getTestName(), ISmbiosItem::getType(), STD_TEST_END, STD_TEST_START, and smbios::System_Information.

Referenced by testItemIdentity_builtinXml().

void testItemIdentity_builtinXml (  ) 

Definition at line 430 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testItemIdentity().

void testGetBoundaries (  ) 

Definition at line 851 of file testStandalone.cpp.

References ASSERT_THROWS, ISmbiosTable::end(), SmbiosFactory::getFactory(), getTestName(), smbios::getU16_FromItem(), smbios::getU32_FromItem(), smbios::getU64_FromItem(), smbios::getU8_FromItem(), STD_TEST_END, and STD_TEST_START.

Referenced by testGetBoundaries_builtinXml().

void testGetBoundaries_builtinXml (  ) 

Definition at line 881 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testGetBoundaries().

void testMemoryBadFiles (  ) 

Definition at line 892 of file testStandalone.cpp.

References ASSERT_THROWS, MemoryFactory::getFactory(), getTestName(), MemoryFactory::makeNew(), IFactory::setParameter(), STD_TEST_END, STD_TEST_START, and IFactory::UnitTestMode.

void testMemoryFuncs (  ) 

Definition at line 913 of file testStandalone.cpp.

References ASSERT_THROWS, IMemory::getByte(), MemoryFactory::getFactory(), MemoryFactory::getSingleton(), getTestName(), IMemory::putByte(), STD_TEST_END, and STD_TEST_START.

void testCmosConstructor (  ) 

Definition at line 941 of file testStandalone.cpp.

References ITokenTable::begin(), ITokenTable::end(), TokenTableFactory::getFactory(), TokenTableFactory::getSingleton(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testSmi_callingInterface (  ) 

Definition at line 967 of file testStandalone.cpp.

References SmiFactory::DELL_CALLING_INTERFACE_SMI_RAW, ISmi::execute(), SmiFactory::getFactory(), getTestName(), IDellCallingInterfaceSmi::setArg(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), STD_TEST_END, and STD_TEST_START.

void testSmi_callingInterface_physaddr (  ) 

Definition at line 991 of file testStandalone.cpp.

References SmiFactory::DELL_CALLING_INTERFACE_SMI_RAW, ISmi::execute(), SmiFactory::getFactory(), getTestName(), IDellCallingInterfaceSmi::setArgAsPhysicalAddress(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), STD_TEST_END, and STD_TEST_START.

void testServiceTagWriting (  ) 

void testLibraryVersion (  ) 

Definition at line 1028 of file testStandalone.cpp.

References getTestName(), LIBSMBIOS_RELEASE_VERSION, SMBIOSGetLibraryVersionString(), STD_TEST_END, and STD_TEST_START.

void testStateBytes (  ) 

void testException (  ) 

Definition at line 1040 of file testStandalone.cpp.

References getTestName(), Exception::setMessageString(), Exception::setParameter(), STD_TEST_END, STD_TEST_START, and Exception::what().

void testNonXml (  ) 

Definition at line 646 of file testStandalone.cpp.

References ASSERT_THROWS, smbios::BIOS_Information, SmbiosFactory::getFactory(), smbios::getString_FromItem(), getTestName(), smbios::getU16_FromItem(), smbios::getU8_FromItem(), SmbiosFactory::makeNew(), IFactory::reset(), setUp(), STD_TEST_END, STD_TEST_START, and tearDown().

CPPUNIT_TEST_SUITE ( testStandalone   ) 

CPPUNIT_TEST ( testTable_Subscript   ) 

CPPUNIT_TEST ( testTable_Subscript_builtinXml   ) 

CPPUNIT_TEST ( testEntryCount   ) 

CPPUNIT_TEST ( testEntryCount_builtinXml   ) 

CPPUNIT_TEST ( testConstIterator   ) 

CPPUNIT_TEST ( testConstIterator_builtinXml   ) 

CPPUNIT_TEST ( testSubscriptOperator1   ) 

CPPUNIT_TEST ( testSubscriptOperator1_builtinXml   ) 

CPPUNIT_TEST ( testSubscriptOperator2   ) 

CPPUNIT_TEST ( testSubscriptOperator2_builtinXml   ) 

CPPUNIT_TEST ( testSubscriptOperator3   ) 

CPPUNIT_TEST ( testSubscriptOperator3_builtinXml   ) 

CPPUNIT_TEST ( testSmbiosXml   ) 

CPPUNIT_TEST ( testStreamify   ) 

CPPUNIT_TEST ( testItemIdentity   ) 

CPPUNIT_TEST ( testItemIdentity_builtinXml   ) 

CPPUNIT_TEST ( testEachItemAccessors   ) 

CPPUNIT_TEST ( testEachItemAccessors_builtinXml   ) 

CPPUNIT_TEST ( testItem_GetBiosInfo   ) 

CPPUNIT_TEST ( testItem_GetBiosInfo_builtinXml   ) 

CPPUNIT_TEST ( testItem_GetSystemInfo   ) 

CPPUNIT_TEST ( testItem_GetSystemInfo_builtinXml   ) 

CPPUNIT_TEST ( testGetBoundaries   ) 

CPPUNIT_TEST ( testGetBoundaries_builtinXml   ) 

CPPUNIT_TEST ( testTypeMismatch   ) 

CPPUNIT_TEST ( testTypeMismatch_builtinXml   ) 

CPPUNIT_TEST ( testMemoryBadFiles   ) 

CPPUNIT_TEST ( testMemoryFuncs   ) 

CPPUNIT_TEST ( testCmosConstructor   ) 

CPPUNIT_TEST ( testSmi_callingInterface   ) 

CPPUNIT_TEST ( testSmi_callingInterface_physaddr   ) 

CPPUNIT_TEST ( testLibraryVersion   ) 

CPPUNIT_TEST ( testException   ) 

CPPUNIT_TEST ( testNonXml   ) 

CPPUNIT_TEST_SUITE_END (  ) 


The documentation for this class was generated from the following files:
Generated on Sat Apr 21 11:36:10 2007 for SMBIOS Library by  doxygen 1.5.2