commsfwutils/commsbufs/TE_mbufmgr/inc/test20poolceilingfull.h
author hgs
Mon, 06 Sep 2010 13:49:23 +0100
changeset 72 ae47d0499bee
parent 0 commsfwutils/commsbufs/TS_mbufmgr/test20poolceilingfull.h@dfb7c4ff071f
permissions -rw-r--r--
201033_02

/*
* 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 __TEST20POOLCEILINGFULL_H__
#define __TEST20POOLCEILINGFULL_H__

#include <cflog.h>
#include <es_mbuf.h>

NONSHARABLE_CLASS(CTest20PoolCeilingFull) : public CTestStepCTMbufmgr
	{
	public:
	CTest20PoolCeilingFull();
	~CTest20PoolCeilingFull();
	virtual enum TVerdict doTestStepL( void );
	RCommsBufPond& BufPond(); 

	RMBufChain iChain;
	};

NONSHARABLE_CLASS(CMBufAsyncPoolCeilingFull) : public CActive
	{
	public:
	CMBufAsyncPoolCeilingFull(CTest20PoolCeilingFull& aTestObject);

	~CMBufAsyncPoolCeilingFull();

	void RunL();

	void DoCancel();

	TInt DoStartTest();
	
	private:
	void CompleteSelf();
	static TInt fThread1(TAny*); //High priority thread in this test
	static TInt fThread2(TAny*); //High priority thread in this test
	static TInt fThread3(TAny*); //High priority thread in this test

	CTest20PoolCeilingFull& iTestObject;

	RThread iThread1;
	RThread iThread2;
	RThread iThread3;
	TInt iIteration;
	TInt iError;
	
	RMBufAsyncRequest 	iAsyncRequest;
	RMBufChain			iAsyncChain;
	};

#endif // __TEST20POOLCEILINGFULL_H__