featuremgmt/featuremgr/src/clientdll/featmgrresourcetester.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:51:02 +0200
branchRCL_3
changeset 8 fa9941cf3867
permissions -rw-r--r--
Revision: 201008 Kit: 201008

// 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:
// 
//

#ifndef FEATMGRRESOURCETESTER_H
#define FEATMGRRESOURCETESTER_H

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

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

#endif //FEATMGRRESOURCETESTER_H