egl/egltest/endpointtestsuite/automated/tinc/egltest_endpointimage.h
changeset 98 bf7481649c98
equal deleted inserted replaced
85:cdf2f6e5c390 98:bf7481649c98
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __EGLTEST_ENDPOINTIMAGE_H__
       
    23 #define __EGLTEST_ENDPOINTIMAGE_H__
       
    24 
       
    25 #include "egltest_endpoint_engine.h"
       
    26 
       
    27 _LIT(KResultProcessQueueName, "ProcessTestEnvResultQueue");
       
    28 _LIT(KParamsProcessQueueName, "ProcessTestEnvParamsQueue");
       
    29 
       
    30 
       
    31 enum TEndpointLifetimeExit
       
    32     {
       
    33     EEndpointLifetimeNormalExit,
       
    34     EEnfpointLifetimePanicExit,
       
    35     };
       
    36 
       
    37 _LIT(KEGL_EndpointImage, "EGL_EndpointImage");
       
    38 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImage) : public CEgltest_Local_Engine
       
    39     {
       
    40 public:
       
    41     CEglTest_LocalTestStep_EndpointImage();
       
    42     };
       
    43 
       
    44 _LIT(KEGL_EndpointImageLifetime, "EGL_EndpointImageLifetime");
       
    45 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetime): public CLocalTestStepBase
       
    46     {
       
    47 public:
       
    48     CEglTest_LocalTestStep_EndpointImageLifetime();
       
    49     ~CEglTest_LocalTestStep_EndpointImageLifetime();
       
    50     virtual TVerdict doTestStepL();
       
    51     virtual void DoPreambleL();
       
    52     virtual void DoPostambleL();
       
    53 private:
       
    54     void RunScript(const TEngineTestCase *aTestCases, TRemoteTestParams &params);
       
    55     void EndpointLifetimeTestL(TSurfaceType aSurfaceType, TInt aExitType);
       
    56 
       
    57 private:
       
    58     struct TProcessStatus
       
    59         {
       
    60         RProcess        iProcess;
       
    61         TRequestStatus  iStatus;
       
    62         } iProcessStatus;
       
    63 
       
    64     RMsgQueue<TInt> iProcessResultInQueue;
       
    65     RMsgQueue<TSurfaceId> iProcessParamsOutQueue;
       
    66     };
       
    67 
       
    68 _LIT(KEGL_EndpointImageLifetimeProcess, "EGL_EndpointImageLifetimeProcess");
       
    69 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetimeProcess): public CTestStep //CTTMSGraphicsStep
       
    70     {
       
    71 public:
       
    72     CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
       
    73     virtual ~CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
       
    74     virtual TVerdict doTestStepL();
       
    75     virtual TVerdict doTestStepPreambleL();
       
    76     virtual TVerdict doTestStepPostambleL();
       
    77     static void MainL();
       
    78 
       
    79 private:
       
    80     RMsgQueue<TInt> iResultOutQueue;
       
    81     RMsgQueue<TSurfaceId> iParamsInQueue;
       
    82     };
       
    83 
       
    84 #endif  // __EGLTEST_ENDPOINTIMAGE_H__