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 "../ActsDeqpgles30001TestSuite.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(ActsDeqpgles30001TestSuite, TestCase_000822,
27         "dEQP-GLES3.functional.shaders.preprocessor.ob",
28         "ject_redefinitions.invalid_object_ident_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000823,
31         "dEQP-GLES3.functional.shaders.preprocessor.obj",
32         "ect_redefinitions.invalid_object_ident_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000824,
35         "dEQP-GLES3.functional.shaders.preprocessor.objec",
36         "t_redefinitions.invalid_object_whitespace_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000825,
39         "dEQP-GLES3.functional.shaders.preprocessor.object",
40         "_redefinitions.invalid_object_whitespace_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000826,
43         "dEQP-GLES3.functional.shaders.preprocessor.o",
44         "bject_redefinitions.invalid_object_op_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000827,
47         "dEQP-GLES3.functional.shaders.preprocessor.ob",
48         "ject_redefinitions.invalid_object_op_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000828,
51         "dEQP-GLES3.functional.shaders.preprocessor.objec",
52         "t_redefinitions.invalid_object_floatval_1_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000829,
55         "dEQP-GLES3.functional.shaders.preprocessor.object",
56         "_redefinitions.invalid_object_floatval_1_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000830,
59         "dEQP-GLES3.functional.shaders.preprocessor.objec",
60         "t_redefinitions.invalid_object_floatval_2_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000831,
63         "dEQP-GLES3.functional.shaders.preprocessor.object",
64         "_redefinitions.invalid_object_floatval_2_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000832,
67         "dEQP-GLES3.functional.shaders.preprocessor.obje",
68         "ct_redefinitions.invalid_object_intval_1_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000833,
71         "dEQP-GLES3.functional.shaders.preprocessor.objec",
72         "t_redefinitions.invalid_object_intval_1_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000834,
75         "dEQP-GLES3.functional.shaders.preprocessor.obje",
76         "ct_redefinitions.invalid_object_intval_2_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000835,
79         "dEQP-GLES3.functional.shaders.preprocessor.objec",
80         "t_redefinitions.invalid_object_intval_2_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000836,
83         "dEQP-GLES3.functional.shaders.preprocessor.o",
84         "bject_redefinitions.redefine_object_1_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000837,
87         "dEQP-GLES3.functional.shaders.preprocessor.ob",
88         "ject_redefinitions.redefine_object_1_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000838,
91         "dEQP-GLES3.functional.shaders.preprocessor.obj",
92         "ect_redefinitions.redefine_object_ifdef_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000839,
95         "dEQP-GLES3.functional.shaders.preprocessor.obje",
96         "ct_redefinitions.redefine_object_ifdef_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000840,
99         "dEQP-GLES3.functional.shaders.preprocessor.object",
100         "_redefinitions.redefine_object_undef_ifdef_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000841,
103         "dEQP-GLES3.functional.shaders.preprocessor.object_",
104         "redefinitions.redefine_object_undef_ifdef_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000842,
107         "dEQP-GLES3.functional.shaders.preprocessor.obj",
108         "ect_redefinitions.redefine_object_ifndef_vertex");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000843,
111         "dEQP-GLES3.functional.shaders.preprocessor.obje",
112         "ct_redefinitions.redefine_object_ifndef_fragment");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000844,
115         "dEQP-GLES3.functional.shaders.preprocessor.objec",
116         "t_redefinitions.redefine_object_defined_1_vertex");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000845,
119         "dEQP-GLES3.functional.shaders.preprocessor.object",
120         "_redefinitions.redefine_object_defined_1_fragment");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000846,
123         "dEQP-GLES3.functional.shaders.preprocessor.objec",
124         "t_redefinitions.redefine_object_defined_2_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000847,
127         "dEQP-GLES3.functional.shaders.preprocessor.object",
128         "_redefinitions.redefine_object_defined_2_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000848,
131         "dEQP-GLES3.functional.shaders.preprocessor.obje",
132         "ct_redefinitions.redefine_object_comment_vertex");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000849,
135         "dEQP-GLES3.functional.shaders.preprocessor.objec",
136         "t_redefinitions.redefine_object_comment_fragment");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000850,
139         "dEQP-GLES3.functional.shaders.preprocessor.object_re",
140         "definitions.redefine_object_multiline_comment_vertex");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000851,
143         "dEQP-GLES3.functional.shaders.preprocessor.object_red",
144         "efinitions.redefine_object_multiline_comment_fragment");
145