Main Page | Namespace List | Class Hierarchy | Class List | Directories | 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 ()
void testSmbiosTableBase ()
void testSmbiosTableBase_iterNextItem ()
void testSmbiosTableBase_findItemByType ()
void testSmbiosTableBase_findItemByHandle ()
void testTable_Subscript ()
void testEntryCount ()
void testConstIterator ()
void testSubscriptOperator1 ()
void testSubscriptOperator2 ()
void testSubscriptOperator3 ()
void testSmbiosXml ()
void testStreamify ()
void testEachItemAccessors ()
void testItemIdentity ()
void testGetBoundaries ()
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 (testSmbiosTableBase)
 CPPUNIT_TEST (testSmbiosTableBase_iterNextItem)
 CPPUNIT_TEST (testSmbiosTableBase_findItemByType)
 CPPUNIT_TEST (testSmbiosTableBase_findItemByHandle)
 CPPUNIT_TEST (testTable_Subscript)
 CPPUNIT_TEST (testEntryCount)
 CPPUNIT_TEST (testConstIterator)
 CPPUNIT_TEST (testSubscriptOperator1)
 CPPUNIT_TEST (testSubscriptOperator2)
 CPPUNIT_TEST (testSubscriptOperator3)
 CPPUNIT_TEST (testSmbiosXml)
 CPPUNIT_TEST (testStreamify)
 CPPUNIT_TEST (testItemIdentity)
 CPPUNIT_TEST (testEachItemAccessors)
 CPPUNIT_TEST (testGetBoundaries)
 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 ()


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

CPPUNIT_TEST testEachItemAccessors   ) 
 

CPPUNIT_TEST testItemIdentity   ) 
 

CPPUNIT_TEST testStreamify   ) 
 

CPPUNIT_TEST testSmbiosXml   ) 
 

CPPUNIT_TEST testSubscriptOperator3   ) 
 

CPPUNIT_TEST testSubscriptOperator2   ) 
 

CPPUNIT_TEST testSubscriptOperator1   ) 
 

CPPUNIT_TEST testConstIterator   ) 
 

CPPUNIT_TEST testEntryCount   ) 
 

CPPUNIT_TEST testTable_Subscript   ) 
 

CPPUNIT_TEST testSmbiosTableBase_findItemByHandle   ) 
 

CPPUNIT_TEST testSmbiosTableBase_findItemByType   ) 
 

CPPUNIT_TEST testSmbiosTableBase_iterNextItem   ) 
 

CPPUNIT_TEST testSmbiosTableBase   ) 
 

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(), testItemIdentity(), testLibraryVersion(), testMemoryBadFiles(), testMemoryFuncs(), testNonXml(), testSmbiosXml(), testSmi_callingInterface(), testSmi_callingInterface_physaddr(), testStreamify(), testSubscriptOperator1(), testSubscriptOperator2(), testSubscriptOperator3(), and testTable_Subscript().

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

Definition at line 48 of file testStandalone.h.

References global_argv.

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(), getTestDirectory(), and getWritableDirectory().

Referenced by testNonXml().

void tearDown  )  [virtual]
 

Definition at line 114 of file testStandalone.cpp.

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

Referenced by testNonXml().

void testCmosConstructor  ) 
 

Definition at line 568 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 221 of file testStandalone.cpp.

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

void testEachItemAccessors  ) 
 

Definition at line 394 of file testStandalone.cpp.

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

void testEntryCount  ) 
 

Definition at line 197 of file testStandalone.cpp.

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

void testException  ) 
 

Definition at line 662 of file testStandalone.cpp.

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

void testGetBoundaries  ) 
 

Definition at line 483 of file testStandalone.cpp.

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

void testItemIdentity  ) 
 

Definition at line 348 of file testStandalone.cpp.

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

void testLibraryVersion  ) 
 

Definition at line 650 of file testStandalone.cpp.

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

void testMemoryBadFiles  ) 
 

Definition at line 519 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 540 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 428 of file testStandalone.cpp.

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

void testServiceTagWriting  ) 
 

void testSmbiosTableBase  ) 
 

Definition at line 137 of file testStandalone.cpp.

void testSmbiosTableBase_findItemByHandle  ) 
 

Definition at line 143 of file testStandalone.cpp.

void testSmbiosTableBase_findItemByType  ) 
 

Definition at line 146 of file testStandalone.cpp.

void testSmbiosTableBase_iterNextItem  ) 
 

Definition at line 140 of file testStandalone.cpp.

void testSmbiosXml  ) 
 

Definition at line 466 of file testStandalone.cpp.

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

void testSmi_callingInterface  ) 
 

Definition at line 594 of file testStandalone.cpp.

References SmiFactory::getFactory(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testSmi_callingInterface_physaddr  ) 
 

Definition at line 616 of file testStandalone.cpp.

References SmiFactory::getFactory(), getTestName(), STD_TEST_END, and STD_TEST_START.

void testStateBytes  ) 
 

void testStreamify  ) 
 

Definition at line 324 of file testStandalone.cpp.

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

void testSubscriptOperator1  ) 
 

Definition at line 245 of file testStandalone.cpp.

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

void testSubscriptOperator2  ) 
 

Definition at line 266 of file testStandalone.cpp.

References getTestName(), STD_TEST_END, and STD_TEST_START.

void testSubscriptOperator3  ) 
 

Definition at line 291 of file testStandalone.cpp.

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

void testTable_Subscript  ) 
 

Definition at line 150 of file testStandalone.cpp.

References ISmbiosTable::const_iterator, SmbiosFactory::getFactory(), smbios::getItemHandle(), smbios::getItemLength(), smbios::getItemType(), getTestName(), ISmbiosTable::iterator, STD_TEST_END, and STD_TEST_START.


The documentation for this class was generated from the following files:
Generated on Tue Feb 26 14:39:02 2008 for SMBIOS Library by  doxygen 1.3.9.1