Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 ()


Member Function Documentation

CPPUNIT_TEST testNonXml   ) 
 

CPPUNIT_TEST testException   ) 
 

CPPUNIT_TEST testLibraryVersion   ) 
 

CPPUNIT_TEST testSmi_callingInterface_physaddr   ) 
 

CPPUNIT_TEST testSmi_callingInterface   ) 
 

CPPUNIT_TEST testCmosConstructor   ) 
 

CPPUNIT_TEST testMemoryFuncs   ) 
 

CPPUNIT_TEST testMemoryBadFiles   ) 
 

CPPUNIT_TEST testTypeMismatch_builtinXml   ) 
 

CPPUNIT_TEST testTypeMismatch   ) 
 

CPPUNIT_TEST testGetBoundaries_builtinXml   ) 
 

CPPUNIT_TEST testGetBoundaries   ) 
 

CPPUNIT_TEST testItem_GetSystemInfo_builtinXml   ) 
 

CPPUNIT_TEST testItem_GetSystemInfo   ) 
 

CPPUNIT_TEST testItem_GetBiosInfo_builtinXml   ) 
 

CPPUNIT_TEST testItem_GetBiosInfo   ) 
 

CPPUNIT_TEST testEachItemAccessors_builtinXml   ) 
 

CPPUNIT_TEST testEachItemAccessors   ) 
 

CPPUNIT_TEST testItemIdentity_builtinXml   ) 
 

CPPUNIT_TEST testItemIdentity   ) 
 

CPPUNIT_TEST testStreamify   ) 
 

CPPUNIT_TEST testSmbiosXml   ) 
 

CPPUNIT_TEST testSubscriptOperator3_builtinXml   ) 
 

CPPUNIT_TEST testSubscriptOperator3   ) 
 

CPPUNIT_TEST testSubscriptOperator2_builtinXml   ) 
 

CPPUNIT_TEST testSubscriptOperator2   ) 
 

CPPUNIT_TEST testSubscriptOperator1_builtinXml   ) 
 

CPPUNIT_TEST testSubscriptOperator1   ) 
 

CPPUNIT_TEST testConstIterator_builtinXml   ) 
 

CPPUNIT_TEST testConstIterator   ) 
 

CPPUNIT_TEST testEntryCount_builtinXml   ) 
 

CPPUNIT_TEST testEntryCount   ) 
 

CPPUNIT_TEST testTable_Subscript_builtinXml   ) 
 

CPPUNIT_TEST testTable_Subscript   ) 
 

CPPUNIT_TEST_SUITE testStandalone   ) 
 

CPPUNIT_TEST_SUITE_END  ) 
 

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

Definition at line 43 of file testStandalone.h.

References global_argv.

Referenced by setUp().

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

Definition at line 60 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 getWritableDirectory  )  [inline, protected, virtual]
 

Definition at line 48 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 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 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(), and getXmlFile().

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 testCmosConstructor  ) 
 

Definition at line 941 of file testStandalone.cpp.

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

void testConstIterator  ) 
 

Definition at line 234 of file testStandalone.cpp.

References ISmbiosTable::begin(), ISmbiosTable::const_iterator, 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 testEachItemAccessors  ) 
 

Definition at line 437 of file testStandalone.cpp.

References ISmbiosTable::begin(), ISmbiosTable::end(), SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, STD_TEST_START, u16, and u8.

Referenced by testEachItemAccessors_builtinXml().

void testEachItemAccessors_builtinXml  ) 
 

Definition at line 471 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testEachItemAccessors().

void testEntryCount  ) 
 

Definition at line 204 of file testStandalone.cpp.

References ISmbiosTable::begin(), ISmbiosTable::end(), SmbiosFactory::getFactory(), ISmbiosTable::getNumberOfEntries(), getTestName(), ISmbiosTable::iterator, 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 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 testGetBoundaries  ) 
 

Definition at line 851 of file testStandalone.cpp.

References ASSERT_THROWS, SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, 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 testItem_GetBiosInfo  ) 
 

Definition at line 477 of file testStandalone.cpp.

References ASSERT_THROWS, SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, STD_TEST_START, u16, u32, and u8.

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(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, STD_TEST_START, and u8.

Referenced by testItem_GetSystemInfo_builtinXml().

void testItem_GetSystemInfo_builtinXml  ) 
 

Definition at line 782 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testItem_GetSystemInfo().

void testItemIdentity  ) 
 

Definition at line 385 of file testStandalone.cpp.

References SmbiosFactory::getFactory(), getTestName(), ISmbiosItem::getType(), ISmbiosTable::iterator, STD_TEST_END, and STD_TEST_START.

Referenced by testItemIdentity_builtinXml().

void testItemIdentity_builtinXml  ) 
 

Definition at line 430 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testItemIdentity().

void testLibraryVersion  ) 
 

Definition at line 1028 of file testStandalone.cpp.

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

void testMemoryBadFiles  ) 
 

Definition at line 892 of file testStandalone.cpp.

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

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 testNonXml  ) 
 

Definition at line 646 of file testStandalone.cpp.

References ASSERT_THROWS, ISmbiosTable::const_iterator, SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, SmbiosFactory::makeNew(), IFactory::reset(), setUp(), STD_TEST_END, STD_TEST_START, and tearDown().

void testServiceTagWriting  ) 
 

void testSmbiosXml  ) 
 

Definition at line 792 of file testStandalone.cpp.

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

void testSmi_callingInterface  ) 
 

Definition at line 967 of file testStandalone.cpp.

References 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 ISmi::execute(), SmiFactory::getFactory(), getTestName(), IDellCallingInterfaceSmi::setArgAsPhysicalAddress(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), STD_TEST_END, and STD_TEST_START.

void testStateBytes  ) 
 

void testStreamify  ) 
 

Definition at line 361 of file testStandalone.cpp.

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

void testSubscriptOperator1  ) 
 

Definition at line 264 of file testStandalone.cpp.

References SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, 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 SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, 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 testTable_Subscript  ) 
 

Definition at line 149 of file testStandalone.cpp.

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

Referenced by testTable_Subscript_builtinXml().

void testTable_Subscript_builtinXml  ) 
 

Definition at line 197 of file testStandalone.cpp.

References resetFactoryToBuiltinXml(), and testTable_Subscript().

void testTypeMismatch  ) 
 

Definition at line 811 of file testStandalone.cpp.

References ASSERT_THROWS, SmbiosFactory::getFactory(), getTestName(), ISmbiosTable::iterator, 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().


The documentation for this class was generated from the following files:
Generated on Wed Apr 11 16:25:11 2007 for SMBIOS Library by doxygen 1.3.5