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 "../Deqpgles3BaseFunc.h"
19 #include "../ActsDeqpgles30038TestSuite.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(ActsDeqpgles30038TestSuite, TestCase_037270,
27         "dEQP-GLES3.functional.uniform_api.value.init",
28         "ial.render.array_in_struct.float_vec4_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037271,
31         "dEQP-GLES3.functional.uniform_api.value.initi",
32         "al.render.array_in_struct.float_vec4_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037272,
35         "dEQP-GLES3.functional.uniform_api.value.ini",
36         "tial.render.array_in_struct.float_vec4_both");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037273,
39         "dEQP-GLES3.functional.uniform_api.value.ini",
40         "tial.render.array_in_struct.mat4_mat2_vertex");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037274,
43         "dEQP-GLES3.functional.uniform_api.value.init",
44         "ial.render.array_in_struct.mat4_mat2_fragment");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037275,
47         "dEQP-GLES3.functional.uniform_api.value.in",
48         "itial.render.array_in_struct.mat4_mat2_both");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037276,
51         "dEQP-GLES3.functional.uniform_api.value.ini",
52         "tial.render.array_in_struct.int_ivec4_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037277,
55         "dEQP-GLES3.functional.uniform_api.value.init",
56         "ial.render.array_in_struct.int_ivec4_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037278,
59         "dEQP-GLES3.functional.uniform_api.value.in",
60         "itial.render.array_in_struct.int_ivec4_both");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037279,
63         "dEQP-GLES3.functional.uniform_api.value.init",
64         "ial.render.array_in_struct.uint_uvec4_vertex");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037280,
67         "dEQP-GLES3.functional.uniform_api.value.initi",
68         "al.render.array_in_struct.uint_uvec4_fragment");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037281,
71         "dEQP-GLES3.functional.uniform_api.value.ini",
72         "tial.render.array_in_struct.uint_uvec4_both");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037282,
75         "dEQP-GLES3.functional.uniform_api.value.init",
76         "ial.render.array_in_struct.bool_bvec4_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037283,
79         "dEQP-GLES3.functional.uniform_api.value.initi",
80         "al.render.array_in_struct.bool_bvec4_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037284,
83         "dEQP-GLES3.functional.uniform_api.value.ini",
84         "tial.render.array_in_struct.bool_bvec4_both");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037789,
87         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
88         "y_pointer.render.array_in_struct.float_vec4_vertex");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037790,
91         "dEQP-GLES3.functional.uniform_api.value.assigned.by",
92         "_pointer.render.array_in_struct.float_vec4_fragment");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037791,
95         "dEQP-GLES3.functional.uniform_api.value.assigned.",
96         "by_pointer.render.array_in_struct.float_vec4_both");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037792,
99         "dEQP-GLES3.functional.uniform_api.value.assigned.",
100         "by_pointer.render.array_in_struct.mat4_mat2_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037793,
103         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
104         "y_pointer.render.array_in_struct.mat4_mat2_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037794,
107         "dEQP-GLES3.functional.uniform_api.value.assigned",
108         ".by_pointer.render.array_in_struct.mat4_mat2_both");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037795,
111         "dEQP-GLES3.functional.uniform_api.value.assigned.",
112         "by_pointer.render.array_in_struct.int_ivec4_vertex");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037796,
115         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
116         "y_pointer.render.array_in_struct.int_ivec4_fragment");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037797,
119         "dEQP-GLES3.functional.uniform_api.value.assigned",
120         ".by_pointer.render.array_in_struct.int_ivec4_both");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037798,
123         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
124         "y_pointer.render.array_in_struct.uint_uvec4_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037799,
127         "dEQP-GLES3.functional.uniform_api.value.assigned.by",
128         "_pointer.render.array_in_struct.uint_uvec4_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037800,
131         "dEQP-GLES3.functional.uniform_api.value.assigned.",
132         "by_pointer.render.array_in_struct.uint_uvec4_both");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037801,
135         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
136         "y_pointer.render.array_in_struct.bool_bvec4_vertex");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037802,
139         "dEQP-GLES3.functional.uniform_api.value.assigned.by",
140         "_pointer.render.array_in_struct.bool_bvec4_fragment");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037803,
143         "dEQP-GLES3.functional.uniform_api.value.assigned.",
144         "by_pointer.render.array_in_struct.bool_bvec4_both");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037804,
147         "dEQP-GLES3.functional.uniform_api.value.assigned.by_poi",
148         "nter.render.array_in_struct.sampler2D_samplerCube_vertex");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037805,
151         "dEQP-GLES3.functional.uniform_api.value.assigned.by_poin",
152         "ter.render.array_in_struct.sampler2D_samplerCube_fragment");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_037806,
155         "dEQP-GLES3.functional.uniform_api.value.assigned.by_po",
156         "inter.render.array_in_struct.sampler2D_samplerCube_both");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038167,
159         "dEQP-GLES3.functional.uniform_api.value.assigned.",
160         "by_value.render.array_in_struct.float_vec4_vertex");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038168,
163         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
164         "y_value.render.array_in_struct.float_vec4_fragment");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038169,
167         "dEQP-GLES3.functional.uniform_api.value.assigned",
168         ".by_value.render.array_in_struct.float_vec4_both");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038170,
171         "dEQP-GLES3.functional.uniform_api.value.assigned",
172         ".by_value.render.array_in_struct.int_ivec4_vertex");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038171,
175         "dEQP-GLES3.functional.uniform_api.value.assigned.",
176         "by_value.render.array_in_struct.int_ivec4_fragment");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038172,
179         "dEQP-GLES3.functional.uniform_api.value.assigne",
180         "d.by_value.render.array_in_struct.int_ivec4_both");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038173,
183         "dEQP-GLES3.functional.uniform_api.value.assigned.",
184         "by_value.render.array_in_struct.uint_uvec4_vertex");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038174,
187         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
188         "y_value.render.array_in_struct.uint_uvec4_fragment");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038175,
191         "dEQP-GLES3.functional.uniform_api.value.assigned",
192         ".by_value.render.array_in_struct.uint_uvec4_both");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038176,
195         "dEQP-GLES3.functional.uniform_api.value.assigned.",
196         "by_value.render.array_in_struct.bool_bvec4_vertex");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038177,
199         "dEQP-GLES3.functional.uniform_api.value.assigned.b",
200         "y_value.render.array_in_struct.bool_bvec4_fragment");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038178,
203         "dEQP-GLES3.functional.uniform_api.value.assigned",
204         ".by_value.render.array_in_struct.bool_bvec4_both");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038179,
207         "dEQP-GLES3.functional.uniform_api.value.assigned.by_va",
208         "lue.render.array_in_struct.sampler2D_samplerCube_vertex");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038180,
211         "dEQP-GLES3.functional.uniform_api.value.assigned.by_val",
212         "ue.render.array_in_struct.sampler2D_samplerCube_fragment");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles30038TestSuite, TestCase_038181,
215         "dEQP-GLES3.functional.uniform_api.value.assigned.by_v",
216         "alue.render.array_in_struct.sampler2D_samplerCube_both");
217