os/graphics/egl/egltest/endpointtestsuite/automated/tsrc/egltest_endpointattrib_local.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/egl/egltest/endpointtestsuite/automated/tsrc/egltest_endpointattrib_local.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,331 @@
     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 +
    1.17 +/**
    1.18 + @file
    1.19 + @test
    1.20 + @internalComponent - Internal Symbian test code
    1.21 +*/
    1.22 +
    1.23 +#include "egltest_endpointattrib.h"
    1.24 +
    1.25 +const TInt KBadAttribValue = EGL_BAD_ATTRIBUTE;  // Use error code as a "invalid attribute value".
    1.26 +
    1.27 +// For testing flexibility of the concept. Not actually used in the testcode at this point in time.
    1.28 +static const TTestCase KAttribBadParameterCases[] =
    1.29 +{
    1.30 +    {
    1.31 +        TESTIDS("551A"),
    1.32 +        CASETITLE("Functional: Negative: eglGetEndpointAttribNOK with Bad Parameters: bad display is error code when getting attributes"),
    1.33 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
    1.34 +        {
    1.35 +        { EInitializeCase,      0,              EGL_SUCCESS },
    1.36 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
    1.37 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
    1.38 +        { EGetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
    1.39 +        // Use bad endpoint with bad display - should give bad display.
    1.40 +        { EGetAttribCase,       EUseBadEndpoint | EUseBadDisplay,
    1.41 +                EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
    1.42 +        { EGetAttribCase,       EUseBadEndpoint,
    1.43 +                EGL_BAD_ENDPOINT_NOK, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
    1.44 +        { EGetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0 },
    1.45 +        // Use bad endpoint with bad display - should give bad display.
    1.46 +        { EGetAttribCase,       EUseBadEndpoint | EUseBadDisplay,
    1.47 +                EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0},
    1.48 +        { EGetAttribCase,       EUseBadEndpoint,EGL_BAD_ENDPOINT_NOK, 0, 0, EGL_DELAY_NOK, 0},
    1.49 +        { EGetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, KBadAttribValue, 0},
    1.50 +        { EGetAttribCase,       EExpectError,   EGL_BAD_PARAMETER, 0, 0, KBadAttribValue, 0},
    1.51 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
    1.52 +        { ETerminateCase,       0,              EGL_SUCCESS },
    1.53 +        { EFinishedCase }
    1.54 +        },
    1.55 +    },
    1.56 +    {
    1.57 +        TESTIDS("551B"),
    1.58 +        CASETITLE("Functional: Negative: eglGetEndpointAttribNOK with Bad Parameters: bad parameter is error code when requesting invalid attribute"),
    1.59 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
    1.60 +        {
    1.61 +        { EInitializeCase,      0,              EGL_SUCCESS },
    1.62 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
    1.63 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
    1.64 +        // First check that bad display is issued even when the attribute is bad.
    1.65 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
    1.66 +        { ETerminateCase,       0,              EGL_SUCCESS },
    1.67 +        { EFinishedCase }
    1.68 +        },
    1.69 +    },
    1.70 +    // SetEndpointAttrib tests.
    1.71 +    {
    1.72 +        TESTIDS("552A"),
    1.73 +        CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad display is error code when setting endpoint ready"),
    1.74 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
    1.75 +        {
    1.76 +        { EInitializeCase,      0,              EGL_SUCCESS },
    1.77 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
    1.78 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
    1.79 +        { ESetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
    1.80 +        { ESetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
    1.81 +        // Use bad endpoint with bad display - should give bad display.
    1.82 +        { ESetAttribCase,       EUseBadEndpoint | EUseBadDisplay,
    1.83 +                EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
    1.84 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
    1.85 +        { ETerminateCase,       0,              EGL_SUCCESS },
    1.86 +        { EFinishedCase }
    1.87 +        },
    1.88 +    },
    1.89 +    {
    1.90 +        TESTIDS("552B"),
    1.91 +        CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad display is error code when setting endpoint delay"),
    1.92 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
    1.93 +        {
    1.94 +        { EInitializeCase,      0,              EGL_SUCCESS },
    1.95 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
    1.96 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
    1.97 +        { ESetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0 },
    1.98 +        // Use bad endpoint with bad display - should give bad display.
    1.99 +        { ESetAttribCase,       EUseBadEndpoint | EUseBadDisplay,
   1.100 +                EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0},
   1.101 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.102 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.103 +        { EFinishedCase }
   1.104 +        },
   1.105 +    },
   1.106 +    {
   1.107 +        TESTIDS("552C"),
   1.108 +        CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad endpoint is error code when setting endpoint delay"),
   1.109 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.110 +        {
   1.111 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.112 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.113 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.114 +        { ESetAttribCase,       EUseBadEndpoint,EGL_BAD_ENDPOINT_NOK, 0, 0, EGL_DELAY_NOK, 0},
   1.115 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.116 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.117 +        { EFinishedCase }
   1.118 +        },
   1.119 +    },
   1.120 +    {
   1.121 +        TESTIDS("552D"),
   1.122 +        CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad parameter is error code when setting invalid attribute"),
   1.123 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.124 +        {
   1.125 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.126 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.127 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.128 +        // First check that bad display is issued even when the attribute is bad.
   1.129 +        { ESetAttribCase,       EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, KBadAttribValue, 0},
   1.130 +        { ESetAttribCase,       EExpectError,   EGL_BAD_PARAMETER, 0, 0, KBadAttribValue, 0},
   1.131 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.132 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.133 +        { EFinishedCase }
   1.134 +        },
   1.135 +    },
   1.136 +    {
   1.137 +        TESTIDS("552E"),
   1.138 +        CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad parameter is error code when setting EGL_ENDPOINT_READY_NOK"),
   1.139 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.140 +        {
   1.141 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.142 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.143 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.144 +        { ESetAttribCase,       EExpectError,   EGL_BAD_PARAMETER, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
   1.145 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.146 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.147 +        { EFinishedCase }
   1.148 +        },
   1.149 +    },
   1.150 +};
   1.151 +
   1.152 +static const TTestCase KAttribPositiveCases[] =
   1.153 +{
   1.154 +    {
   1.155 +        TESTIDS("543A"),
   1.156 +        CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: check that EGL_ENDPOINT_READY_NOK returns EGL_FALSE when not ready"),
   1.157 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.158 +        {
   1.159 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.160 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.161 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.162 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_FALSE },
   1.163 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.164 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.165 +        { EFinishedCase }
   1.166 +        },
   1.167 +    },
   1.168 +    {
   1.169 +        TESTIDS("543B"),
   1.170 +        CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: check that EGL_ENDPOINT_READY_NOK returns EGL_TRUE when ready"),
   1.171 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.172 +        {
   1.173 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.174 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.175 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.176 +        { EDrawContentCase,     0,              EGL_SUCCESS },
   1.177 +        { EContentUpdateCase,   0,              EGL_SUCCESS },
   1.178 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_TRUE },
   1.179 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.180 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.181 +        { EFinishedCase }
   1.182 +        },
   1.183 +    },
   1.184 +    {
   1.185 +        TESTIDS("543C"),
   1.186 +        CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: Two endpoints, check EGL_ENDPOINT_READY_NOK returns EGL_TRUE for one but not other endpoint"),
   1.187 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.188 +        {
   1.189 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.190 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.191 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 1, EUnalignedPixelSizeSurface },
   1.192 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.193 +        { ECreateEndpointCase,  0,              EGL_SUCCESS, 1 },
   1.194 +        { EDrawContentCase,     0,              EGL_SUCCESS },
   1.195 +        { EContentUpdateCase,   0,              EGL_SUCCESS },
   1.196 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_TRUE },
   1.197 +        { EGetAttribCase,       0,              EGL_SUCCESS, 1, 0, EGL_ENDPOINT_READY_NOK, EGL_FALSE },
   1.198 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.199 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS, 1 },
   1.200 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.201 +        { EFinishedCase }
   1.202 +        },
   1.203 +    },
   1.204 +    {
   1.205 +        TESTIDS("543D"),
   1.206 +        CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: check that EGL_DELAY_NOK returns 0 for a new endpoint"),
   1.207 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.208 +        {
   1.209 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.210 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.211 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.212 +        { EDrawContentCase,     0,              EGL_SUCCESS },
   1.213 +        { EContentUpdateCase,   0,              EGL_SUCCESS },
   1.214 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 0 },
   1.215 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.216 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.217 +        { EFinishedCase }
   1.218 +        },
   1.219 +    },
   1.220 +    // SetEndpointAttribute tests.
   1.221 +    {
   1.222 +        TESTIDS("544A"),
   1.223 +        CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK"),
   1.224 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.225 +        {
   1.226 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.227 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.228 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.229 +        { EDrawContentCase,     0,              EGL_SUCCESS },
   1.230 +        { EContentUpdateCase,   0,              EGL_SUCCESS },
   1.231 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.232 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.233 +        // Check that we can set a relatively large value, 250 ms, and that it remains.
   1.234 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 250000 },
   1.235 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 250000 },
   1.236 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.237 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.238 +        { EFinishedCase }
   1.239 +        },
   1.240 +    },
   1.241 +    {
   1.242 +        TESTIDS("544B"),
   1.243 +        CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK, then set again to a different value"),
   1.244 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.245 +        {
   1.246 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.247 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.248 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.249 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.250 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.251 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
   1.252 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
   1.253 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.254 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.255 +        { EFinishedCase }
   1.256 +        },
   1.257 +    },
   1.258 +    {
   1.259 +        TESTIDS("544C"),
   1.260 +        CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK, then with draw/update between set and get, then set again"),
   1.261 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.262 +        {
   1.263 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.264 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.265 +        { ECreateEndpointCase,  0,              EGL_SUCCESS },
   1.266 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.267 +        { EDrawContentCase,     0,              EGL_SUCCESS },
   1.268 +        { EContentUpdateCase,   0,              EGL_SUCCESS },
   1.269 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.270 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
   1.271 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
   1.272 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS },
   1.273 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.274 +        { EFinishedCase }
   1.275 +        },
   1.276 +    },
   1.277 +    {
   1.278 +        TESTIDS("544D"),
   1.279 +        CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK on two endpoints, with different values"),
   1.280 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.281 +        {
   1.282 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.283 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.284 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 1, EUnalignedPixelSizeSurface },
   1.285 +        { ECreateEndpointCase,  0,              EGL_SUCCESS, 0, 0 },
   1.286 +        { ECreateEndpointCase,  0,              EGL_SUCCESS, 1, 1 },
   1.287 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.288 +        { ESetAttribCase,       0,              EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
   1.289 +        { EGetAttribCase,       0,              EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
   1.290 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.291 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS, 1, 1 },
   1.292 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS, 0, 0 },
   1.293 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.294 +        { EFinishedCase }
   1.295 +        },
   1.296 +    },
   1.297 +    {
   1.298 +        TESTIDS("544E"),
   1.299 +        CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK on two endpoints, with different values, and swapping buffers between"),
   1.300 +        SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
   1.301 +        {
   1.302 +        { EInitializeCase,      0,              EGL_SUCCESS },
   1.303 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 0, EStandardSurface },
   1.304 +        { ECreateSurfaceCase,   0,              EGL_SUCCESS, 1, EUnalignedPixelSizeSurface },
   1.305 +        { ECreateEndpointCase,  0,              EGL_SUCCESS, 0, 0 },
   1.306 +        { ECreateEndpointCase,  0,              EGL_SUCCESS, 1, 1 },
   1.307 +        { ESetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.308 +        { ESetAttribCase,       0,              EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
   1.309 +        { EDrawContentCase,     0,              EGL_SUCCESS },
   1.310 +        { EContentUpdateCase,   0,              EGL_SUCCESS },
   1.311 +        { EGetAttribCase,       0,              EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
   1.312 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
   1.313 +        { EGetAttribCase,       0,              EGL_SUCCESS, 1, 0, EGL_ENDPOINT_READY_NOK, EGL_FALSE },
   1.314 +        { EGetAttribCase,       0,              EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_TRUE },
   1.315 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS, 1, 1 },
   1.316 +        { EDestroyEndpointCase, 0,              EGL_SUCCESS, 0, 0 },
   1.317 +        { ETerminateCase,       0,              EGL_SUCCESS },
   1.318 +        { EFinishedCase }
   1.319 +        },
   1.320 +    },
   1.321 +};
   1.322 +
   1.323 +static const TTestCases KTestCases[] =
   1.324 +{
   1.325 +        TestCase(KAttribPositiveCases),
   1.326 +        TestCase(KAttribBadParameterCases),
   1.327 +};
   1.328 +
   1.329 +const TInt KNumberTestCases = sizeof(KTestCases) / sizeof(KTestCases[0]);
   1.330 +
   1.331 +CEglTest_LocalTestStep_EndpointAttrib::CEglTest_LocalTestStep_EndpointAttrib():
   1.332 +    CEgltest_Local_Engine(KTestCases, KNumberTestCases)
   1.333 +    {
   1.334 +    }