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