# 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("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni") ace_unittest("pipeline_context_test_ng") { type = "pipeline" module_name = "ace_engine" module_output = "pipeline" flutter_skia = true external_deps = [ "c_utils:utils", "graphic_2d:2d_graphics", "napi:ace_napi", ] sources = [ "$ace_root/adapter/ohos/osal/ressched_report.cpp", "$ace_root/adapter/ohos/osal/thp_extra_manager_impl.cpp", "$ace_root/frameworks/base/log/ace_tracker.cpp", "$ace_root/frameworks/base/mousestyle/mouse_style.cpp", "$ace_root/frameworks/base/ressched/ressched_report.cpp", "$ace_root/frameworks/core/components_ng/manager/form_event/form_event_manager.cpp", "$ace_root/frameworks/core/components_ng/manager/form_gesture/form_gesture_manager.cpp", "$ace_root/frameworks/core/components_ng/pattern/app_bar/atomic_service_pattern.cpp", "$ace_root/frameworks/core/event/resample_algo.cpp", "$ace_root/frameworks/core/pipeline/container_window_manager.cpp", "$ace_root/frameworks/core/pipeline/pipeline_base.cpp", "$ace_root/frameworks/core/pipeline_ng/pipeline_context.cpp", "$ace_root/test/mock/adapter/mock_cpu_boost.cpp", "$ace_root/test/mock/adapter/mock_image_packer_ohos.cpp", "$ace_root/test/mock/adapter/mock_input_manager.cpp", "$ace_root/test/mock/adapter/mock_modal_ui_extension.cpp", "$ace_root/test/mock/adapter/mock_ui_session_manager.cpp", "$ace_root/test/mock/adapter/mock_view_data_wrap_ohos.cpp", "$ace_root/test/mock/base/mock_ace_performance_check.cpp", "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", "$ace_root/test/mock/base/mock_ace_trace.cpp", "$ace_root/test/mock/base/mock_download_manager.cpp", "$ace_root/test/mock/base/mock_drag_window.cpp", "$ace_root/test/mock/base/mock_engine_helper.cpp", "$ace_root/test/mock/base/mock_event_report.cpp", "$ace_root/test/mock/base/mock_foldable_window.cpp", "$ace_root/test/mock/base/mock_feature_param.cpp", "$ace_root/test/mock/base/mock_frame_report.cpp", "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp", "$ace_root/test/mock/base/mock_image_perf.cpp", "$ace_root/test/mock/base/mock_image_source.cpp", "$ace_root/test/mock/base/mock_jank_frame_report.cpp", "$ace_root/test/mock/base/mock_lifecycle_checkable.cpp", "$ace_root/test/mock/base/mock_localization.cpp", "$ace_root/test/mock/base/mock_measure_util.cpp", "$ace_root/test/mock/base/mock_mouse_style.cpp", "$ace_root/test/mock/base/mock_pixel_map.cpp", "$ace_root/test/mock/base/mock_socperf_client_impl.cpp", "$ace_root/test/mock/base/mock_subwindow.cpp", "$ace_root/test/mock/base/mock_system_properties.cpp", "$ace_root/test/mock/core/accessibility/accessibility_manager_ng.cpp", "$ace_root/test/mock/core/common/mock_ace_application_info.cpp", "$ace_root/test/mock/core/common/mock_ace_engine.cpp", "$ace_root/test/mock/core/common/mock_ace_engine_ext.cpp", "$ace_root/test/mock/core/common/mock_ai_write_adapter.cpp", "$ace_root/test/mock/core/common/mock_clipboard.cpp", "$ace_root/test/mock/core/common/mock_container.cpp", "$ace_root/test/mock/core/common/mock_data_detector_adapter.cpp", "$ace_root/test/mock/core/common/mock_data_detector_mgr.cpp", "$ace_root/test/mock/core/common/mock_font_manager.cpp", "$ace_root/test/mock/core/common/mock_font_manager_ng.cpp", "$ace_root/test/mock/core/common/mock_image_analyzer_adapter.cpp", "$ace_root/test/mock/core/common/mock_image_analyzer_manager.cpp", "$ace_root/test/mock/core/common/mock_image_analyzer_mgr.cpp", "$ace_root/test/mock/core/common/mock_interaction.cpp", "$ace_root/test/mock/core/common/mock_layout_inspector.cpp", "$ace_root/test/mock/core/common/mock_motion_path_evaluator.cpp", "$ace_root/test/mock/core/common/mock_raw_recognizer.cpp", "$ace_root/test/mock/core/common/mock_reporter.cpp", "$ace_root/test/mock/core/common/mock_resource_adapter_v2.cpp", "$ace_root/test/mock/core/common/mock_stylus_detector_default.cpp", "$ace_root/test/mock/core/common/mock_stylus_detector_mgr.cpp", "$ace_root/test/mock/core/common/mock_text_share_adapter.cpp", "$ace_root/test/mock/core/common/mock_text_translation_adapter.cpp", "$ace_root/test/mock/core/common/mock_text_translation_mgr.cpp", "$ace_root/test/mock/core/common/mock_theme_constants.cpp", "$ace_root/test/mock/core/common/mock_theme_utils.cpp", "$ace_root/test/mock/core/common/mock_udmf.cpp", "$ace_root/test/mock/core/common/mock_window.cpp", "$ace_root/test/mock/core/common/mock_xcollieInterface.cpp", "$ace_root/test/mock/core/event/mock_statusbar_event_proxy.cpp", "$ace_root/test/mock/core/event/mock_touch_event.cpp", "$ace_root/test/mock/core/image_provider/mock_image_cache.cpp", "$ace_root/test/mock/core/image_provider/mock_image_file_cache.cpp", "$ace_root/test/mock/core/image_provider/mock_image_loading_context.cpp", "$ace_root/test/mock/core/image_provider/mock_image_source_info.cpp", "$ace_root/test/mock/core/image_provider/mock_image_utils.cpp", "$ace_root/test/mock/core/package/mock_package_event_proxy.cpp", "$ace_root/test/mock/core/pattern/mock_app_bar_utils.cpp", "$ace_root/test/mock/core/pattern/mock_app_bar_view.cpp", "$ace_root/test/mock/core/pattern/mock_container_modal_utils.cpp", "$ace_root/test/mock/core/pipeline/mock_element_register.cpp", "$ace_root/test/mock/core/render/mock_animated_image.cpp", "$ace_root/test/mock/core/render/mock_animation_utils.cpp", "$ace_root/test/mock/core/render/mock_canvas_image.cpp", "$ace_root/test/mock/core/render/mock_font_collection.cpp", "$ace_root/test/mock/core/render/mock_modifier_adapter.cpp", "$ace_root/test/mock/core/render/mock_paragraph.cpp", "$ace_root/test/mock/core/render/mock_pixmap_image.cpp", "$ace_root/test/mock/core/render/mock_render_context_creator.cpp", "$ace_root/test/mock/core/render/mock_render_surface_creator.cpp", "$ace_root/test/mock/core/render/mock_texteffect.cpp", "$ace_root/test/mock/core/rosen/testing_typography_style.cpp", "$ace_root/test/mock/interfaces/mock_ace_forward_compatibility.cpp", "$ace_root/test/mock/interfaces/mock_content_modifier.cpp", "$ace_root/test/unittest/core/pattern/text/mock/mock_text_layout_adapter.cpp", "mock_input_method_manager.cpp", "mock_rosen_render_context.cpp", "pipeline_context_test_ng.cpp", "pipeline_context_test_ng_new.cpp", "pipeline_context_test_ng_two.cpp", "resample_and_velocity_test_ng.cpp", "velocity_tracker_test.cpp", ] extra_deps = [] extra_deps += [ "$ace_root/test/unittest:ace_unittest_log" ] if (defined(resourceschedule_ffrt_support) && resourceschedule_ffrt_support) { sources += [ "$ace_root/test/mock/base/mock_long_frame_report.cpp" ] } }