First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
22 #ifndef __EGLTEST_ENDPOINTIMAGE_H__
23 #define __EGLTEST_ENDPOINTIMAGE_H__
25 #include "egltest_endpoint_engine.h"
27 _LIT(KResultProcessQueueName, "ProcessTestEnvResultQueue");
28 _LIT(KParamsProcessQueueName, "ProcessTestEnvParamsQueue");
31 enum TEndpointLifetimeExit
33 EEndpointLifetimeNormalExit,
34 EEnfpointLifetimePanicExit,
37 _LIT(KEGL_EndpointImage, "EGL_EndpointImage");
38 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImage) : public CEgltest_Local_Engine
41 CEglTest_LocalTestStep_EndpointImage();
44 _LIT(KEGL_EndpointImageLifetime, "EGL_EndpointImageLifetime");
45 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetime): public CLocalTestStepBase
48 CEglTest_LocalTestStep_EndpointImageLifetime();
49 ~CEglTest_LocalTestStep_EndpointImageLifetime();
50 virtual TVerdict doTestStepL();
51 virtual void DoPreambleL();
52 virtual void DoPostambleL();
54 void RunScript(const TEngineTestCase *aTestCases, TRemoteTestParams ¶ms);
55 void EndpointLifetimeTestL(TSurfaceType aSurfaceType, TInt aExitType);
61 TRequestStatus iStatus;
64 RMsgQueue<TInt> iProcessResultInQueue;
65 RMsgQueue<TSurfaceId> iProcessParamsOutQueue;
68 _LIT(KEGL_EndpointImageLifetimeProcess, "EGL_EndpointImageLifetimeProcess");
69 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetimeProcess): public CTestStep //CTTMSGraphicsStep
72 CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
73 virtual ~CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
74 virtual TVerdict doTestStepL();
75 virtual TVerdict doTestStepPreambleL();
76 virtual TVerdict doTestStepPostambleL();
80 RMsgQueue<TInt> iResultOutQueue;
81 RMsgQueue<TSurfaceId> iParamsInQueue;
84 #endif // __EGLTEST_ENDPOINTIMAGE_H__