sl@0: // Copyright (c) 2009 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 TGRAPHICSRESOURCEINTERNALTESTSTEPBASE_H sl@0: #define TGRAPHICSRESOURCEINTERNALTESTSTEPBASE_H sl@0: sl@0: #include sl@0: #include sl@0: #include "tgraphicsresourcemultiprocessthread.h" sl@0: #include "tgraphicsresourceinternalsecondprocessenums.h" sl@0: sl@0: /** sl@0: Base Class for the Graphics Resource internal tests; contains helper functions sl@0: for creating second processes and retrieving test results or checking panics. sl@0: */ sl@0: class CTGraphicsResourceInternalBase : public CTTMSGraphicsStep sl@0: { sl@0: public: sl@0: CTGraphicsResourceInternalBase(); sl@0: ~CTGraphicsResourceInternalBase(); sl@0: sl@0: inline void testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine); sl@0: inline void testBooleanTrueWithErrorCode(TBool aCondition, TInt aErrorCode, const TText8* aFile, TInt aLine); sl@0: sl@0: TInt CreateSecondProcessAndDoTestL(const TDesC &aProcessName, TSgResIntTestInfo& aTestInfo); sl@0: void CreateSecondProcessAndCheckAllocPanicL(const TDesC &aProcessName, TSgResIntTestInfo& aTestInfo, const TDesC &aAllocType); sl@0: }; sl@0: sl@0: inline void CTGraphicsResourceInternalBase::testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine) sl@0: { sl@0: MQCTest(aCondition, aFile, aLine); sl@0: } sl@0: sl@0: inline void CTGraphicsResourceInternalBase::testBooleanTrueWithErrorCode(TBool aCondition, TInt aErrorCode, const TText8* aFile, TInt aLine) sl@0: { sl@0: MQCTestWithErrorCode(aCondition, aErrorCode, aFile, aLine); sl@0: } sl@0: sl@0: #endif // TGRAPHICSRESOURCEINTERNALTESTSTEPBASE_H