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, TC000028, "dEQP-EGL.functional.query_context", 27 ".simple.query_api"); 28 29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000029, "dEQP-EGL.functional.query_context", 30 ".get_current_context.rgb565_window"); 31 32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000030, "dEQP-EGL.functional.query_context", 33 ".get_current_context.rgb565_pixmap"); 34 35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000031, "dEQP-EGL.functional.query_context.", 36 "get_current_context.rgb565_pbuffer"); 37 38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000032, "dEQP-EGL.functional.query_context", 39 ".get_current_context.rgb888_window"); 40 41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000033, "dEQP-EGL.functional.query_context", 42 ".get_current_context.rgb888_pixmap"); 43 44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000034, "dEQP-EGL.functional.query_context.", 45 "get_current_context.rgb888_pbuffer"); 46 47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000035, "dEQP-EGL.functional.query_context.", 48 "get_current_context.rgba4444_window"); 49 50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000036, "dEQP-EGL.functional.query_context.", 51 "get_current_context.rgba4444_pixmap"); 52 53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000037, "dEQP-EGL.functional.query_context.g", 54 "et_current_context.rgba4444_pbuffer"); 55 56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000038, "dEQP-EGL.functional.query_context.", 57 "get_current_context.rgba5551_window"); 58 59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000039, "dEQP-EGL.functional.query_context.", 60 "get_current_context.rgba5551_pixmap"); 61 62 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000040, "dEQP-EGL.functional.query_context.g", 63 "et_current_context.rgba5551_pbuffer"); 64 65 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000041, "dEQP-EGL.functional.query_context.", 66 "get_current_context.rgba8888_window"); 67 68 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000042, "dEQP-EGL.functional.query_context.", 69 "get_current_context.rgba8888_pixmap"); 70 71 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000043, "dEQP-EGL.functional.query_context.g", 72 "et_current_context.rgba8888_pbuffer"); 73 74 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000044, "dEQP-EGL.functional.query_context.g", 75 "et_current_context.other"); 76 77 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000045, "dEQP-EGL.functional.query_context", 78 ".get_current_sur""face.rgb565_window"); 79 80 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000046, "dEQP-EGL.functional.query_context", 81 ".get_current_sur""face.rgb565_pixmap"); 82 83 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000047, "dEQP-EGL.functional.query_context.", 84 "get_current_sur""face.rgb565_pbuffer"); 85 86 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000048, "dEQP-EGL.functional.query_context", 87 ".get_current_sur""face.rgb888_window"); 88 89 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000049, "dEQP-EGL.functional.query_context", 90 ".get_current_sur""face.rgb888_pixmap"); 91 92 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000050, "dEQP-EGL.functional.query_context.", 93 "get_current_sur""face.rgb888_pbuffer"); 94 95 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000051, "dEQP-EGL.functional.query_context.", 96 "get_current_sur""face.rgba4444_window"); 97 98 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000052, "dEQP-EGL.functional.query_context.", 99 "get_current_sur""face.rgba4444_pixmap"); 100 101 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000053, "dEQP-EGL.functional.query_context.g", 102 "et_current_sur""face.rgba4444_pbuffer"); 103 104 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000054, "dEQP-EGL.functional.query_context.", 105 "get_current_sur""face.rgba5551_window"); 106 107 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000055, "dEQP-EGL.functional.query_context.", 108 "get_current_sur""face.rgba5551_pixmap"); 109 110 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000056, "dEQP-EGL.functional.query_context.g", 111 "et_current_sur""face.rgba5551_pbuffer"); 112 113 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000057, "dEQP-EGL.functional.query_context.", 114 "get_current_sur""face.rgba8888_window"); 115 116 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000058, "dEQP-EGL.functional.query_context.", 117 "get_current_sur""face.rgba8888_pixmap"); 118 119 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000059, "dEQP-EGL.functional.query_context.g", 120 "et_current_sur""face.rgba8888_pbuffer"); 121 122 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000060, "dEQP-EGL.functional.query_context.g", 123 "et_current_sur""face.other"); 124 125 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000061, "dEQP-EGL.functional.query_context", 126 ".get_current_display.rgb565_window"); 127 128 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000062, "dEQP-EGL.functional.query_context", 129 ".get_current_display.rgb565_pixmap"); 130 131 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000063, "dEQP-EGL.functional.query_context.", 132 "get_current_display.rgb565_pbuffer"); 133 134 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000064, "dEQP-EGL.functional.query_context", 135 ".get_current_display.rgb888_window"); 136 137 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000065, "dEQP-EGL.functional.query_context", 138 ".get_current_display.rgb888_pixmap"); 139 140 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000066, "dEQP-EGL.functional.query_context.", 141 "get_current_display.rgb888_pbuffer"); 142 143 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000067, "dEQP-EGL.functional.query_context.", 144 "get_current_display.rgba4444_window"); 145 146 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000068, "dEQP-EGL.functional.query_context.", 147 "get_current_display.rgba4444_pixmap"); 148 149 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000069, "dEQP-EGL.functional.query_context.g", 150 "et_current_display.rgba4444_pbuffer"); 151 152 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000070, "dEQP-EGL.functional.query_context.", 153 "get_current_display.rgba5551_window"); 154 155 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000071, "dEQP-EGL.functional.query_context.", 156 "get_current_display.rgba5551_pixmap"); 157 158 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000072, "dEQP-EGL.functional.query_context.g", 159 "et_current_display.rgba5551_pbuffer"); 160 161 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000073, "dEQP-EGL.functional.query_context.", 162 "get_current_display.rgba8888_window"); 163 164 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000074, "dEQP-EGL.functional.query_context.", 165 "get_current_display.rgba8888_pixmap"); 166 167 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000075, "dEQP-EGL.functional.query_context.g", 168 "et_current_display.rgba8888_pbuffer"); 169 170 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000076, "dEQP-EGL.functional.query_context.g", 171 "et_current_display.other"); 172 173 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000077, "dEQP-EGL.functional.query_cont", 174 "ext.query_context.rgb565_window"); 175 176 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000078, "dEQP-EGL.functional.query_cont", 177 "ext.query_context.rgb565_pixmap"); 178 179 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000079, "dEQP-EGL.functional.query_conte", 180 "xt.query_context.rgb565_pbuffer"); 181 182 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000080, "dEQP-EGL.functional.query_cont", 183 "ext.query_context.rgb888_window"); 184 185 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000081, "dEQP-EGL.functional.query_cont", 186 "ext.query_context.rgb888_pixmap"); 187 188 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000082, "dEQP-EGL.functional.query_conte", 189 "xt.query_context.rgb888_pbuffer"); 190 191 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000083, "dEQP-EGL.functional.query_conte", 192 "xt.query_context.rgba4444_window"); 193 194 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000084, "dEQP-EGL.functional.query_conte", 195 "xt.query_context.rgba4444_pixmap"); 196 197 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000085, "dEQP-EGL.functional.query_contex", 198 "t.query_context.rgba4444_pbuffer"); 199 200 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000086, "dEQP-EGL.functional.query_conte", 201 "xt.query_context.rgba5551_window"); 202 203 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000087, "dEQP-EGL.functional.query_conte", 204 "xt.query_context.rgba5551_pixmap"); 205 206 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000088, "dEQP-EGL.functional.query_contex", 207 "t.query_context.rgba5551_pbuffer"); 208 209 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000089, "dEQP-EGL.functional.query_conte", 210 "xt.query_context.rgba8888_window"); 211 212 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000090, "dEQP-EGL.functional.query_conte", 213 "xt.query_context.rgba8888_pixmap"); 214 215 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000091, "dEQP-EGL.functional.query_contex", 216 "t.query_context.rgba8888_pbuffer"); 217 218 static SHRINK_HWTEST_F(ActsEgl0001TS, TC000092, "dEQP-EGL.functional.query_contex", 219 "t.query_context.other"); 220