|
1 // Copyright (c) 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 #ifndef TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H |
|
16 #define TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H |
|
17 |
|
18 #include <e32base.h> |
|
19 #include <sgresource/sgresource.h> |
|
20 #include <sgresource/sgimage.h> |
|
21 #include "tgraphicsresourceinternalextensions.h" |
|
22 #include "tgraphicsresourceinternalsecondprocessenums.h" |
|
23 |
|
24 /** |
|
25 Runs individual tests within the second process for the Graphics Resource |
|
26 internal tests. |
|
27 */ |
|
28 class CTSgResInternalSecondProcessTestHandler : public CBase |
|
29 { |
|
30 public: |
|
31 static CTSgResInternalSecondProcessTestHandler* NewLC(); |
|
32 TInt RunTestCaseL(TInt aTestCase, TSgResIntTestInfo& aInfo); |
|
33 void OpenDriverL(); |
|
34 |
|
35 private: |
|
36 CTSgResInternalSecondProcessTestHandler(); |
|
37 ~CTSgResInternalSecondProcessTestHandler(); |
|
38 |
|
39 //Test functions that initialise the second process to run their tests. |
|
40 void TestDriverMemoryLeakL(); |
|
41 void TestDriverShutdownMemoryLeakL(); |
|
42 TInt TestDrawableOOM(); |
|
43 TInt TestImageOOM(const TSgResIntTestInfo& aInfo); |
|
44 void DoImageMemoryTestsL(const TSgResIntTestInfo& aInfo); |
|
45 void DoDrawableMemoryTestsL(); |
|
46 TInt TestDriverInitializeAndShutdownL(); |
|
47 TInt TestDriverInitializeAndShutdownManyTimes(); |
|
48 TInt TestResourceProfiling(TSgResIntTestInfo& aInfo); |
|
49 |
|
50 void TestOpenImageL(TSgDrawableId aId); |
|
51 |
|
52 private: |
|
53 RSgDriver iSgDriver; |
|
54 MSgDriver_Test* iTestExt; |
|
55 MSgDriver_Profiling* iProfExt; |
|
56 }; |
|
57 |
|
58 #endif // TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H |