1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/egl/egltest/endpointtestsuite/automated/tinc/egltest_endpointimage.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,84 @@
1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @test
1.22 + @internalComponent - Internal Symbian test code
1.23 +*/
1.24 +
1.25 +#ifndef __EGLTEST_ENDPOINTIMAGE_H__
1.26 +#define __EGLTEST_ENDPOINTIMAGE_H__
1.27 +
1.28 +#include "egltest_endpoint_engine.h"
1.29 +
1.30 +_LIT(KResultProcessQueueName, "ProcessTestEnvResultQueue");
1.31 +_LIT(KParamsProcessQueueName, "ProcessTestEnvParamsQueue");
1.32 +
1.33 +
1.34 +enum TEndpointLifetimeExit
1.35 + {
1.36 + EEndpointLifetimeNormalExit,
1.37 + EEnfpointLifetimePanicExit,
1.38 + };
1.39 +
1.40 +_LIT(KEGL_EndpointImage, "EGL_EndpointImage");
1.41 +NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImage) : public CEgltest_Local_Engine
1.42 + {
1.43 +public:
1.44 + CEglTest_LocalTestStep_EndpointImage();
1.45 + };
1.46 +
1.47 +_LIT(KEGL_EndpointImageLifetime, "EGL_EndpointImageLifetime");
1.48 +NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetime): public CLocalTestStepBase
1.49 + {
1.50 +public:
1.51 + CEglTest_LocalTestStep_EndpointImageLifetime();
1.52 + ~CEglTest_LocalTestStep_EndpointImageLifetime();
1.53 + virtual TVerdict doTestStepL();
1.54 + virtual void DoPreambleL();
1.55 + virtual void DoPostambleL();
1.56 +private:
1.57 + void RunScript(const TEngineTestCase *aTestCases, TRemoteTestParams ¶ms);
1.58 + void EndpointLifetimeTestL(TSurfaceType aSurfaceType, TInt aExitType);
1.59 +
1.60 +private:
1.61 + struct TProcessStatus
1.62 + {
1.63 + RProcess iProcess;
1.64 + TRequestStatus iStatus;
1.65 + } iProcessStatus;
1.66 +
1.67 + RMsgQueue<TInt> iProcessResultInQueue;
1.68 + RMsgQueue<TSurfaceId> iProcessParamsOutQueue;
1.69 + };
1.70 +
1.71 +_LIT(KEGL_EndpointImageLifetimeProcess, "EGL_EndpointImageLifetimeProcess");
1.72 +NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetimeProcess): public CTestStep //CTTMSGraphicsStep
1.73 + {
1.74 +public:
1.75 + CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
1.76 + virtual ~CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
1.77 + virtual TVerdict doTestStepL();
1.78 + virtual TVerdict doTestStepPreambleL();
1.79 + virtual TVerdict doTestStepPostambleL();
1.80 + static void MainL();
1.81 +
1.82 +private:
1.83 + RMsgQueue<TInt> iResultOutQueue;
1.84 + RMsgQueue<TSurfaceId> iParamsInQueue;
1.85 + };
1.86 +
1.87 +#endif // __EGLTEST_ENDPOINTIMAGE_H__