Update contrib.
1 // Copyright (c) 2005-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\nkern\d_crazyints.h
17 #ifndef __CRAZYINTS_H__
18 #define __CRAZYINTS_H__
23 const TInt KIntTestThreadPriority = 24;
25 const TInt KIntTestMajorVersionNumber = 1;
26 const TInt KIntTestMinorVersionNumber = 0;
27 const TInt KIntTestBuildVersionNumber = KE32BuildVersionNumber;
29 const TInt KNumOfTimes = 100; // number of times we kick off the time
30 const TInt KTimerWaitValue = 3; //number of timer ticks we use to set the timer..
32 class RBusIntTestClient: public RBusLogicalChannel
40 #ifndef __KERNEL_MODE__
42 TInt Open(TDesC& aProxyName)
43 {return (DoCreate(aProxyName,TVersion(KIntTestMajorVersionNumber,KIntTestMinorVersionNumber,KIntTestBuildVersionNumber),-1,NULL,NULL,EOwnerThread));}
47 {return DoControl(ETestCrazyInts, NULL);}
53 #ifdef __KERNEL_MODE__
54 struct TCapsProxyClient
59 class DDeviceIntsTest: public DLogicalDevice
64 virtual TInt Install();
65 virtual void GetCaps(TDes8 &aDes) const;
66 virtual TInt Create(DLogicalChannelBase*& aChannel);
69 // declaration for the client channel
70 class DChannIntsTest: public DLogicalChannel
75 virtual TInt DoCreate(TInt aUnit, const TDesC8* aInfo, const TVersion& aVer);
76 static void Handler(TAny *aParam);
80 virtual void HandleMsg(TMessageBase* aMsg); // Note: this is a pure virtual in DLogicalChannel
82 TInt DoControl(TInt aId, TAny* a1, TAny* a2);
83 TInt DoRequest(TInt aId, TRequestStatus* aStatus, TAny* a1, TAny* a2);
88 TBool CrazyInterruptsEnabled();
94 TDynamicDfcQue* iDfcQue; // Kernel thread for the test driver
99 #endif /* __KERNEL_MODE__ */
101 #endif /* __CRAZYINTS_H__ */