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

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.

CPPUNIT_TEST_SUITE_REGISTRATION testPlatform   ) 
 

bool fileExists string  fileName  ) 
 

Definition at line 60 of file testPlatform.cpp.

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(), ICmosRW::readByte(), u16, u32, and u8.

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, SVC_TAG_LEN_MAX, u16, u32, and u8.

Referenced by testPlatform::testServiceTagWriting().

string safeConvertToString const char *  str  ) 
 

Definition at line 464 of file testPlatform.cpp.

References SMBIOSFreeMemory().


Generated on Wed Apr 11 16:25:11 2007 for SMBIOS Library by doxygen 1.3.5