windowing/windowserver/tauto/TPROCPRI.H
author emilio@symbian.org
Thu, 13 May 2010 15:11:54 +0100
branchNewGraphicsArchitecture
changeset 63 2df4c99bf614
parent 0 5d03bc08d59c
permissions -rw-r--r--
Changes to fix the TimeZone Server Crash

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

#ifndef __TPROCPRI_H__
#define __TPROCPRI_H__

#include "AUTO.H"
#include "TGraphicsHarness.h"
#include "../tlib/testbase.h"
#include <e32std.h>
#include <w32std.h>

#define OTHER_PROC_GROUP_NAME _L("OtherProcGroupWindow")
#define PROC_PRI_SEMAPHORE_NAME1 _L("abcerProcSem1")
#define PROC_PRI_SEMAPHORE_NAME2 _L("OtherProcSem2")

class CTProcPri : public CTWsGraphicsBase
	{
private:
	enum
		{
		ECreatedSem1=0x0001,
		ECreatedSem2=0x0002,
		};
public:
	CTProcPri(CTestStep* aStep);
	~CTProcPri();
	void ConstructL();
	void TestPriChangeL();
protected:
//from 	CTGraphicsStep
	virtual void RunTestCaseL(TInt aCurTestCase);
private:
	TSize iWinSize;
	RSemaphore iSem1;
	RSemaphore iSem2;
	TUint iFlags;
	CProcess* iProcess;
	};


class CTProcPriStep : public CTGraphicsStep
	{
public:
	CTProcPriStep();
protected:	
	//from CTGraphicsStep
	virtual CTGraphicsBase* CreateTestL();
	};

_LIT(KTProcPriStep,"TProcPri");


#endif