1 /*
2  * Copyright (c) 2022-2023 Huawei Device 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 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_MOCK_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_MOCK_H
18 
19 #include "test/mock/core/rosen/testing_image_blur_type.h"
20 #include "test/mock/core/rosen/testing_bitmap.h"
21 #include "test/mock/core/rosen/testing_brush.h"
22 #include "test/mock/core/rosen/testing_camera.h"
23 #include "test/mock/core/rosen/testing_canvas.h"
24 #include "test/mock/core/rosen/testing_color.h"
25 #include "test/mock/core/rosen/testing_color_filter.h"
26 #include "test/mock/core/rosen/testing_color_matrix.h"
27 #include "test/mock/core/rosen/testing_color_space.h"
28 #include "test/mock/core/rosen/testing_data.h"
29 #include "test/mock/core/rosen/testing_draw_cmd_list.h"
30 #include "test/mock/core/rosen/testing_filter.h"
31 #include "test/mock/core/rosen/testing_font.h"
32 #include "test/mock/core/rosen/testing_font_collection.h"
33 #include "test/mock/core/rosen/testing_image.h"
34 #include "test/mock/core/rosen/testing_image_filter.h"
35 #include "test/mock/core/rosen/testing_image_info.h"
36 #include "test/mock/core/rosen/testing_mask_filter.h"
37 #include "test/mock/core/rosen/testing_path.h"
38 #include "test/mock/core/rosen/testing_path_effect.h"
39 #include "test/mock/core/rosen/testing_pen.h"
40 #include "test/mock/core/rosen/testing_picture.h"
41 #include "test/mock/core/rosen/testing_point.h"
42 #include "test/mock/core/rosen/testing_point3.h"
43 #include "test/mock/core/rosen/testing_recording_canvas.h"
44 #include "test/mock/core/rosen/testing_recording_path_effect.h"
45 #include "test/mock/core/rosen/testing_sampling_options.h"
46 #include "test/mock/core/rosen/testing_save_layer_ops.h"
47 #include "test/mock/core/rosen/testing_scalar.h"
48 #include "test/mock/core/rosen/testing_shader_effect.h"
49 #include "test/mock/core/rosen/testing_shadowflags.h"
50 #include "test/mock/core/rosen/testing_text_blob.h"
51 #include "test/mock/core/rosen/testing_text_style.h"
52 #include "test/mock/core/rosen/testing_typeface.h"
53 #include "test/mock/core/rosen/testing_typography.h"
54 #include "test/mock/core/rosen/testing_typography_create.h"
55 #include "test/mock/core/rosen/testing_typography_style.h"
56 
57 namespace OHOS::Ace {
58 namespace RSDrawing = Testing;
59 using RSCanvas = Testing::TestingCanvas;
60 using RSPen = Testing::TestingPen;
61 using RSBrush = Testing::TestingBrush;
62 using RSPath = Testing::TestingPath;
63 using RSPathOp = Testing::TestingPathOp;
64 using RSImage = Testing::TestingImage;
65 using RSShaderEffect = Testing::TestingShaderEffect;
66 using RSPathDashStyle = Testing::TestingPathDashStyle;
67 using RSPathDirection = Testing::TestingPathDirection;
68 using RSPathEffect = Testing::TestingPathEffect;
69 using RSFilter = Testing::TestingFilter;
70 using RSColor = Testing::TestingColor;
71 using RSMaskFilter = Testing::TestingMaskFilter;
72 using RSImageFilter = Testing::TestingImageFilter;
73 using RSBlurType = Testing::BlurType;
74 using RSTileMode = Testing::TileMode;
75 using RSBitmap = Testing::TestingBitmap;
76 using RSBitmapFormat = Testing::BitmapFormat;
77 using RSColorType = Testing::ColorType;
78 using RSAlphaType = Testing::AlphaType;
79 using RSBlendMode = Testing::BlendMode;
80 using RSCamera3D = Testing::TestingCamera;
81 using RSMatrix = Testing::TestingMatrix;
82 using RSClipOp = Testing::ClipOp;
83 using RSPoint = Testing::TestingPoint;
84 using RSPoint3 = Testing::TestingPoint3;
85 using RSShadowFlags = Testing::TestingShadowFlags;
86 using RSRect = Testing::TestingRect;
87 using RSRoundRect = Testing::TestingRoundRect;
88 using RSTextDirection = Testing::TextDirection;
89 using RSTextAlign = Testing::TextAlign;
90 using RSWordBreakType = Testing::WordBreakType;
91 using RSEllipsisMode = Testing::EllipsisMode;
92 using RSTextStyle = Testing::TestingTextStyle;
93 using RSColorQuad = uint32_t;
94 using RSScalar = float;
95 using RSPathFillType = Testing::TestingPathFillType;
96 using RSParagraph = Testing::TestingTypography;
97 using RSTypographyProperties = Testing::TestingTypographyProperties;
98 using RSParagraphStyle = Testing::TestingTypographyStyle;
99 using RSParagraphBuilder = Testing::TestingTypographyCreate;
100 using RSFontCollection = Testing::TestingFontCollection;
101 using RSFontWeight = Testing::TestingFontWeight;
102 using RSTextDecoration = Testing::TestingTextDecoration;
103 using RSTextDecorationStyle = Testing::TestingTextDecorationStyle;
104 using RSSamplingOptions = Testing::TestingSamplingOptions;
105 using RSFontStyle = Testing::TestingFontStyle;
106 using RSTextBaseline = Testing::TestingTextBaseline;
107 using RSColorFilter = Testing::TestingColorFilter;
108 using RSColorMatrix = Testing::TestingColorMatrix;
109 using RSCubicResampler = Testing::TestingCubicResampler;
110 using RSColorSpace = Testing::TestingColorSpace;
111 using RSData = Testing::TestingData;
112 using RSRecordingCanvas = Testing::TestingRecordingCanvas;
113 using RSDrawCmdList = Testing::TestingDrawCmdList;
114 using RSFilterMode = Testing::FilterMode;
115 using RSMipmapMode = Testing::MipmapMode;
116 using RSRecordingPath = Testing::TestingPath;
117 using RSImageInfo = Testing::TestingImageInfo;
118 using RSRecordingPathEffect = Testing::TestingRecordingPathEffect;
119 using RSTypeface = Testing::TestingTypeface;
120 using RSTextBlob = Testing::TestingTextBlob;
121 using RSFont = Testing::TestingFont;
122 using RSTextEncoding = Testing::TestingTextEncoding;
123 using RSSaveLayerOps = Testing::TestingSaveLayerOps;
124 using RSSrcRectConstraint = Testing::SrcRectConstraint;
125 using RSImageBlurType = Testing::ImageBlurType;
126 #ifdef USE_ROSEN_DRAWING
127 using RSRecordingColorFilter = Testing::TestingColorFilter;
128 using RSRecordingImageFilter = Testing::TestingImageFilter;
129 using RSRecordingShaderEffect = Testing::TestingShaderEffect;
130 using RSPicture = Testing::TestingPicture;
131 #endif
132 #ifdef USE_GRAPHIC_TEXT_GINE
133 using RSTextRectHeightStyle = Testing::TestingTypographyProperties::TextRectHeightStyle;
134 using RSTextRectWidthStyle = Testing::TestingTypographyProperties::TextRectWidthStyle;
135 using RSTextRect = Testing::TestingTypographyProperties::TextRect;
136 #endif
137 } // namespace OHOS::Ace
138 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_MOCK_H
139