testPlatform.cpp File Reference

#include "smbios/compat.h"
#include <iomanip>
#include <fstream>
#include "testPlatform.h"
#include "smbios/SmbiosDefs.h"
#include "smbios/IMemory.h"
#include "smbios/ISmi.h"
#include "smbios/IObserver.h"
#include "smbios/version.h"

Go to the source code of this file.

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (testPlatform)
void copyFile (string dstFile, string srcFile)
bool fileExists (string fileName)
string safeConvertToString (const char *str)
char * getServiceTagFromCMOSToken ()
char * getAssetTagFromToken ()


Function Documentation

void copyFile ( string  dstFile,
string  srcFile 
)

Definition at line 49 of file testPlatform.cpp.

Referenced by testStandalone::setUp(), testRbu::setUp(), and testPlatform::setUp().

CPPUNIT_TEST_SUITE_REGISTRATION ( testPlatform   ) 

bool fileExists ( string  fileName  ) 

Definition at line 60 of file testPlatform.cpp.

Referenced by testStandalone::setUp(), testRbu::setUp(), testPlatform::setUp(), and testRbu::testRbuBadData().

char* getAssetTagFromToken (  ) 

Definition at line 503 of file System.cpp.

References ASSET_TAG_CMOS_LEN_MAX, ASSET_TAG_LEN_MAX, Cmos_Asset_Token, CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), CmosRWFactory::getSingleton(), TokenTableFactory::getSingleton(), and ICmosRW::readByte().

Referenced by testPlatform::testAssetTag().

char* getServiceTagFromCMOSToken (  ) 

Definition at line 281 of file System.cpp.

References Cmos_Service_Token, DCOUT, dell_decode_service_tag(), CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), CmosRWFactory::getSingleton(), TokenTableFactory::getSingleton(), ICmosRW::readByte(), SVC_TAG_CMOS_LEN_MAX, and SVC_TAG_LEN_MAX.

Referenced by testPlatform::testServiceTagWriting().

string safeConvertToString ( const char *  str  ) 

Definition at line 464 of file testPlatform.cpp.

References SMBIOSFreeMemory().

Referenced by testPlatform::testAssetTag(), testPlatform::testBiosVersion(), testPlatform::testServiceTag(), testPlatform::testServiceTagWriting(), and testPlatform::testSystemName().


Generated on Sat Apr 21 11:36:10 2007 for SMBIOS Library by  doxygen 1.5.2