Update contrib.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\heap\d_kheap.h
22 #ifndef __KERNEL_MODE__
26 _LIT(KHeapTestDriverName,"d_kheap");
27 const TUint KHeapFailCycles = 10;
29 class RKHeapDevice : public RBusLogicalChannel
34 ESetThreadPriorityHigh,
38 ETestBurstDeterministic,
42 #ifndef __KERNEL_MODE__
44 {return DoCreate(KHeapTestDriverName,TVersion(1,0,0),KNullUnit,NULL,NULL);}
45 TInt SetThreadPriorityHigh()
46 {return DoControl(ESetThreadPriorityHigh);}
47 TInt CreateSharedChunk()
48 {return DoControl(ECreateSharedChunk);}
51 {return DoControl(ECreatHwChunk);}
54 TInt TestBurstFailNext(TUint aControl, TUint aBurst)
55 {return DoControl(ETestBurstFailNext, (TAny*)aControl, (TAny*)aBurst);}
57 TInt TestBurstDeterministic(TUint aRate, TUint aBurst)
58 {return DoControl(ETestBurstDeterministic, (TAny*)aRate, (TAny*)aBurst);}
59 #endif //__KERNEL_MODE__
61 #endif //__D_KHEAP_H__