persistentstorage/sql/INC/SqlResourceTester.h
author Shabe Razvi <shaber@symbian.org>
Tue, 19 Oct 2010 15:57:30 +0100
changeset 54 a0e1d366428c
parent 0 08ec8eefde2f
permissions -rw-r--r--
Workaround for Bug 3854 - featuremgr bld.inf no longer exports features.dat for emulator

// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// SQLDB internal API header
// 
//

#ifndef SQLRESOURCETESTER_H
#define SQLRESOURCETESTER_H

/**
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.

@internalAll
@released
*/
class TSqlResourceTester
	{
public:	
	IMPORT_C static void Mark();
	IMPORT_C static void Check();
	IMPORT_C static TInt Count();
	IMPORT_C static void SetDbHeapFailure(TInt aAllocFailType,TInt aRate);
	IMPORT_C static void SetHeapFailure(TInt aAllocFailType,TInt aRate);

	};

#endif //__SQLDBINTERNAL_H__