diff -r 000000000000 -r 15bf7259bb7c uiacceltk/hitchcock/tsrc/alfperfapp/inc/alfperfappframeworktestcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiacceltk/hitchcock/tsrc/alfperfapp/inc/alfperfappframeworktestcase.h Tue Feb 02 07:56:43 2010 +0200 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: alfperfapp framework test case class definition. +* +*/ + + +#ifndef C_ALFPERFAPPFRAMEWORKTESTCASE_H +#define C_ALFPERFAPPFRAMEWORKTESTCASE_H + +#include +#include "alfperfapptestcase.h" + +/** + * CAlfPerfAppFrameworkTestCase class. + * This is not truly a performance test case - this is meant + * to be used to test the framework. + */ +class CAlfPerfAppFrameworkTestCase : public CAlfPerfAppTestCase + { +public: + /** + * Returns ETrue if test case is supported. + * @param aCaseId test case id. + * @return ETrue if supported. + */ + static TBool IsSupported( TInt aCaseId ); + + static CAlfPerfAppFrameworkTestCase* NewL( TInt aCaseId, TInt aSequenceIndex ); + ~CAlfPerfAppFrameworkTestCase(); + + // From base class CAlfPerfAppTestCase: + virtual void SetupL( + CAlfEnv& aEnv, + const TRect& aVisibleArea, + TRequestStatus& aStatus ); + virtual void ExecuteL( TRequestStatus& aStatus ); + virtual void TearDown(); + virtual void HandleVisibleAreaChange( const TRect& aRect ); + virtual TInt CaseID(); + +private: + + CAlfPerfAppFrameworkTestCase( TInt aCaseId, TInt aSequenceIndex ); + void ConstructL(); + +private: + /** + * Test case of which execution this instance was created. + */ + TInt iCaseId; + + /** + * Alf environment. + * Now owned. + */ + CAlfEnv* iEnv; + + }; + +#endif // C_ALFPERFAPPIMAGETESTCASE_H +