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, TC002601, "dEQP-EGL.functional.preserve_swap.p", 27 "reserve.no_read_before_swap.no_draw"); 28 29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002602, "dEQP-EGL.functional.preserve_swap.pr", 30 "eserve.no_read_before_swap.post_clear"); 31 32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002603, "dEQP-EGL.functional.preserve_swap.pre", 33 "serve.no_read_before_swap.post_render"); 34 35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002604, "dEQP-EGL.functional.preserve_swap.pr", 36 "eserve.no_read_before_swap.pre_clear"); 37 38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002605, "dEQP-EGL.functional.preserve_swap.preserv", 39 "e.no_read_before_swap.pre_clear_post_clear"); 40 41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002606, "dEQP-EGL.functional.preserve_swap.preserve", 42 ".no_read_before_swap.pre_clear_post_render"); 43 44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002607, "dEQP-EGL.functional.preserve_swap.pr", 45 "eserve.no_read_before_swap.pre_render"); 46 47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002608, "dEQP-EGL.functional.preserve_swap.preserve", 48 ".no_read_before_swap.pre_render_post_clear"); 49 50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002609, "dEQP-EGL.functional.preserve_swap.preserve", 51 ".no_read_before_swap.pre_render_post_render"); 52 53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002610, "dEQP-EGL.functional.preserve_swap", 54 ".preserve.read_before_swap.no_draw"); 55 56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002611, "dEQP-EGL.functional.preserve_swap.p", 57 "reserve.read_before_swap.post_clear"); 58 59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002612, "dEQP-EGL.functional.preserve_swap.p", 60 "reserve.read_before_swap.post_render"); 61 62 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002613, "dEQP-EGL.functional.preserve_swap.", 63 "preserve.read_before_swap.pre_clear"); 64 65 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002614, "dEQP-EGL.functional.preserve_swap.preser", 66 "ve.read_before_swap.pre_clear_post_clear"); 67 68 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002615, "dEQP-EGL.functional.preserve_swap.preser", 69 "ve.read_before_swap.pre_clear_post_render"); 70 71 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002616, "dEQP-EGL.functional.preserve_swap.p", 72 "reserve.read_before_swap.pre_render"); 73 74 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002617, "dEQP-EGL.functional.preserve_swap.preser", 75 "ve.read_before_swap.pre_render_post_clear"); 76 77 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002618, "dEQP-EGL.functional.preserve_swap.preserv", 78 "e.read_before_swap.pre_render_post_render"); 79 80 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002619, "dEQP-EGL.functional.preserve_swap.no_p", 81 "reserve.no_read_before_swap.post_clear"); 82 83 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002620, "dEQP-EGL.functional.preserve_swap.no_p", 84 "reserve.no_read_before_swap.post_render"); 85 86 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002621, "dEQP-EGL.functional.preserve_swap.no_preser", 87 "ve.no_read_before_swap.pre_clear_post_clear"); 88 89 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002622, "dEQP-EGL.functional.preserve_swap.no_preser", 90 "ve.no_read_before_swap.pre_clear_post_render"); 91 92 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002623, "dEQP-EGL.functional.preserve_swap.no_preser", 93 "ve.no_read_before_swap.pre_render_post_clear"); 94 95 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002624, "dEQP-EGL.functional.preserve_swap.no_preserv", 96 "e.no_read_before_swap.pre_render_post_render"); 97 98 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002625, "dEQP-EGL.functional.preserve_swap.no", 99 "_preserve.read_before_swap.post_clear"); 100 101 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002626, "dEQP-EGL.functional.preserve_swap.no_", 102 "preserve.read_before_swap.post_render"); 103 104 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002627, "dEQP-EGL.functional.preserve_swap.no_pres", 105 "erve.read_before_swap.pre_clear_post_clear"); 106 107 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002628, "dEQP-EGL.functional.preserve_swap.no_prese", 108 "rve.read_before_swap.pre_clear_post_render"); 109 110 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002629, "dEQP-EGL.functional.preserve_swap.no_prese", 111 "rve.read_before_swap.pre_render_post_clear"); 112 113 static SHRINK_HWTEST_F(ActsEgl0001TS, TC002630, "dEQP-EGL.functional.preserve_swap.no_prese", 114 "rve.read_before_swap.pre_render_post_render"); 115