os/graphics/egl/egltest/endpointtestsuite/automated/tsrc/egltest_releaseimagegles_local.cpp
Update contrib.
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 @internalComponent - Internal Symbian test code
26 #include "egltest_releaseimagegles.h"
29 //This test case acquires an image from an endpoint then attempts to
30 //release the image, passing in EGL_OPENGL_ES_API as the API flag.
31 //There are two configurations for the test, that is controlled by
32 //a flag in aParams. The options are to have a valid GLES context
33 //set current, or to have nothing current.
36 CEglTest_LocalTestStep_EndpointReleaseImageGles::CEglTest_LocalTestStep_EndpointReleaseImageGles() :
37 CLocalTestStepBase(ETestUidEndpointReleaseImageGles)
42 CEglTest_LocalTestStep_EndpointReleaseImageGles::~CEglTest_LocalTestStep_EndpointReleaseImageGles()
47 void CEglTest_LocalTestStep_EndpointReleaseImageGles::DoPreambleL()
49 //Register the test id.
51 RegisterTestIdsL(KTestId);
52 SetCurrentTestIds(KTestId);
56 void CEglTest_LocalTestStep_EndpointReleaseImageGles::DoPostambleL()
61 TVerdict CEglTest_LocalTestStep_EndpointReleaseImageGles::doTestStepL()
63 TRemoteTestParams params;
64 StartRemoteTestStep(TRemoteTestParams());
66 //Valid GLES context test.
67 params.iEndpointReleaseImageGles.iUseValidGlesContext = ETrue;
68 RunRemoteTestCase(0, params);
70 //Invalid GLES context test.
71 params.iEndpointReleaseImageGles.iUseValidGlesContext = EFalse;
72 RunRemoteTestCase(0, params);
74 EndRemoteTestStep(TRemoteTestParams());
75 return TestStepResult();