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, TC003655, "dEQP-EGL.functional.robustness.c",
27     "reate_context.query_robust_access");
28 
29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003656, "dEQP-EGL.functional.robustness.cr",
30     "eate_context.no_reset_notification");
31 
32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003657, "dEQP-EGL.functional.robustness.cr",
33     "eate_context.lose_context_on_reset");
34 
35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003658, "dEQP-EGL.functional.robustness.reset_context.shaders.",
36     "out_of_bounds.reset_status.reads.uniform_block.vertex");
37 
38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003659, "dEQP-EGL.functional.robustness.reset_context.shaders.o",
39     "ut_of_bounds.reset_status.reads.uniform_block.fragment");
40 
41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003660, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
42     "_bounds.reset_status.reads.uniform_block.vertex_and_fragment");
43 
44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003661, "dEQP-EGL.functional.robustness.reset_context.shaders.",
45     "out_of_bounds.reset_status.reads.uniform_block.compute");
46 
47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003662, "dEQP-EGL.functional.robustness.reset_context.shaders.out",
48     "_of_bounds.reset_status.reads.shader_storage_block.vertex");
49 
50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003663, "dEQP-EGL.functional.robustness.reset_context.shaders.out_",
51     "of_bounds.reset_status.reads.shader_storage_block.fragment");
52 
53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003664, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bou",
54     "nds.reset_status.reads.shader_storage_block.vertex_and_fragment");
55 
56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003665, "dEQP-EGL.functional.robustness.reset_context.shaders.out_",
57     "of_bounds.reset_status.reads.shader_storage_block.compute");
58 
59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003666, "dEQP-EGL.functional.robustness.reset_context.shaders",
60     ".out_of_bounds.reset_status.reads.local_array.vertex");
61 
62 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003667, "dEQP-EGL.functional.robustness.reset_context.shaders.",
63     "out_of_bounds.reset_status.reads.local_array.fragment");
64 
65 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003668, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
66     "f_bounds.reset_status.reads.local_array.vertex_and_fragment");
67 
68 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003669, "dEQP-EGL.functional.robustness.reset_context.shaders",
69     ".out_of_bounds.reset_status.reads.local_array.compute");
70 
71 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003670, "dEQP-EGL.functional.robustness.reset_context.shaders.",
72     "out_of_bounds.reset_status.writes.uniform_block.vertex");
73 
74 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003671, "dEQP-EGL.functional.robustness.reset_context.shaders.o",
75     "ut_of_bounds.reset_status.writes.uniform_block.fragment");
76 
77 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003672, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_",
78     "bounds.reset_status.writes.uniform_block.vertex_and_fragment");
79 
80 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003673, "dEQP-EGL.functional.robustness.reset_context.shaders.o",
81     "ut_of_bounds.reset_status.writes.uniform_block.compute");
82 
83 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003674, "dEQP-EGL.functional.robustness.reset_context.shaders.out_",
84     "of_bounds.reset_status.writes.shader_storage_block.vertex");
85 
86 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003675, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
87     "f_bounds.reset_status.writes.shader_storage_block.fragment");
88 
89 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003676, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bou",
90     "nds.reset_status.writes.shader_storage_block.vertex_and_fragment");
91 
92 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003677, "dEQP-EGL.functional.robustness.reset_context.shaders.out_",
93     "of_bounds.reset_status.writes.shader_storage_block.compute");
94 
95 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003678, "dEQP-EGL.functional.robustness.reset_context.shaders",
96     ".out_of_bounds.reset_status.writes.local_array.vertex");
97 
98 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003679, "dEQP-EGL.functional.robustness.reset_context.shaders.",
99     "out_of_bounds.reset_status.writes.local_array.fragment");
100 
101 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003680, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
102     "_bounds.reset_status.writes.local_array.vertex_and_fragment");
103 
104 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003681, "dEQP-EGL.functional.robustness.reset_context.shaders.",
105     "out_of_bounds.reset_status.writes.local_array.compute");
106 
107 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003682, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
108     "f_bounds_non_robust.reset_status.reads.uniform_block.vertex");
109 
110 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003683, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
111     "_bounds_non_robust.reset_status.reads.uniform_block.fragment");
112 
113 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003684, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bound",
114     "s_non_robust.reset_status.reads.uniform_block.vertex_and_fragment");
115 
116 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003685, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
117     "_bounds_non_robust.reset_status.reads.uniform_block.compute");
118 
119 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003686, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bo",
120     "unds_non_robust.reset_status.reads.shader_storage_block.vertex");
121 
122 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003687, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bou",
123     "nds_non_robust.reset_status.reads.shader_storage_block.fragment");
124 
125 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003688, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bounds_n",
126     "on_robust.reset_status.reads.shader_storage_block.vertex_and_fragment");
127 
128 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003689, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bo",
129     "unds_non_robust.reset_status.reads.shader_storage_block.compute");
130 
131 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003690, "dEQP-EGL.functional.robustness.reset_context.shaders.out_",
132     "of_bounds_non_robust.reset_status.reads.local_array.vertex");
133 
134 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003691, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
135     "f_bounds_non_robust.reset_status.reads.local_array.fragment");
136 
137 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003692, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_boun",
138     "ds_non_robust.reset_status.reads.local_array.vertex_and_fragment");
139 
140 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003693, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
141     "f_bounds_non_robust.reset_status.reads.local_array.compute");
142 
143 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003694, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
144     "_bounds_non_robust.reset_status.writes.uniform_block.vertex");
145 
146 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003695, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_",
147     "bounds_non_robust.reset_status.writes.uniform_block.fragment");
148 
149 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003696, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bound",
150     "s_non_robust.reset_status.writes.uniform_block.vertex_and_fragment");
151 
152 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003697, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
153     "_bounds_non_robust.reset_status.writes.uniform_block.compute");
154 
155 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003698, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bo",
156     "unds_non_robust.reset_status.writes.shader_storage_block.vertex");
157 
158 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003699, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bou",
159     "nds_non_robust.reset_status.writes.shader_storage_block.fragment");
160 
161 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003700, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bounds_no",
162     "n_robust.reset_status.writes.shader_storage_block.vertex_and_fragment");
163 
164 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003701, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bou",
165     "nds_non_robust.reset_status.writes.shader_storage_block.compute");
166 
167 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003702, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
168     "f_bounds_non_robust.reset_status.writes.local_array.vertex");
169 
170 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003703, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of",
171     "_bounds_non_robust.reset_status.writes.local_array.fragment");
172 
173 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003704, "dEQP-EGL.functional.robustness.reset_context.shaders.out_of_boun",
174     "ds_non_robust.reset_status.writes.local_array.vertex_and_fragment");
175 
176 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003705, "dEQP-EGL.functional.robustness.reset_context.shaders.out_o",
177     "f_bounds_non_robust.reset_status.writes.local_array.compute");
178 
179 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003706, "dEQP-EGL.functional.robustness.reset_context.fixed_fun",
180     "ction_pipeline.reset_status.index_buffer_out_of_bounds");
181 
182 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003707, "dEQP-EGL.functional.robustness.reset_context.fixed_fun",
183     "ction_pipeline.reset_status.vertex_buffer_out_of_bounds");
184 
185 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003708, "dEQP-EGL.functional.robustness.reset_context.fixed_function",
186     "_pipeline_non_robust.reset_status.index_buffer_out_of_bounds");
187 
188 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003709, "dEQP-EGL.functional.robustness.reset_context.fixed_function_",
189     "pipeline_non_robust.reset_status.vertex_buffer_out_of_bounds");
190 
191 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003710, "dEQP-EGL.functional.robustness.negative",
192     "_context.invalid_robust_context_creation");
193 
194 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003711, "dEQP-EGL.functional.robustness.negative_con",
195     "text.invalid_robust_shared_context_creation");
196 
197 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003712, "dEQP-EGL.functional.robustness.negative_c",
198     "ontext.invalid_notification_strategy_enum");
199