sl@0
|
1 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
|
sl@0
|
13 |
|
sl@0
|
14 |
/**
|
sl@0
|
15 |
@file
|
sl@0
|
16 |
@test
|
sl@0
|
17 |
@internalComponent - Internal Symbian test code
|
sl@0
|
18 |
*/
|
sl@0
|
19 |
|
sl@0
|
20 |
#include "egltest_endpointattrib.h"
|
sl@0
|
21 |
|
sl@0
|
22 |
const TInt KBadAttribValue = EGL_BAD_ATTRIBUTE; // Use error code as a "invalid attribute value".
|
sl@0
|
23 |
|
sl@0
|
24 |
// For testing flexibility of the concept. Not actually used in the testcode at this point in time.
|
sl@0
|
25 |
static const TTestCase KAttribBadParameterCases[] =
|
sl@0
|
26 |
{
|
sl@0
|
27 |
{
|
sl@0
|
28 |
TESTIDS("551A"),
|
sl@0
|
29 |
CASETITLE("Functional: Negative: eglGetEndpointAttribNOK with Bad Parameters: bad display is error code when getting attributes"),
|
sl@0
|
30 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
31 |
{
|
sl@0
|
32 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
33 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
34 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
35 |
{ EGetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
36 |
// Use bad endpoint with bad display - should give bad display.
|
sl@0
|
37 |
{ EGetAttribCase, EUseBadEndpoint | EUseBadDisplay,
|
sl@0
|
38 |
EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
39 |
{ EGetAttribCase, EUseBadEndpoint,
|
sl@0
|
40 |
EGL_BAD_ENDPOINT_NOK, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
41 |
{ EGetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0 },
|
sl@0
|
42 |
// Use bad endpoint with bad display - should give bad display.
|
sl@0
|
43 |
{ EGetAttribCase, EUseBadEndpoint | EUseBadDisplay,
|
sl@0
|
44 |
EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0},
|
sl@0
|
45 |
{ EGetAttribCase, EUseBadEndpoint,EGL_BAD_ENDPOINT_NOK, 0, 0, EGL_DELAY_NOK, 0},
|
sl@0
|
46 |
{ EGetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, KBadAttribValue, 0},
|
sl@0
|
47 |
{ EGetAttribCase, EExpectError, EGL_BAD_PARAMETER, 0, 0, KBadAttribValue, 0},
|
sl@0
|
48 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
49 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
50 |
{ EFinishedCase }
|
sl@0
|
51 |
},
|
sl@0
|
52 |
},
|
sl@0
|
53 |
{
|
sl@0
|
54 |
TESTIDS("551B"),
|
sl@0
|
55 |
CASETITLE("Functional: Negative: eglGetEndpointAttribNOK with Bad Parameters: bad parameter is error code when requesting invalid attribute"),
|
sl@0
|
56 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
57 |
{
|
sl@0
|
58 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
59 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
60 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
61 |
// First check that bad display is issued even when the attribute is bad.
|
sl@0
|
62 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
63 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
64 |
{ EFinishedCase }
|
sl@0
|
65 |
},
|
sl@0
|
66 |
},
|
sl@0
|
67 |
// SetEndpointAttrib tests.
|
sl@0
|
68 |
{
|
sl@0
|
69 |
TESTIDS("552A"),
|
sl@0
|
70 |
CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad display is error code when setting endpoint ready"),
|
sl@0
|
71 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
72 |
{
|
sl@0
|
73 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
74 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
75 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
76 |
{ ESetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
77 |
{ ESetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
78 |
// Use bad endpoint with bad display - should give bad display.
|
sl@0
|
79 |
{ ESetAttribCase, EUseBadEndpoint | EUseBadDisplay,
|
sl@0
|
80 |
EGL_BAD_DISPLAY, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
81 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
82 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
83 |
{ EFinishedCase }
|
sl@0
|
84 |
},
|
sl@0
|
85 |
},
|
sl@0
|
86 |
{
|
sl@0
|
87 |
TESTIDS("552B"),
|
sl@0
|
88 |
CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad display is error code when setting endpoint delay"),
|
sl@0
|
89 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
90 |
{
|
sl@0
|
91 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
92 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
93 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
94 |
{ ESetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0 },
|
sl@0
|
95 |
// Use bad endpoint with bad display - should give bad display.
|
sl@0
|
96 |
{ ESetAttribCase, EUseBadEndpoint | EUseBadDisplay,
|
sl@0
|
97 |
EGL_BAD_DISPLAY, 0, 0, EGL_DELAY_NOK, 0},
|
sl@0
|
98 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
99 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
100 |
{ EFinishedCase }
|
sl@0
|
101 |
},
|
sl@0
|
102 |
},
|
sl@0
|
103 |
{
|
sl@0
|
104 |
TESTIDS("552C"),
|
sl@0
|
105 |
CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad endpoint is error code when setting endpoint delay"),
|
sl@0
|
106 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
107 |
{
|
sl@0
|
108 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
109 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
110 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
111 |
{ ESetAttribCase, EUseBadEndpoint,EGL_BAD_ENDPOINT_NOK, 0, 0, EGL_DELAY_NOK, 0},
|
sl@0
|
112 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
113 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
114 |
{ EFinishedCase }
|
sl@0
|
115 |
},
|
sl@0
|
116 |
},
|
sl@0
|
117 |
{
|
sl@0
|
118 |
TESTIDS("552D"),
|
sl@0
|
119 |
CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad parameter is error code when setting invalid attribute"),
|
sl@0
|
120 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
121 |
{
|
sl@0
|
122 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
123 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
124 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
125 |
// First check that bad display is issued even when the attribute is bad.
|
sl@0
|
126 |
{ ESetAttribCase, EUseBadDisplay, EGL_BAD_DISPLAY, 0, 0, KBadAttribValue, 0},
|
sl@0
|
127 |
{ ESetAttribCase, EExpectError, EGL_BAD_PARAMETER, 0, 0, KBadAttribValue, 0},
|
sl@0
|
128 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
129 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
130 |
{ EFinishedCase }
|
sl@0
|
131 |
},
|
sl@0
|
132 |
},
|
sl@0
|
133 |
{
|
sl@0
|
134 |
TESTIDS("552E"),
|
sl@0
|
135 |
CASETITLE("Functional: Negative: eglSetEndpointAttribNOK with Bad Parameters: bad parameter is error code when setting EGL_ENDPOINT_READY_NOK"),
|
sl@0
|
136 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
137 |
{
|
sl@0
|
138 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
139 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
140 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
141 |
{ ESetAttribCase, EExpectError, EGL_BAD_PARAMETER, 0, 0, EGL_ENDPOINT_READY_NOK, 0},
|
sl@0
|
142 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
143 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
144 |
{ EFinishedCase }
|
sl@0
|
145 |
},
|
sl@0
|
146 |
},
|
sl@0
|
147 |
};
|
sl@0
|
148 |
|
sl@0
|
149 |
static const TTestCase KAttribPositiveCases[] =
|
sl@0
|
150 |
{
|
sl@0
|
151 |
{
|
sl@0
|
152 |
TESTIDS("543A"),
|
sl@0
|
153 |
CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: check that EGL_ENDPOINT_READY_NOK returns EGL_FALSE when not ready"),
|
sl@0
|
154 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
155 |
{
|
sl@0
|
156 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
157 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
158 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
159 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_FALSE },
|
sl@0
|
160 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
161 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
162 |
{ EFinishedCase }
|
sl@0
|
163 |
},
|
sl@0
|
164 |
},
|
sl@0
|
165 |
{
|
sl@0
|
166 |
TESTIDS("543B"),
|
sl@0
|
167 |
CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: check that EGL_ENDPOINT_READY_NOK returns EGL_TRUE when ready"),
|
sl@0
|
168 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
169 |
{
|
sl@0
|
170 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
171 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
172 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
173 |
{ EDrawContentCase, 0, EGL_SUCCESS },
|
sl@0
|
174 |
{ EContentUpdateCase, 0, EGL_SUCCESS },
|
sl@0
|
175 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_TRUE },
|
sl@0
|
176 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
177 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
178 |
{ EFinishedCase }
|
sl@0
|
179 |
},
|
sl@0
|
180 |
},
|
sl@0
|
181 |
{
|
sl@0
|
182 |
TESTIDS("543C"),
|
sl@0
|
183 |
CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: Two endpoints, check EGL_ENDPOINT_READY_NOK returns EGL_TRUE for one but not other endpoint"),
|
sl@0
|
184 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
185 |
{
|
sl@0
|
186 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
187 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
188 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 1, EUnalignedPixelSizeSurface },
|
sl@0
|
189 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
190 |
{ ECreateEndpointCase, 0, EGL_SUCCESS, 1 },
|
sl@0
|
191 |
{ EDrawContentCase, 0, EGL_SUCCESS },
|
sl@0
|
192 |
{ EContentUpdateCase, 0, EGL_SUCCESS },
|
sl@0
|
193 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_TRUE },
|
sl@0
|
194 |
{ EGetAttribCase, 0, EGL_SUCCESS, 1, 0, EGL_ENDPOINT_READY_NOK, EGL_FALSE },
|
sl@0
|
195 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
196 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS, 1 },
|
sl@0
|
197 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
198 |
{ EFinishedCase }
|
sl@0
|
199 |
},
|
sl@0
|
200 |
},
|
sl@0
|
201 |
{
|
sl@0
|
202 |
TESTIDS("543D"),
|
sl@0
|
203 |
CASETITLE("Functional: Positive: eglGetEndpointAttribNOK with Valid Parameters: check that EGL_DELAY_NOK returns 0 for a new endpoint"),
|
sl@0
|
204 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
205 |
{
|
sl@0
|
206 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
207 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
208 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
209 |
{ EDrawContentCase, 0, EGL_SUCCESS },
|
sl@0
|
210 |
{ EContentUpdateCase, 0, EGL_SUCCESS },
|
sl@0
|
211 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 0 },
|
sl@0
|
212 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
213 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
214 |
{ EFinishedCase }
|
sl@0
|
215 |
},
|
sl@0
|
216 |
},
|
sl@0
|
217 |
// SetEndpointAttribute tests.
|
sl@0
|
218 |
{
|
sl@0
|
219 |
TESTIDS("544A"),
|
sl@0
|
220 |
CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK"),
|
sl@0
|
221 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
222 |
{
|
sl@0
|
223 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
224 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
225 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
226 |
{ EDrawContentCase, 0, EGL_SUCCESS },
|
sl@0
|
227 |
{ EContentUpdateCase, 0, EGL_SUCCESS },
|
sl@0
|
228 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
229 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
230 |
// Check that we can set a relatively large value, 250 ms, and that it remains.
|
sl@0
|
231 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 250000 },
|
sl@0
|
232 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 250000 },
|
sl@0
|
233 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
234 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
235 |
{ EFinishedCase }
|
sl@0
|
236 |
},
|
sl@0
|
237 |
},
|
sl@0
|
238 |
{
|
sl@0
|
239 |
TESTIDS("544B"),
|
sl@0
|
240 |
CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK, then set again to a different value"),
|
sl@0
|
241 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
242 |
{
|
sl@0
|
243 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
244 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
245 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
246 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
247 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
248 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
249 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
250 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
251 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
252 |
{ EFinishedCase }
|
sl@0
|
253 |
},
|
sl@0
|
254 |
},
|
sl@0
|
255 |
{
|
sl@0
|
256 |
TESTIDS("544C"),
|
sl@0
|
257 |
CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK, then with draw/update between set and get, then set again"),
|
sl@0
|
258 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
259 |
{
|
sl@0
|
260 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
261 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
262 |
{ ECreateEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
263 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
264 |
{ EDrawContentCase, 0, EGL_SUCCESS },
|
sl@0
|
265 |
{ EContentUpdateCase, 0, EGL_SUCCESS },
|
sl@0
|
266 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
267 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
268 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
269 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS },
|
sl@0
|
270 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
271 |
{ EFinishedCase }
|
sl@0
|
272 |
},
|
sl@0
|
273 |
},
|
sl@0
|
274 |
{
|
sl@0
|
275 |
TESTIDS("544D"),
|
sl@0
|
276 |
CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK on two endpoints, with different values"),
|
sl@0
|
277 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
278 |
{
|
sl@0
|
279 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
280 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
281 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 1, EUnalignedPixelSizeSurface },
|
sl@0
|
282 |
{ ECreateEndpointCase, 0, EGL_SUCCESS, 0, 0 },
|
sl@0
|
283 |
{ ECreateEndpointCase, 0, EGL_SUCCESS, 1, 1 },
|
sl@0
|
284 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
285 |
{ ESetAttribCase, 0, EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
286 |
{ EGetAttribCase, 0, EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
287 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
288 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS, 1, 1 },
|
sl@0
|
289 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS, 0, 0 },
|
sl@0
|
290 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
291 |
{ EFinishedCase }
|
sl@0
|
292 |
},
|
sl@0
|
293 |
},
|
sl@0
|
294 |
{
|
sl@0
|
295 |
TESTIDS("544E"),
|
sl@0
|
296 |
CASETITLE("Functional: Positive: eglSetEndpointAttribNOK with Valid Parameters: set EGL_DELAY_NOK on two endpoints, with different values, and swapping buffers between"),
|
sl@0
|
297 |
SurfaceTypes2(ESurfTypeRaw, ESurfTypeEglWindow),
|
sl@0
|
298 |
{
|
sl@0
|
299 |
{ EInitializeCase, 0, EGL_SUCCESS },
|
sl@0
|
300 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 0, EStandardSurface },
|
sl@0
|
301 |
{ ECreateSurfaceCase, 0, EGL_SUCCESS, 1, EUnalignedPixelSizeSurface },
|
sl@0
|
302 |
{ ECreateEndpointCase, 0, EGL_SUCCESS, 0, 0 },
|
sl@0
|
303 |
{ ECreateEndpointCase, 0, EGL_SUCCESS, 1, 1 },
|
sl@0
|
304 |
{ ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
305 |
{ ESetAttribCase, 0, EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
306 |
{ EDrawContentCase, 0, EGL_SUCCESS },
|
sl@0
|
307 |
{ EContentUpdateCase, 0, EGL_SUCCESS },
|
sl@0
|
308 |
{ EGetAttribCase, 0, EGL_SUCCESS, 1, 0, EGL_DELAY_NOK, 208 },
|
sl@0
|
309 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 100 },
|
sl@0
|
310 |
{ EGetAttribCase, 0, EGL_SUCCESS, 1, 0, EGL_ENDPOINT_READY_NOK, EGL_FALSE },
|
sl@0
|
311 |
{ EGetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_ENDPOINT_READY_NOK, EGL_TRUE },
|
sl@0
|
312 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS, 1, 1 },
|
sl@0
|
313 |
{ EDestroyEndpointCase, 0, EGL_SUCCESS, 0, 0 },
|
sl@0
|
314 |
{ ETerminateCase, 0, EGL_SUCCESS },
|
sl@0
|
315 |
{ EFinishedCase }
|
sl@0
|
316 |
},
|
sl@0
|
317 |
},
|
sl@0
|
318 |
};
|
sl@0
|
319 |
|
sl@0
|
320 |
static const TTestCases KTestCases[] =
|
sl@0
|
321 |
{
|
sl@0
|
322 |
TestCase(KAttribPositiveCases),
|
sl@0
|
323 |
TestCase(KAttribBadParameterCases),
|
sl@0
|
324 |
};
|
sl@0
|
325 |
|
sl@0
|
326 |
const TInt KNumberTestCases = sizeof(KTestCases) / sizeof(KTestCases[0]);
|
sl@0
|
327 |
|
sl@0
|
328 |
CEglTest_LocalTestStep_EndpointAttrib::CEglTest_LocalTestStep_EndpointAttrib():
|
sl@0
|
329 |
CEgltest_Local_Engine(KTestCases, KNumberTestCases)
|
sl@0
|
330 |
{
|
sl@0
|
331 |
}
|