#include "smbios/compat.h"#include <iomanip>#include <fstream>#include <string.h>#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 () |
| void copyFile | ( | string | dstFile, | |
| string | srcFile | |||
| ) |
Definition at line 50 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 61 of file testPlatform.cpp.
Referenced by testStandalone::setUp(), testRbu::setUp(), testPlatform::setUp(), and testRbu::testRbuBadData().
| char* getAssetTagFromToken | ( | ) |
Definition at line 507 of file System.cpp.
References ASSET_TAG_LEN_MAX, CmosRWFactory::getFactory(), TokenTableFactory::getFactory(), CmosRWFactory::getSingleton(), TokenTableFactory::getSingleton(), and ICmosRW::readByte().
Referenced by testPlatform::testAssetTag().

| char* getServiceTagFromCMOSToken | ( | ) |
Definition at line 285 of file System.cpp.
References 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 447 of file testPlatform.cpp.
References SMBIOSFreeMemory().
Referenced by testPlatform::testAssetTag(), testPlatform::testBiosVersion(), testPlatform::testServiceTag(), testPlatform::testServiceTagWriting(), and testPlatform::testSystemName().

1.7.1