TSqlResourceTester Class Reference

class TSqlResourceTester

TSqlResourceTester class is used internally by the SQL server out of memory and resource leaking tests. It provides methods for heap allocation failure simulation and resource checking and counting.

Public Member Functions
IMPORT_C void Check ()
IMPORT_C TInt Count ()
IMPORT_C void Mark ()
IMPORT_C void SetDbHeapFailure ( TInt , TInt )
IMPORT_C void SetHeapFailure ( TInt , TInt )

Member Functions Documentation

Check()

IMPORT_C void Check ( ) [static]

Count()

IMPORT_C TInt Count ( ) [static]

Mark()

IMPORT_C void Mark ( ) [static]

SetDbHeapFailure(TInt, TInt)

IMPORT_C void SetDbHeapFailure ( TInt aAllocFailType,
TInt aRate
) [static]

Parameters

TInt aAllocFailType
TInt aRate

SetHeapFailure(TInt, TInt)

IMPORT_C void SetHeapFailure ( TInt aAllocFailType,
TInt aRate
) [static]

Parameters

TInt aAllocFailType
TInt aRate