First public contribution.
1 // Copyright (c) 2002-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.
16 #ifndef __T_PROPERTY_H__
17 #define __T_PROPERTY_H__
19 #include "t_framework.h"
21 class CPropDefine : public CTestProgram
24 CPropDefine(TUid aCategory, TUint aKey, RProperty::TType aType);
25 void Run(TUint aCount);
30 RProperty::TType iType;
33 class CPropDelete : public CTestProgram
36 CPropDelete(TUid aCategory, TUint aKey, RProperty::TType aType);
37 void Run(TUint aCount);
42 RProperty::TType iType;
45 class CPropPanic : public CTestProgram
48 CPropPanic(TUid aCategory, TUint aKey);
49 void Run(TUint aCount);
51 static TInt DoubleSubscribeThreadEntry(TAny* ptr);
52 static TInt BadHandleSubscribeThreadEntry(TAny* ptr);
53 static TInt BadHandleCancelThreadEntry(TAny* ptr);
54 static TInt BadHandleGetIThreadEntry(TAny* ptr);
55 static TInt BadHandleGetBThreadEntry(TAny* ptr);
56 static TInt BadHandleSetIThreadEntry(TAny* ptr);
57 static TInt BadHandleSetBThreadEntry(TAny* ptr);
59 static TThreadFunction BadHandles[];
66 class CPropSetGet : public CTestProgram
69 CPropSetGet(TUid aCategory, TUint aKey, RProperty::TType aType);
70 void Run(TUint aCount);
75 RProperty::TType iType;
78 class CPropSubsCancel : public CTestProgram
81 CPropSubsCancel(TUid aCategory, TUint aKey, RProperty::TType aType);
82 void Run(TUint aCount);
87 RProperty::TType iType;
90 class CPropSecurity : public CTestProgram
93 CPropSecurity(TUid aCategory, TUint aMasterKey, RProperty::TType aType, TUint aSlaveKeySlot);
94 void Run(TUint aCount);
108 RProperty::TType iType;
111 class CPropSetGetRace : public CTestProgram
114 CPropSetGetRace(TUid aCategory, TUint aKey);
115 void Run(TUint aCount);
117 static TInt TrublemakerThreadEntry(TAny* ptr);
118 void Trublemaker(TDes8& aBuf);
123 TBuf8<RProperty::KMaxPropertySize> iBuf1;
124 TBuf8<RProperty::KMaxPropertySize> iBuf2;
127 class CPropCancelRace : public CTestProgram
130 CPropCancelRace(TUid aCategory, TUint aKey);
131 void Run(TUint aCount);
133 static TInt TrublemakerThreadEntry(TAny* ptr);
142 class CPropBroadcast : public CTestProgram
145 CPropBroadcast(TUid aCategory, TUint aMasterKey, TUint aSlaveKeySlot, TUint aSlaveCount, TUint aFirstHighPriority);
146 void Run(TUint aCount);
149 class CPropBroadcastSlave* iSlaveList;
155 TUint iFirstHighPriority;
158 class CPropLddClient : public CTestProgram
161 CPropLddClient(TUid aCategory, TUint aKey, RProperty::TType iType);
162 void Run(TUint aCount);
168 RProperty::TType iType;
172 static _LIT_SECURITY_POLICY_PASS(KPassPolicy);
173 static _LIT_SECURITY_POLICY_FAIL(KFailPolicy);