windowing/windowserver/test/t_integ/inc/t_simloadutils.h
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 43 7579f232bae7
child 45 36b2e23a8629
--- a/windowing/windowserver/test/t_integ/inc/t_simloadutils.h	Tue Feb 02 01:47:50 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-// Copyright (c) 2007-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:
-//
-
-/**
- @file
- @test
- @internalComponent
-*/
-
-#ifndef __T_SIM_LOAD_UTILS_H__
-#define __T_SIM_LOAD_UTILS_H__
-
-class CTSimLoadAppUtils
-	{
-public:
-	/**
-	* Read in sim load type parameter from configuration file
-	* created by test step, and indicate whether the type is
-	* spiked.
-	*
-	* @return   ETrue if spiked load required, or EFalse otherwise
-	* @leave	System error code.
-	*/
-	IMPORT_C static TBool SpikedLoadL();
-
-	/**
-	* Read in sim load type parameter from configuration file
-	* created by test step, and indicate whether the type is
-	* static.
-	*
-	* @return   ETrue if static load required, or EFalse otherwise
-	* @leave	System error code.
-	*/
-	IMPORT_C static TBool StaticLoadL();
-
-	/**
-	* Read in the simload (as a percentage) config parameter from 
-	* configuration file created by test step.
-	*
-	* @return	The simulated load that the app (in
-	*			combination with 2 other apps) is to achieve.
-	* @leave	System error code.
-	*/
-	IMPORT_C static TInt SimLoadL();
-
-	/**
-	* Given a load percentage, and seed value for delay, create a load that when
-	* combined with 2 other sim load apps produce the load percentage passed in.
-	*
-	* @param	aLoadPercentage The simulated load that the app (in
-	*			combination with 2 other apps) is to achieve.
-	* @param    aDelay Seed value which harmonises the load pattern.
-	* @leave	System wide error code
-	*/
-	IMPORT_C static void SimulateStaticLoadL(const TInt& aLoadPercentage, const TInt& aDelay);
-
-	/**
-	* Simulates a spiked load, e.g. 100% load for short period of time, at regular
-	* spaced intervals, to simulate the load produced when for example a phone
-	* call is received.
-	*/
-	IMPORT_C static void SimulateSpikedLoad();
-	
-private:
-	CTSimLoadAppUtils() {}
-	static void SimulateTestLoad(const TInt&, const TInt&);
-	static TInt CalculateSimLoadL(const TInt&);
-	};
-
-#endif // __T_SIM_LOAD_UTILS_H__
-