sl@0: // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: #ifndef TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H sl@0: #define TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include "tgraphicsresourceinternalextensions.h" sl@0: #include "tgraphicsresourceinternalsecondprocessenums.h" sl@0: sl@0: /** sl@0: Runs individual tests within the second process for the Graphics Resource sl@0: internal tests. sl@0: */ sl@0: class CTSgResInternalSecondProcessTestHandler : public CBase sl@0: { sl@0: public: sl@0: static CTSgResInternalSecondProcessTestHandler* NewLC(); sl@0: TInt RunTestCaseL(const TSgResIntTestInfo& aInfo); sl@0: void OpenDriverL(); sl@0: sl@0: private: sl@0: CTSgResInternalSecondProcessTestHandler(); sl@0: ~CTSgResInternalSecondProcessTestHandler(); sl@0: sl@0: //Test functions that initialise the second process to run their tests. sl@0: void TestDriverMemoryLeakL(); sl@0: void TestDriverShutdownMemoryLeakL(); sl@0: TInt TestDrawableOOM(); sl@0: TInt TestImageOOM(const TSgResIntTestInfo& aInfo); sl@0: void DoImageMemoryTestsL(const TSgResIntTestInfo& aInfo); sl@0: void DoDrawableMemoryTestsL(); sl@0: TInt TestDriverInitializeAndShutdownL(); sl@0: TInt TestDriverInitializeAndShutdownManyTimes(); sl@0: TInt TestResourceProfiling(const TSgResIntTestInfo& aInfo); sl@0: sl@0: void TestOpenImageL(TSgDrawableId aId); sl@0: sl@0: private: sl@0: RSgDriver iSgDriver; sl@0: MSgDriver_Test* iTestExt; sl@0: MSgDriver_Profiling* iProfExt; sl@0: }; sl@0: sl@0: #endif // TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H