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 "../Deqpgles2BaseFunc.h"
19 #include "../ActsDeqpgles20002TestSuite.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(ActsDeqpgles20002TestSuite, TestCase_001301,
27         "dEQP-GLES2.functional.shaders.cond",
28         "itionals.if.single_statement_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001302,
31         "dEQP-GLES2.functional.shaders.condi",
32         "tionals.if.single_statement_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001303,
35         "dEQP-GLES2.functional.shaders.condi",
36         "tionals.if.compound_statement_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001304,
39         "dEQP-GLES2.functional.shaders.condit",
40         "ionals.if.compound_statement_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001305,
43         "dEQP-GLES2.functional.shaders.condit",
44         "ionals.if.sequence_statements_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001306,
47         "dEQP-GLES2.functional.shaders.conditi",
48         "onals.if.sequence_statements_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001307,
51         "dEQP-GLES2.functional.shaders.condi",
52         "tionals.if.sequence_condition_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001308,
55         "dEQP-GLES2.functional.shaders.condit",
56         "ionals.if.sequence_condition_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001309,
59         "dEQP-GLES2.functional.shaders.condi",
60         "tionals.if.complex_condition_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001310,
63         "dEQP-GLES2.functional.shaders.condit",
64         "ionals.if.complex_condition_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001311,
67         "dEQP-GLES2.functional.shaders.",
68         "conditionals.if.if_else_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001312,
71         "dEQP-GLES2.functional.shaders.c",
72         "onditionals.if.if_else_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001313,
75         "dEQP-GLES2.functional.shaders.c",
76         "onditionals.if.if_elseif_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001314,
79         "dEQP-GLES2.functional.shaders.co",
80         "nditionals.if.if_elseif_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001315,
83         "dEQP-GLES2.functional.shaders.con",
84         "ditionals.if.if_elseif_else_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001316,
87         "dEQP-GLES2.functional.shaders.cond",
88         "itionals.if.if_elseif_else_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001317,
91         "dEQP-GLES2.functional.shaders.condit",
92         "ionals.if.mixed_if_elseif_else_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001318,
95         "dEQP-GLES2.functional.shaders.conditi",
96         "onals.if.mixed_if_elseif_else_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001319,
99         "dEQP-GLES2.functional.shaders.conditionals.",
100         "if.constant_conditional_assignment_to_matrix");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001320,
103         "dEQP-GLES2.functional.shaders.conditionals",
104         ".if.input_conditional_assignment_to_matrix");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001321,
107         "dEQP-GLES2.functional.shaders.conditionals.",
108         "if.uniform_conditional_assignment_to_matrix");
109