# Copyright (c) 2022-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni") ohos_unittest("pipeline_context_test_ng") { module_out_path = "$basic_test_output_path/pipeline" sources = [ # animation "$ace_root/frameworks/core/animation/animatable_data.cpp", "$ace_root/frameworks/core/animation/animatable_properties.cpp", "$ace_root/frameworks/core/animation/animation_util.cpp", "$ace_root/frameworks/core/animation/anticipate_curve.cpp", "$ace_root/frameworks/core/animation/cubic_curve.cpp", "$ace_root/frameworks/core/animation/curves.cpp", "$ace_root/frameworks/core/animation/friction_motion.cpp", "$ace_root/frameworks/core/animation/property_animation.cpp", "$ace_root/frameworks/core/animation/scheduler.cpp", "$ace_root/frameworks/core/animation/scroll_motion.cpp", "$ace_root/frameworks/core/animation/spring_model.cpp", "$ace_root/frameworks/core/animation/spring_motion.cpp", "$ace_root/frameworks/core/components_ng/animation/geometry_transition.cpp", # accessibility "$ace_root/frameworks/core/accessibility/accessibility_node.cpp", # base "$ace_root/adapter/ohos/osal/ressched_report.cpp", "$ace_root/frameworks/base/geometry/animatable_dimension.cpp", "$ace_root/frameworks/base/geometry/animatable_matrix4.cpp", "$ace_root/frameworks/base/geometry/dimension.cpp", "$ace_root/frameworks/base/geometry/least_square_impl.cpp", "$ace_root/frameworks/base/geometry/matrix3.cpp", "$ace_root/frameworks/base/geometry/matrix4.cpp", "$ace_root/frameworks/base/geometry/quaternion.cpp", "$ace_root/frameworks/base/geometry/transform_util.cpp", "$ace_root/frameworks/base/json/json_util.cpp", "$ace_root/frameworks/base/log/ace_tracker.cpp", "$ace_root/frameworks/base/ressched/ressched_report.cpp", "$ace_root/frameworks/base/thread/background_task_executor.cpp", "$ace_root/frameworks/base/utils/base_id.cpp", "$ace_root/frameworks/base/utils/string_expression.cpp", "$ace_root/frameworks/base/utils/string_utils.cpp", "$ace_root/frameworks/base/utils/time_util.cpp", # common "$ace_root/frameworks/core/common/ace_engine.cpp", "$ace_root/frameworks/core/common/clipboard/clipboard_proxy.cpp", "$ace_root/frameworks/core/common/container_scope.cpp", "$ace_root/frameworks/core/common/focus_animation_manager.cpp", "$ace_root/frameworks/core/common/font_manager.cpp", "$ace_root/frameworks/core/common/ime/text_input_proxy.cpp", "$ace_root/frameworks/core/common/text_field_manager.cpp", "$ace_root/frameworks/core/common/thread_checker.cpp", "$ace_root/frameworks/core/common/vibrator/vibrator_proxy.cpp", "$ace_root/frameworks/core/components/common/properties/alignment.cpp", "$ace_root/frameworks/core/components/common/properties/border.cpp", "$ace_root/frameworks/core/components/common/properties/border_edge.cpp", "$ace_root/frameworks/core/components/common/properties/border_image.cpp", "$ace_root/frameworks/core/components/common/properties/color.cpp", "$ace_root/frameworks/core/components/common/properties/shadow_config.cpp", "$ace_root/frameworks/core/components/common/properties/text_style.cpp", "$ace_root/frameworks/core/event/back_end_event_manager.cpp", "$ace_root/frameworks/core/event/multimodal/multimodal_manager.cpp", "$ace_root/frameworks/core/event/multimodal/multimodal_scene.cpp", "$ace_root/frameworks/core/gestures/velocity_tracker.cpp", # layout "$ace_root/frameworks/core/components/common/layout/grid_column_info.cpp", "$ace_root/frameworks/core/components/common/layout/grid_container_info.cpp", "$ace_root/frameworks/core/components/common/layout/grid_system_manager.cpp", "$ace_root/frameworks/core/components/common/layout/screen_system_manager.cpp", # rendering "$ace_root/frameworks/core/components_ng/render/drawing_prop_convertor.cpp", "$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp", "$ace_root/frameworks/core/components_v2/list/render_list.cpp", "$ace_root/frameworks/core/pipeline/base/render_node.cpp", # base "$ace_root/frameworks/core/components_ng/base/frame_node.cpp", "$ace_root/frameworks/core/components_ng/base/geometry_node.cpp", "$ace_root/frameworks/core/components_ng/base/inspector.cpp", "$ace_root/frameworks/core/components_ng/base/modifier.cpp", "$ace_root/frameworks/core/components_ng/base/ui_node.cpp", "$ace_root/frameworks/core/components_ng/base/view_abstract.cpp", "$ace_root/frameworks/core/components_ng/base/view_full_update_model_ng.cpp", "$ace_root/frameworks/core/components_ng/base/view_partial_update_model_ng.cpp", "$ace_root/frameworks/core/components_ng/base/view_stack_processor.cpp", "$ace_root/frameworks/core/components_ng/layout/layout_wrapper_node.cpp", "$ace_root/frameworks/core/components_ng/syntax/lazy_for_each_node.cpp", #event "$ace_root/frameworks/core/components_ng/event/click_event.cpp", "$ace_root/frameworks/core/components_ng/event/drag_event.cpp", "$ace_root/frameworks/core/components_ng/event/event_hub.cpp", "$ace_root/frameworks/core/components_ng/event/focus_hub.cpp", "$ace_root/frameworks/core/components_ng/event/gesture_event_hub.cpp", "$ace_root/frameworks/core/components_ng/event/input_event.cpp", "$ace_root/frameworks/core/components_ng/event/input_event_hub.cpp", "$ace_root/frameworks/core/components_ng/event/long_press_event.cpp", "$ace_root/frameworks/core/components_ng/event/pan_event.cpp", "$ace_root/frameworks/core/components_ng/event/scrollable_event.cpp", "$ace_root/frameworks/core/components_ng/event/state_style_manager.cpp", "$ace_root/frameworks/core/components_ng/event/touch_event.cpp", # layout "$ace_root/frameworks/core/components_ng/layout/box_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/layout/layout_property.cpp", "$ace_root/frameworks/core/components_ng/layout/layout_wrapper.cpp", "$ace_root/frameworks/core/components_ng/layout/layout_wrapper_builder.cpp", # pattern "$ace_root/frameworks/core/components_ng/manager/select_overlay/select_overlay_manager.cpp", "$ace_root/frameworks/core/components_ng/manager/select_overlay/select_overlay_proxy.cpp", "$ace_root/frameworks/core/components_ng/pattern/app_bar/app_bar_view.cpp", "$ace_root/frameworks/core/components_ng/pattern/app_bar/atomic_service_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/bubble/bubble_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/bubble/bubble_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/bubble/bubble_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/bubble/bubble_view.cpp", "$ace_root/frameworks/core/components_ng/pattern/button/button_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/button/button_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/button/toggle_button_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/container_modal/container_modal_accessibility_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/custom/custom_measure_layout_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/custom/custom_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/custom/custom_node_base.cpp", "$ace_root/frameworks/core/components_ng/pattern/custom/custom_node_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/custom/custom_node_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/flex/flex_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/grid_container/grid_container_layout_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/grid_container/grid_container_model_ng.cpp", "$ace_root/frameworks/core/components_ng/pattern/image/image_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/image/image_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/image/image_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_accessibility_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_item/menu_item_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_layout_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/menu_view.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/multi_menu_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/sub_menu_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/wrapper/menu_wrapper_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/menu/wrapper/menu_wrapper_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/navigation/navigation_group_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/navigation/title_bar_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/navrouter/navdestination_group_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/option/option_accessibility_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/option/option_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/option/option_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/option/option_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/option/option_view.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll/inner/scroll_bar.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll/scroll_accessibility_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll/scroll_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll/scroll_model_ng.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll/scroll_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll/scroll_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll_bar/proxy/scroll_bar_proxy.cpp", "$ace_root/frameworks/core/components_ng/pattern/scroll_bar/scroll_bar_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/search/search_event_hub.cpp", "$ace_root/frameworks/core/components_ng/pattern/search/search_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_content_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/select_overlay/select_overlay_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/stack/stack_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/stage/page_event_hub.cpp", "$ace_root/frameworks/core/components_ng/pattern/stage/page_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/stage/page_transition_model_ng.cpp", "$ace_root/frameworks/core/components_ng/pattern/stage/stage_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/stage/stage_manager.cpp", "$ace_root/frameworks/core/components_ng/pattern/stage/stage_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/span_node.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_accessibility_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_content_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_layout_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_overlay_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_pattern.cpp", "$ace_root/frameworks/core/components_ng/pattern/text/text_styles.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/key_event_handler.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_accessibility_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_content_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_manager.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_overlay_modifier.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_paint_method.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_paint_property.cpp", "$ace_root/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/popup/mock_popup_base_pattern.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/ui_extension/mock_ui_extension_model_ng.cpp", "$ace_root/frameworks/core/components_ng/test/pattern/image/mock/mock_image_pattern.cpp", # property "$ace_root/frameworks/core/components_ng/property/border_property.cpp", "$ace_root/frameworks/core/components_ng/property/calc_length.cpp", "$ace_root/frameworks/core/components_ng/property/gradient_property.cpp", "$ace_root/frameworks/core/components_ng/property/grid_property.cpp", "$ace_root/frameworks/core/components_ng/property/measure_utils.cpp", "$ace_root/frameworks/core/components_ng/property/property.cpp", "$ace_root/frameworks/core/components_ng/property/safe_area_insets.cpp", # manager "$ace_root/frameworks/core/components_ng/manager/safe_area/safe_area_manager.cpp", # gestures "$ace_root/frameworks/core/components_ng/gestures/gesture_group.cpp", "$ace_root/frameworks/core/components_ng/gestures/gesture_referee.cpp", "$ace_root/frameworks/core/components_ng/gestures/long_press_gesture.cpp", "$ace_root/frameworks/core/components_ng/gestures/pan_gesture.cpp", "$ace_root/frameworks/core/components_ng/gestures/pinch_gesture.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/click_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/exclusive_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/gesture_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/long_press_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/multi_fingers_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/pan_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/parallel_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/pinch_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/recognizer_group.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/rotation_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/sequenced_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/recognizers/swipe_recognizer.cpp", "$ace_root/frameworks/core/components_ng/gestures/rotation_gesture.cpp", "$ace_root/frameworks/core/components_ng/gestures/swipe_gesture.cpp", "$ace_root/frameworks/core/components_ng/gestures/tap_gesture.cpp", # render "$ace_root/frameworks/core/components_ng/render/paint_wrapper.cpp", "$ace_root/frameworks/core/components_ng/render/render_context.cpp", # public mock "$ace_root/frameworks/base/test/mock/mock_drag_window_old.cpp", "$ace_root/frameworks/base/test/mock/mock_frame_report.cpp", "$ace_root/frameworks/base/test/mock/mock_mouse_style.cpp", "$ace_root/frameworks/base/test/mock/mock_socperf_client_impl.cpp", "$ace_root/frameworks/base/test/mock/mock_subwindow_manager.cpp", "$ace_root/frameworks/base/test/mock/mock_system_properties.cpp", "$ace_root/frameworks/base/test/mock/mock_trace_id_impl.cpp", "$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp", "$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp", "$ace_root/frameworks/core/common/test/mock/mock_layout_inspector.cpp", "$ace_root/frameworks/core/common/test/mock/mock_text_editing_value.cpp", "$ace_root/frameworks/core/common/test/mock/mock_watch_dog.cpp", "$ace_root/frameworks/core/components_ng/test/event/scrollable_event/mock_scrollable.cpp", "$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp", "$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_cache.cpp", "$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_loading_context.cpp", "$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_painter.cpp", "$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_source_info.cpp", "$ace_root/frameworks/core/components_ng/test/mock/manager/drag_drop/mock_drag_drop_proxy.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/root/mock_root_layout_algorithm.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/scroll/mock_scroll_bar_overlay_modifier.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/scroll/mock_scroll_bar_painter.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/scroll/mock_scroll_fade_painter.cpp", "$ace_root/frameworks/core/components_ng/test/mock/pattern/scrollable/mock_scrollable_pattern.cpp", "$ace_root/frameworks/core/components_ng/test/mock/render/mock_animation_utils.cpp", "$ace_root/frameworks/core/components_ng/test/mock/render/mock_modifier_adapter.cpp", "$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp", "$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_property.cpp", "$ace_root/frameworks/core/components_ng/test/mock/rosen/testing_typography_style.cpp", "$ace_root/frameworks/core/components_ng/test/mock/syntax/mock_for_each_node.cpp", "$ace_root/frameworks/core/components_ng/test/pattern/text/mock/mock_text_layout_adapter.cpp", "$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp", "$ace_root/test/mock/adapter/mock_app_bar_helper_impl.cpp", "$ace_root/test/mock/base/mock_event_report.cpp", "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp", "$ace_root/test/mock/core/common/mock_container.cpp", "$ace_root/test/mock/core/common/mock_font_loader_ng.cpp", "$ace_root/test/mock/core/common/mock_font_manager.cpp", "$ace_root/test/mock/core/common/mock_window.cpp", "$ace_root/test/mock/core/pattern/container_modal/mock_container_modal_pattern.cpp", "$ace_root/test/mock/core/pattern/container_modal/mock_container_modal_view.cpp", "$ace_root/test/mock/core/pattern/container_modal/mock_container_modal_view_enhance.cpp", "$ace_root/test/mock/core/render/mock_font_collection.cpp", "$ace_root/test/mock/core/render/mock_paragraph.cpp", "$ace_root/test/unittest/core/pipeline/mock_drag_drop_manager.cpp", "$ace_root/test/unittest/core/pipeline/mock_event_manager.cpp", "$ace_root/test/unittest/core/pipeline/mock_full_screen_manager.cpp", "$ace_root/test/unittest/core/pipeline/mock_overlay_manager.cpp", "$ace_root/test/unittest/core/pipeline/mock_shared_overlay_manager.cpp", # test file "$ace_root/frameworks/core/pipeline/pipeline_base.cpp", "$ace_root/frameworks/core/pipeline_ng/pipeline_context.cpp", "$ace_root/frameworks/core/pipeline_ng/ui_task_scheduler.cpp", "$ace_root/test/unittest/core/pipeline/pipeline_context_test_ng.cpp", ] deps = [ "$ace_root/frameworks/base:ace_memory_monitor_ohos", "$ace_root/frameworks/core/components/theme:ace_core_components_theme_ohos", "$ace_root/frameworks/core/components/theme:build_theme_code", "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", "$ace_root/test/unittest:ace_unittest_log", "$ace_root/test/unittest:ace_unittest_trace", "$cjson_root:cjson", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gmock_main", ] configs = [ "$ace_root/test/unittest:ace_unittest_config" ] }