1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <climits>
17 #include <gtest/gtest.h>
18 #include "../EglBaseFunc.h"
19 #include "../ActsEgl0001TestSuite.h"
20 #include "shrinkdefine.h"
21 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003753, "dEQP-EGL.performance.make_current.sim",
27     "ple.context_pbuffer");
28 
29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003754, "dEQP-EGL.performance.make_curren",
30     "t.simple.context_pbuffer_release");
31 
32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003755, "dEQP-EGL.performance.make_current.sim",
33     "ple.context_pixmap");
34 
35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003756, "dEQP-EGL.performance.make_curre",
36     "nt.simple.context_pixmap_release");
37 
38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003757, "dEQP-EGL.performance.make_current.sim",
39     "ple.context_window");
40 
41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003758, "dEQP-EGL.performance.make_curre",
42     "nt.simple.context_window_release");
43 
44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003759, "dEQP-EGL.performance.make_current",
45     ".multi_context.contexts_10_pbuffer");
46 
47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003760, "dEQP-EGL.performance.make_current.mul",
48     "ti_context.contexts_10_pbuffer_release");
49 
50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003761, "dEQP-EGL.performance.make_current",
51     ".multi_context.contexts_10_pixmap");
52 
53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003762, "dEQP-EGL.performance.make_current.mul",
54     "ti_context.contexts_10_pixmap_release");
55 
56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003763, "dEQP-EGL.performance.make_current",
57     ".multi_context.contexts_10_window");
58 
59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003764, "dEQP-EGL.performance.make_current.mul",
60     "ti_context.contexts_10_window_release");
61 
62 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003765, "dEQP-EGL.performance.make_current.",
63     "multi_context.contexts_100_pbuffer");
64 
65 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003766, "dEQP-EGL.performance.make_current.mult",
66     "i_context.contexts_100_pbuffer_release");
67 
68 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003767, "dEQP-EGL.performance.make_current",
69     ".multi_context.contexts_100_pixmap");
70 
71 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003768, "dEQP-EGL.performance.make_current.mul",
72     "ti_context.contexts_100_pixmap_release");
73 
74 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003769, "dEQP-EGL.performance.make_current",
75     ".multi_context.contexts_100_window");
76 
77 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003770, "dEQP-EGL.performance.make_current.mul",
78     "ti_context.contexts_100_window_release");
79 
80 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003771, "dEQP-EGL.performance.make_current",
81     ".multi_sur""face.context_pbuffers_10");
82 
83 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003772, "dEQP-EGL.performance.make_current.mul",
84     "ti_sur""face.context_pbuffers_10_release");
85 
86 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003773, "dEQP-EGL.performance.make_current",
87     ".multi_sur""face.context_pixmaps_10");
88 
89 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003774, "dEQP-EGL.performance.make_current.mul",
90     "ti_sur""face.context_pixmaps_10_release");
91 
92 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003775, "dEQP-EGL.performance.make_current",
93     ".multi_sur""face.context_windows_10");
94 
95 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003776, "dEQP-EGL.performance.make_current.mul",
96     "ti_sur""face.context_windows_10_release");
97 
98 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003777, "dEQP-EGL.performance.make_current.mul",
99     "ti_sur""face.context_pixmaps_pbuffers_10");
100 
101 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003778, "dEQP-EGL.performance.make_current.multi_s",
102     "urface.context_pixmaps_pbuffers_10_release");
103 
104 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003779, "dEQP-EGL.performance.make_current.mul",
105     "ti_sur""face.context_windows_pbuffers_10");
106 
107 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003780, "dEQP-EGL.performance.make_current.multi_s",
108     "urface.context_windows_pbuffers_10_release");
109 
110 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003781, "dEQP-EGL.performance.make_current.mul",
111     "ti_sur""face.context_windows_pixmaps_10");
112 
113 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003782, "dEQP-EGL.performance.make_current.multi_s",
114     "urface.context_windows_pixmaps_10_release");
115 
116 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003783, "dEQP-EGL.performance.make_current.multi_s",
117     "urface.context_windows_pixmaps_pbuffers_10");
118 
119 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003784, "dEQP-EGL.performance.make_current.multi_surfa",
120     "ce.context_windows_pixmaps_pbuffers_10_release");
121 
122 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003785, "dEQP-EGL.performance.make_current.",
123     "multi_sur""face.context_pbuffers_100");
124 
125 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003786, "dEQP-EGL.performance.make_current.mult",
126     "i_sur""face.context_pbuffers_100_release");
127 
128 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003787, "dEQP-EGL.performance.make_current",
129     ".multi_sur""face.context_pixmaps_100");
130 
131 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003788, "dEQP-EGL.performance.make_current.mul",
132     "ti_sur""face.context_pixmaps_100_release");
133 
134 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003789, "dEQP-EGL.performance.make_current",
135     ".multi_sur""face.context_windows_100");
136 
137 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003790, "dEQP-EGL.performance.make_current.mul",
138     "ti_sur""face.context_windows_100_release");
139 
140 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003791, "dEQP-EGL.performance.make_current.mult",
141     "i_sur""face.context_pixmaps_pbuffers_100");
142 
143 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003792, "dEQP-EGL.performance.make_current.multi_su",
144     "rface.context_pixmaps_pbuffers_100_release");
145 
146 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003793, "dEQP-EGL.performance.make_current.mult",
147     "i_sur""face.context_windows_pbuffers_100");
148 
149 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003794, "dEQP-EGL.performance.make_current.multi_su",
150     "rface.context_windows_pbuffers_100_release");
151 
152 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003795, "dEQP-EGL.performance.make_current.mul",
153     "ti_sur""face.context_windows_pixmaps_100");
154 
155 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003796, "dEQP-EGL.performance.make_current.multi_s",
156     "urface.context_windows_pixmaps_100_release");
157 
158 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003797, "dEQP-EGL.performance.make_current.multi_su",
159     "rface.context_windows_pixmaps_pbuffers_100");
160 
161 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003798, "dEQP-EGL.performance.make_current.multi_surfac",
162     "e.context_windows_pixmaps_pbuffers_100_release");
163 
164 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003799, "dEQP-EGL.performance.make_curren",
165     "t.complex.contexts_10_pbuffers_10");
166 
167 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003800, "dEQP-EGL.performance.make_current.co",
168     "mplex.contexts_10_pbuffers_10_release");
169 
170 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003801, "dEQP-EGL.performance.make_curren",
171     "t.complex.contexts_10_pixmaps_10");
172 
173 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003802, "dEQP-EGL.performance.make_current.co",
174     "mplex.contexts_10_pixmaps_10_release");
175 
176 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003803, "dEQP-EGL.performance.make_curren",
177     "t.complex.contexts_10_windows_10");
178 
179 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003804, "dEQP-EGL.performance.make_current.co",
180     "mplex.contexts_10_windows_10_release");
181 
182 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003805, "dEQP-EGL.performance.make_current.co",
183     "mplex.contexts_10_pixmaps_pbuffers_10");
184 
185 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003806, "dEQP-EGL.performance.make_current.comple",
186     "x.contexts_10_pixmaps_pbuffers_10_release");
187 
188 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003807, "dEQP-EGL.performance.make_current.co",
189     "mplex.contexts_10_windows_pbuffers_10");
190 
191 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003808, "dEQP-EGL.performance.make_current.comple",
192     "x.contexts_10_windows_pbuffers_10_release");
193 
194 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003809, "dEQP-EGL.performance.make_current.co",
195     "mplex.contexts_10_windows_pixmaps_10");
196 
197 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003810, "dEQP-EGL.performance.make_current.comple",
198     "x.contexts_10_windows_pixmaps_10_release");
199 
200 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003811, "dEQP-EGL.performance.make_current.comple",
201     "x.contexts_10_windows_pixmaps_pbuffers_10");
202 
203 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003812, "dEQP-EGL.performance.make_current.complex.co",
204     "ntexts_10_windows_pixmaps_pbuffers_10_release");
205 
206 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003813, "dEQP-EGL.performance.make_current",
207     ".complex.contexts_100_pbuffers_10");
208 
209 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003814, "dEQP-EGL.performance.make_current.com",
210     "plex.contexts_100_pbuffers_10_release");
211 
212 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003815, "dEQP-EGL.performance.make_curren",
213     "t.complex.contexts_100_pixmaps_10");
214 
215 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003816, "dEQP-EGL.performance.make_current.co",
216     "mplex.contexts_100_pixmaps_10_release");
217 
218 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003817, "dEQP-EGL.performance.make_curren",
219     "t.complex.contexts_100_windows_10");
220 
221 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003818, "dEQP-EGL.performance.make_current.co",
222     "mplex.contexts_100_windows_10_release");
223 
224 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003819, "dEQP-EGL.performance.make_current.com",
225     "plex.contexts_100_pixmaps_pbuffers_10");
226 
227 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003820, "dEQP-EGL.performance.make_current.complex",
228     ".contexts_100_pixmaps_pbuffers_10_release");
229 
230 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003821, "dEQP-EGL.performance.make_current.com",
231     "plex.contexts_100_windows_pbuffers_10");
232 
233 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003822, "dEQP-EGL.performance.make_current.complex",
234     ".contexts_100_windows_pbuffers_10_release");
235 
236 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003823, "dEQP-EGL.performance.make_current.co",
237     "mplex.contexts_100_windows_pixmaps_10");
238 
239 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003824, "dEQP-EGL.performance.make_current.comple",
240     "x.contexts_100_windows_pixmaps_10_release");
241 
242 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003825, "dEQP-EGL.performance.make_current.complex",
243     ".contexts_100_windows_pixmaps_pbuffers_10");
244 
245 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003826, "dEQP-EGL.performance.make_current.complex.con",
246     "texts_100_windows_pixmaps_pbuffers_10_release");
247 
248 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003827, "dEQP-EGL.performance.make_current",
249     ".complex.contexts_10_pbuffers_100");
250 
251 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003828, "dEQP-EGL.performance.make_current.com",
252     "plex.contexts_10_pbuffers_100_release");
253 
254 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003829, "dEQP-EGL.performance.make_curren",
255     "t.complex.contexts_10_pixmaps_100");
256 
257 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003830, "dEQP-EGL.performance.make_current.co",
258     "mplex.contexts_10_pixmaps_100_release");
259 
260 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003831, "dEQP-EGL.performance.make_curren",
261     "t.complex.contexts_10_windows_100");
262 
263 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003832, "dEQP-EGL.performance.make_current.co",
264     "mplex.contexts_10_windows_100_release");
265 
266 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003833, "dEQP-EGL.performance.make_current.com",
267     "plex.contexts_10_pixmaps_pbuffers_100");
268 
269 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003834, "dEQP-EGL.performance.make_current.complex",
270     ".contexts_10_pixmaps_pbuffers_100_release");
271 
272 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003835, "dEQP-EGL.performance.make_current.com",
273     "plex.contexts_10_windows_pbuffers_100");
274 
275 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003836, "dEQP-EGL.performance.make_current.complex",
276     ".contexts_10_windows_pbuffers_100_release");
277 
278 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003837, "dEQP-EGL.performance.make_current.co",
279     "mplex.contexts_10_windows_pixmaps_100");
280 
281 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003838, "dEQP-EGL.performance.make_current.comple",
282     "x.contexts_10_windows_pixmaps_100_release");
283 
284 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003839, "dEQP-EGL.performance.make_current.complex",
285     ".contexts_10_windows_pixmaps_pbuffers_100");
286 
287 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003840, "dEQP-EGL.performance.make_current.complex.con",
288     "texts_10_windows_pixmaps_pbuffers_100_release");
289 
290 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003841, "dEQP-EGL.performance.make_current",
291     ".complex.contexts_100_pbuffers_100");
292 
293 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003842, "dEQP-EGL.performance.make_current.com",
294     "plex.contexts_100_pbuffers_100_release");
295 
296 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003843, "dEQP-EGL.performance.make_current",
297     ".complex.contexts_100_pixmaps_100");
298 
299 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003844, "dEQP-EGL.performance.make_current.com",
300     "plex.contexts_100_pixmaps_100_release");
301 
302 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003845, "dEQP-EGL.performance.make_current",
303     ".complex.contexts_100_windows_100");
304 
305 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003846, "dEQP-EGL.performance.make_current.com",
306     "plex.contexts_100_windows_100_release");
307 
308 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003847, "dEQP-EGL.performance.make_current.com",
309     "plex.contexts_100_pixmaps_pbuffers_100");
310 
311 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003848, "dEQP-EGL.performance.make_current.complex",
312     ".contexts_100_pixmaps_pbuffers_100_release");
313 
314 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003849, "dEQP-EGL.performance.make_current.com",
315     "plex.contexts_100_windows_pbuffers_100");
316 
317 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003850, "dEQP-EGL.performance.make_current.complex",
318     ".contexts_100_windows_pbuffers_100_release");
319 
320 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003851, "dEQP-EGL.performance.make_current.com",
321     "plex.contexts_100_windows_pixmaps_100");
322 
323 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003852, "dEQP-EGL.performance.make_current.complex",
324     ".contexts_100_windows_pixmaps_100_release");
325 
326 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003853, "dEQP-EGL.performance.make_current.complex",
327     ".contexts_100_windows_pixmaps_pbuffers_100");
328 
329 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003854, "dEQP-EGL.performance.make_current.complex.con",
330     "texts_100_windows_pixmaps_pbuffers_100_release");
331