equal
deleted
inserted
replaced
|
1 // Copyright (c) 1996-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 "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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __TPROCPRI_H__ |
|
23 #define __TPROCPRI_H__ |
|
24 |
|
25 #include "AUTO.H" |
|
26 #include "TGraphicsHarness.h" |
|
27 #include "../tlib/testbase.h" |
|
28 #include <e32std.h> |
|
29 #include <w32std.h> |
|
30 |
|
31 #define OTHER_PROC_GROUP_NAME _L("OtherProcGroupWindow") |
|
32 #define PROC_PRI_SEMAPHORE_NAME1 _L("abcerProcSem1") |
|
33 #define PROC_PRI_SEMAPHORE_NAME2 _L("OtherProcSem2") |
|
34 |
|
35 class CTProcPri : public CTWsGraphicsBase |
|
36 { |
|
37 private: |
|
38 enum |
|
39 { |
|
40 ECreatedSem1=0x0001, |
|
41 ECreatedSem2=0x0002, |
|
42 }; |
|
43 public: |
|
44 CTProcPri(CTestStep* aStep); |
|
45 ~CTProcPri(); |
|
46 void ConstructL(); |
|
47 void TestPriChangeL(); |
|
48 protected: |
|
49 //from CTGraphicsStep |
|
50 virtual void RunTestCaseL(TInt aCurTestCase); |
|
51 private: |
|
52 TSize iWinSize; |
|
53 RSemaphore iSem1; |
|
54 RSemaphore iSem2; |
|
55 TUint iFlags; |
|
56 CProcess* iProcess; |
|
57 }; |
|
58 |
|
59 |
|
60 class CTProcPriStep : public CTGraphicsStep |
|
61 { |
|
62 public: |
|
63 CTProcPriStep(); |
|
64 protected: |
|
65 //from CTGraphicsStep |
|
66 virtual CTGraphicsBase* CreateTestL(); |
|
67 }; |
|
68 |
|
69 _LIT(KTProcPriStep,"TProcPri"); |
|
70 |
|
71 |
|
72 #endif |