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, TC003351, "dEQP-EGL.functional.resize.sur",
27     "face_size.shrink");
28 
29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003352, "dEQP-EGL.functional.resize.sur",
30     "face_size.grow");
31 
32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003353, "dEQP-EGL.functional.resize.sur",
33     "face_size.stretch_width");
34 
35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003354, "dEQP-EGL.functional.resize.sur",
36     "face_size.stretch_height");
37 
38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003355, "dEQP-EGL.functional.resize.back_buf",
39     "fer.shrink");
40 
41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003356, "dEQP-EGL.functional.resize.back_buff",
42     "er.grow");
43 
44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003357, "dEQP-EGL.functional.resize.back_buff",
45     "er.stretch_width");
46 
47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003358, "dEQP-EGL.functional.resize.back_buff",
48     "er.stretch_height");
49 
50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003359, "dEQP-EGL.functional.resize.pixel_den",
51     "sity.shrink");
52 
53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003360, "dEQP-EGL.functional.resize.pixel_den",
54     "sity.grow");
55 
56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003361, "dEQP-EGL.functional.resize.pixel_den",
57     "ity.stretch_width");
58 
59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003362, "dEQP-EGL.functional.resize.pixel_dens",
60     "ity.stretch_height");
61