egl/egltest/endpointtestsuite/automated/tinc/egltest_releaseimagegles.h
changeset 136 62bb7c97884c
equal deleted inserted replaced
121:d72fc2aace31 136:62bb7c97884c
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @test
       
    22  @internalComponent - Internal Symbian test code
       
    23 */
       
    24 
       
    25 
       
    26 #ifndef __EGLTEST_RELEASEIMAGEGLES_H__
       
    27 #define __EGLTEST_RELEASEIMAGEGLES_H__
       
    28 
       
    29 
       
    30 #include "localtestbase.h"
       
    31 #include "remotetestbase.h"
       
    32 
       
    33 
       
    34 _LIT(KEGL_EndpointReleaseImageGles, "EGL_EndpointReleaseImageGles");
       
    35 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointReleaseImageGles) : public CLocalTestStepBase
       
    36     {
       
    37 public:
       
    38 CEglTest_LocalTestStep_EndpointReleaseImageGles();
       
    39     ~CEglTest_LocalTestStep_EndpointReleaseImageGles();
       
    40     void DoPreambleL();
       
    41     void DoPostambleL();
       
    42     TVerdict doTestStepL();
       
    43     };
       
    44 
       
    45 
       
    46 NONSHARABLE_CLASS(CEglTest_RemoteTestStep_EndpointReleaseImageGles) : public CRemoteTestStepBase
       
    47     {
       
    48 public:
       
    49     CEglTest_RemoteTestStep_EndpointReleaseImageGles();
       
    50     ~CEglTest_RemoteTestStep_EndpointReleaseImageGles();
       
    51     
       
    52     virtual TRemoteTestVerdict DoRunRemoteTestCaseL(TInt aTestCase, const TRemoteTestParams& aParams);
       
    53     virtual TRemoteTestVerdict DoStartRemoteTestStepL(const TRemoteTestParams& aMessageIn);
       
    54     virtual TRemoteTestVerdict DoEndRemoteTestStepL(const TRemoteTestParams& aMessageIn);
       
    55     
       
    56 private:
       
    57     TRemoteTestVerdict GlesContextTestCaseL(const TRemoteTestParams& aParams);
       
    58     TRemoteTestVerdict DoGlesContextTestCaseL(const TRemoteTestParams& aParams);
       
    59     
       
    60 private:
       
    61     EGLDisplay iDisplay;
       
    62     CSurface* iSurface;
       
    63     EGLEndpointNOK iEndpoint;
       
    64     };
       
    65 
       
    66 
       
    67 #endif