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, TC000397, "dEQP-EGL.functional.choose_config", 27 ".simple.selection_only.buffer_size"); 28 29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000398, "dEQP-EGL.functional.choose_confi", 30 "g.simple.selection_only.red_size"); 31 32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000399, "dEQP-EGL.functional.choose_config", 33 ".simple.selection_only.green_size"); 34 35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000400, "dEQP-EGL.functional.choose_confi", 36 "g.simple.selection_only.blue_size"); 37 38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000401, "dEQP-EGL.functional.choose_config.s", 39 "imple.selection_only.luminance_size"); 40 41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000402, "dEQP-EGL.functional.choose_config", 42 ".simple.selection_only.alpha_size"); 43 44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000403, "dEQP-EGL.functional.choose_config.s", 45 "imple.selection_only.alpha_mask_size"); 46 47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000404, "dEQP-EGL.functional.choose_config.sim", 48 "ple.selection_only.bind_to_texture_rgb"); 49 50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000405, "dEQP-EGL.functional.choose_config.simp", 51 "le.selection_only.bind_to_texture_rgba"); 52 53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000406, "dEQP-EGL.functional.choose_config.si", 54 "mple.selection_only.color_buffer_type"); 55 56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000407, "dEQP-EGL.functional.choose_config.", 57 "simple.selection_only.config_caveat"); 58 59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000408, "dEQP-EGL.functional.choose_confi", 60 "g.simple.selection_only.config_id"); 61 62 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000409, "dEQP-EGL.functional.choose_config", 63 ".simple.selection_only.conformant"); 64 65 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000410, "dEQP-EGL.functional.choose_config", 66 ".simple.selection_only.depth_size"); 67 68 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000411, "dEQP-EGL.functional.choose_con", 69 "fig.simple.selection_only.level"); 70 71 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000412, "dEQP-EGL.functional.choose_config.si", 72 "mple.selection_only.max_swap_interval"); 73 74 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000413, "dEQP-EGL.functional.choose_config.si", 75 "mple.selection_only.min_swap_interval"); 76 77 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000414, "dEQP-EGL.functional.choose_config.si", 78 "mple.selection_only.native_renderable"); 79 80 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000415, "dEQP-EGL.functional.choose_config.sim", 81 "ple.selection_only.native_visual_type"); 82 83 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000416, "dEQP-EGL.functional.choose_config.s", 84 "imple.selection_only.renderable_type"); 85 86 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000417, "dEQP-EGL.functional.choose_config.s", 87 "imple.selection_only.sample_buffers"); 88 89 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000418, "dEQP-EGL.functional.choose_conf", 90 "ig.simple.selection_only.samples"); 91 92 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000419, "dEQP-EGL.functional.choose_config.", 93 "simple.selection_only.stencil_size"); 94 95 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000420, "dEQP-EGL.functional.choose_config.", 96 "simple.selection_only.sur""face_type"); 97 98 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000421, "dEQP-EGL.functional.choose_config.si", 99 "mple.selection_only.transparent_type"); 100 101 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000422, "dEQP-EGL.functional.choose_config.simp", 102 "le.selection_only.transparent_red_value"); 103 104 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000423, "dEQP-EGL.functional.choose_config.simpl", 105 "e.selection_only.transparent_green_value"); 106 107 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000424, "dEQP-EGL.functional.choose_config.simpl", 108 "e.selection_only.transparent_blue_value"); 109 110 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000425, "dEQP-EGL.functional.choose_config.s", 111 "imple.selection_and_sort.buffer_size"); 112 113 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000426, "dEQP-EGL.functional.choose_config.", 114 "simple.selection_and_sort.red_size"); 115 116 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000427, "dEQP-EGL.functional.choose_config.s", 117 "imple.selection_and_sort.green_size"); 118 119 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000428, "dEQP-EGL.functional.choose_config.", 120 "simple.selection_and_sort.blue_size"); 121 122 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000429, "dEQP-EGL.functional.choose_config.sim", 123 "ple.selection_and_sort.luminance_size"); 124 125 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000430, "dEQP-EGL.functional.choose_config.s", 126 "imple.selection_and_sort.alpha_size"); 127 128 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000431, "dEQP-EGL.functional.choose_config.sim", 129 "ple.selection_and_sort.alpha_mask_size"); 130 131 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000432, "dEQP-EGL.functional.choose_config.simpl", 132 "e.selection_and_sort.bind_to_texture_rgb"); 133 134 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000433, "dEQP-EGL.functional.choose_config.simple", 135 ".selection_and_sort.bind_to_texture_rgba"); 136 137 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000434, "dEQP-EGL.functional.choose_config.simp", 138 "le.selection_and_sort.color_buffer_type"); 139 140 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000435, "dEQP-EGL.functional.choose_config.si", 141 "mple.selection_and_sort.config_caveat"); 142 143 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000436, "dEQP-EGL.functional.choose_config.", 144 "simple.selection_and_sort.config_id"); 145 146 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000437, "dEQP-EGL.functional.choose_config.s", 147 "imple.selection_and_sort.conformant"); 148 149 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000438, "dEQP-EGL.functional.choose_config.s", 150 "imple.selection_and_sort.depth_size"); 151 152 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000439, "dEQP-EGL.functional.choose_confi", 153 "g.simple.selection_and_sort.level"); 154 155 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000440, "dEQP-EGL.functional.choose_config.simp", 156 "le.selection_and_sort.max_swap_interval"); 157 158 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000441, "dEQP-EGL.functional.choose_config.simp", 159 "le.selection_and_sort.min_swap_interval"); 160 161 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000442, "dEQP-EGL.functional.choose_config.simp", 162 "le.selection_and_sort.native_renderable"); 163 164 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000443, "dEQP-EGL.functional.choose_config.simpl", 165 "e.selection_and_sort.native_visual_type"); 166 167 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000444, "dEQP-EGL.functional.choose_config.sim", 168 "ple.selection_and_sort.renderable_type"); 169 170 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000445, "dEQP-EGL.functional.choose_config.sim", 171 "ple.selection_and_sort.sample_buffers"); 172 173 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000446, "dEQP-EGL.functional.choose_config", 174 ".simple.selection_and_sort.samples"); 175 176 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000447, "dEQP-EGL.functional.choose_config.si", 177 "mple.selection_and_sort.stencil_size"); 178 179 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000448, "dEQP-EGL.functional.choose_config.si", 180 "mple.selection_and_sort.sur""face_type"); 181 182 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000449, "dEQP-EGL.functional.choose_config.simp", 183 "le.selection_and_sort.transparent_type"); 184 185 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000450, "dEQP-EGL.functional.choose_config.simple", 186 ".selection_and_sort.transparent_red_value"); 187 188 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000451, "dEQP-EGL.functional.choose_config.simple.", 189 "selection_and_sort.transparent_green_value"); 190 191 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000452, "dEQP-EGL.functional.choose_config.simple.", 192 "selection_and_sort.transparent_blue_value"); 193 194 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000453, "dEQP-EGL.functional.choose_config.rand", 195 "om.color_sizes"); 196 197 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000454, "dEQP-EGL.functional.choose_config", 198 ".random.color_depth_stencil_sizes"); 199 200 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000455, "dEQP-EGL.functional.choose_config.rand", 201 "om.buffer_sizes"); 202 203 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000456, "dEQP-EGL.functional.choose_config.rand", 204 "om.sur""face_type"); 205 206 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000457, "dEQP-EGL.functional.choose_config.rand", 207 "om.sample_buffers"); 208 209 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000458, "dEQP-EGL.functional.choose_config.rand", 210 "om.all"); 211 212 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000459, "dEQP-EGL.functional.choose_config.", 213 "color_component_type_ext.dont_care"); 214 215 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000460, "dEQP-EGL.functional.choose_confi", 216 "g.color_component_type_ext.fixed"); 217 218 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000461, "dEQP-EGL.functional.choose_confi", 219 "g.color_component_type_ext.float"); 220