|
1 // Copyright (c) 1997-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 #ifndef __TRALC_H__ |
|
17 #define __TRALC_H__ |
|
18 |
|
19 #include <fbs.h> |
|
20 #include "TGraphicsHarness.h" |
|
21 |
|
22 class CTRalc : public CTGraphicsBase |
|
23 { |
|
24 public: |
|
25 CTRalc(CTestStep* aStep); |
|
26 ~CTRalc(); |
|
27 protected: |
|
28 //from CTGraphicsStep |
|
29 virtual void RunTestCaseL(TInt aCurTestCase); |
|
30 void ConstructL(); |
|
31 |
|
32 void ExpandCleanupStackL(); |
|
33 |
|
34 void TestRALCEntryClass(); |
|
35 void TestRALCCacheClass(); |
|
36 void TestOOMCondition(); |
|
37 |
|
38 void MeasurePerformanceWith2(); |
|
39 void MeasurePerformanceWith2Long(); |
|
40 void MeasurePerformanceWith5(); |
|
41 void MeasurePerformanceWith23Mix(); |
|
42 private: |
|
43 TInt iHandle; |
|
44 RFbsSession* iFbs; |
|
45 TInt iResourceCount; |
|
46 TInt iAllocs; |
|
47 TBool iShutdownFbs; |
|
48 TFileName iTestBitmapName; |
|
49 }; |
|
50 |
|
51 class CTRalcStep : public CTGraphicsStep |
|
52 { |
|
53 public: |
|
54 CTRalcStep(); |
|
55 protected: |
|
56 //from CTGraphicsStep |
|
57 virtual CTGraphicsBase* CreateTestL(); |
|
58 virtual void TestSetupL(); |
|
59 virtual void TestClose(); |
|
60 private: |
|
61 TInt iStartProcessHandleCount; |
|
62 TInt iStartThreadHandleCount; |
|
63 TInt iEndProcessHandleCount; |
|
64 TInt iEndThreadHandleCount; |
|
65 |
|
66 RThread iThread; |
|
67 }; |
|
68 |
|
69 _LIT(KTRalcStep,"TRalc"); |
|
70 |
|
71 |
|
72 #endif |