sysstatemgmt/systemstatemgr/test/tsus/inc/tsus_step_adaptionserver.h
author Tapani Kanerva <Tapani.Kanerva@nice.fi>
Thu, 11 Nov 2010 14:35:29 +0000
branchRCL_3
changeset 86 79105dd92dc2
parent 3 a811597961f0
permissions -rw-r--r--
Export meaningful default HWRM policy files, to fix Bug 3852

// Copyright (c) 2009-2010 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 - Internal test code 
*/
 

#ifndef __TSUS_STEP_ADAPTIONSERVER_H__
#define __TSUS_STEP_ADAPTIONSERVER_H__


#include <test/testexecutestepbase.h>
#include "ssmadaptationcli.h"


_LIT(KTSusAdaptionServerStep,"SusAdaptionServerStep");

class RTestSusAdaptationCli : public RSsmEmergencyCallRfAdaptation
    {
public:
#ifdef TEST_SSM_SERVER
    TInt Connect(const TDesC& aServerName);
#endif 
    TInt SetHeapFailure(TInt aFailureRate);
    TInt UnSetHeapFailure();
    TInt SetHeapMark();
    TInt UnSetHeapMark();
    
    };

class CSusAdaptionServerTest : public CTestStep
	{
public:
	CSusAdaptionServerTest ();
	~CSusAdaptionServerTest ();

	//from CTestStep
	TVerdict doTestStepPreambleL();
	TVerdict doTestStepL();
	TVerdict doTestStepPostambleL();
	
private:
	void doTestForMemoryLeaksL();
	void doTestProcessCriticalL();
	void doTestOOML();	
	void StartAndDestroyServerL();
#ifdef TEST_SSM_SERVER
	void doTestForEmergencyCallOOM();
	void doTestForSettingPriorityClient();
	void doTestForNormalEmergencyCallinOOM();
	void doTestForMultipleClientinOOMcondition();
	void doTestForEmergencyCallOOMIterative();
#endif
	};

#endif