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 "../ActsDeqpgles30005TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004926,
27        "dEQP-GLES3.functional.shaders.scoping.valid",
28        ".local_variable_hides_global_variable_vertex");
29
30static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004927,
31        "dEQP-GLES3.functional.shaders.scoping.valid.",
32        "local_variable_hides_global_variable_fragment");
33
34static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004928,
35        "dEQP-GLES3.functional.shaders.scoping.valid",
36        ".block_variable_hides_local_variable_vertex");
37
38static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004929,
39        "dEQP-GLES3.functional.shaders.scoping.valid.",
40        "block_variable_hides_local_variable_fragment");
41
42static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004930,
43        "dEQP-GLES3.functional.shaders.scoping.valid",
44        ".block_variable_hides_global_variable_vertex");
45
46static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004931,
47        "dEQP-GLES3.functional.shaders.scoping.valid.",
48        "block_variable_hides_global_variable_fragment");
49
50static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004932,
51        "dEQP-GLES3.functional.shaders.scoping.valid.for_i",
52        "nit_statement_variable_hides_local_variable_vertex");
53
54static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004933,
55        "dEQP-GLES3.functional.shaders.scoping.valid.for_in",
56        "it_statement_variable_hides_local_variable_fragment");
57
58static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004934,
59        "dEQP-GLES3.functional.shaders.scoping.valid.whil",
60        "e_condition_variable_hides_local_variable_vertex");
61
62static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004935,
63        "dEQP-GLES3.functional.shaders.scoping.valid.while",
64        "_condition_variable_hides_local_variable_fragment");
65
66static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004936,
67        "dEQP-GLES3.functional.shaders.scoping.valid.for_in",
68        "it_statement_variable_hides_global_variable_vertex");
69
70static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004937,
71        "dEQP-GLES3.functional.shaders.scoping.valid.for_ini",
72        "t_statement_variable_hides_global_variable_fragment");
73
74static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004938,
75        "dEQP-GLES3.functional.shaders.scoping.valid.whil",
76        "e_condition_variable_hides_global_variable_vertex");
77
78static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004939,
79        "dEQP-GLES3.functional.shaders.scoping.valid.while",
80        "_condition_variable_hides_global_variable_fragment");
81
82static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004940,
83        "dEQP-GLES3.functional.shaders.scoping.valid",
84        ".variable_in_if_hides_global_variable_vertex");
85
86static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004941,
87        "dEQP-GLES3.functional.shaders.scoping.valid.",
88        "variable_in_if_hides_global_variable_fragment");
89
90static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004942,
91        "dEQP-GLES3.functional.shaders.scoping.valid.varia",
92        "ble_from_outer_scope_visible_in_initializer_vertex");
93
94static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004943,
95        "dEQP-GLES3.functional.shaders.scoping.valid.variab",
96        "le_from_outer_scope_visible_in_initializer_fragment");
97
98static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004944,
99        "dEQP-GLES3.functional.shaders.scoping.valid",
100        ".local_int_variable_hides_struct_type_vertex");
101
102static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004945,
103        "dEQP-GLES3.functional.shaders.scoping.valid.",
104        "local_int_variable_hides_struct_type_fragment");
105
106static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004946,
107        "dEQP-GLES3.functional.shaders.scoping.valid.l",
108        "ocal_struct_variable_hides_struct_type_vertex");
109
110static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004947,
111        "dEQP-GLES3.functional.shaders.scoping.valid.lo",
112        "cal_struct_variable_hides_struct_type_fragment");
113
114static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004948,
115        "dEQP-GLES3.functional.shaders.scoping.va",
116        "lid.local_variable_hides_function_vertex");
117
118static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004949,
119        "dEQP-GLES3.functional.shaders.scoping.val",
120        "id.local_variable_hides_function_fragment");
121
122static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004950,
123        "dEQP-GLES3.functional.shaders.scoping.valid.f",
124        "unction_parameter_hides_global_variable_vertex");
125
126static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004951,
127        "dEQP-GLES3.functional.shaders.scoping.valid.fu",
128        "nction_parameter_hides_global_variable_fragment");
129
130static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004952,
131        "dEQP-GLES3.functional.shaders.scoping.valid",
132        ".function_parameter_hides_struct_type_vertex");
133
134static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004953,
135        "dEQP-GLES3.functional.shaders.scoping.valid.",
136        "function_parameter_hides_struct_type_fragment");
137
138static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004954,
139        "dEQP-GLES3.functional.shaders.scoping.vali",
140        "d.function_parameter_hides_function_vertex");
141
142static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004955,
143        "dEQP-GLES3.functional.shaders.scoping.valid",
144        ".function_parameter_hides_function_fragment");
145
146static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004956,
147        "dEQP-GLES3.functional.shaders.scoping.valid.local_va",
148        "riable_in_inner_scope_hides_function_parameter_vertex");
149
150static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004957,
151        "dEQP-GLES3.functional.shaders.scoping.valid.local_var",
152        "iable_in_inner_scope_hides_function_parameter_fragment");
153
154static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004958,
155        "dEQP-GLES3.functional.shaders.scop",
156        "ing.valid.redeclare_function_vertex");
157
158static SHRINK_HWTEST_F(ActsDeqpgles30005TestSuite, TestCase_004959,
159        "dEQP-GLES3.functional.shaders.scopi",
160        "ng.valid.redeclare_function_fragment");
161