os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h
Update contrib.
1 // Copyright (c) 2009-2010 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 #ifndef TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H
16 #define TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H
19 #include <sgresource/sgresource.h>
20 #include <sgresource/sgimage.h>
21 #include "tgraphicsresourceinternalextensions.h"
22 #include "tgraphicsresourceinternalsecondprocessenums.h"
25 Runs individual tests within the second process for the Graphics Resource
28 class CTSgResInternalSecondProcessTestHandler : public CBase
31 static CTSgResInternalSecondProcessTestHandler* NewLC();
32 TInt RunTestCaseL(const TSgResIntTestInfo& aInfo);
36 CTSgResInternalSecondProcessTestHandler();
37 ~CTSgResInternalSecondProcessTestHandler();
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(const TSgResIntTestInfo& aInfo);
50 void TestOpenImageL(TSgDrawableId aId);
54 MSgDriver_Test* iTestExt;
55 MSgDriver_Profiling* iProfExt;
58 #endif // TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H