1# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni") 15 16ohos_unittest("image_provider_test_ng") { 17 module_out_path = image_test_output_path 18 19 sources = [ 20 "$ace_root/frameworks/core/components_ng/image_provider/animated_image_object.cpp", 21 "$ace_root/frameworks/core/components_ng/image_provider/image_data.cpp", 22 "$ace_root/frameworks/core/components_ng/image_provider/image_loading_context.cpp", 23 "$ace_root/frameworks/core/components_ng/image_provider/image_object.cpp", 24 "$ace_root/frameworks/core/components_ng/image_provider/image_provider.cpp", 25 "$ace_root/frameworks/core/components_ng/image_provider/image_state_manager.cpp", 26 "$ace_root/frameworks/core/components_ng/image_provider/pixel_map_image_object.cpp", 27 "$ace_root/frameworks/core/components_ng/image_provider/static_image_object.cpp", 28 "$ace_root/frameworks/core/components_ng/image_provider/svg_image_object.cpp", 29 "$ace_root/test/mock/base/mock_ace_performance_check.cpp", 30 "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", 31 "$ace_root/test/mock/base/mock_download_manager.cpp", 32 "$ace_root/test/mock/base/mock_engine_helper.cpp", 33 "$ace_root/test/mock/base/mock_foldable_window.cpp", 34 "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp", 35 "$ace_root/test/mock/base/mock_image_source.cpp", 36 "$ace_root/test/mock/base/mock_jank_frame_report.cpp", 37 "$ace_root/test/mock/base/mock_localization.cpp", 38 "$ace_root/test/mock/base/mock_ressched_report.cpp", 39 "$ace_root/test/mock/base/mock_socperf_client_impl.cpp", 40 "$ace_root/test/mock/base/mock_subwindow.cpp", 41 "$ace_root/test/mock/base/mock_system_properties.cpp", 42 "$ace_root/test/mock/core/common/mock_ace_application_info.cpp", 43 "$ace_root/test/mock/core/common/mock_ace_engine.cpp", 44 "$ace_root/test/mock/core/common/mock_ace_engine_ext.cpp", 45 "$ace_root/test/mock/core/common/mock_clipboard.cpp", 46 "$ace_root/test/mock/core/common/mock_container.cpp", 47 "$ace_root/test/mock/core/common/mock_data_detector_adapter.cpp", 48 "$ace_root/test/mock/core/common/mock_font_manager_ng.cpp", 49 "$ace_root/test/mock/core/common/mock_frame_report.cpp", 50 "$ace_root/test/mock/core/common/mock_image_analyzer_manager.cpp", 51 "$ace_root/test/mock/core/common/mock_interaction.cpp", 52 "$ace_root/test/mock/core/common/mock_layout_inspector.cpp", 53 "$ace_root/test/mock/core/common/mock_motion_path_evaluator.cpp", 54 "$ace_root/test/mock/core/common/mock_raw_recognizer.cpp", 55 "$ace_root/test/mock/core/common/mock_theme_utils.cpp", 56 "$ace_root/test/mock/core/common/mock_udmf.cpp", 57 "$ace_root/test/mock/core/event/mock_touch_event.cpp", 58 "$ace_root/test/mock/core/image_provider/mock_image_cache.cpp", 59 "$ace_root/test/mock/core/image_provider/mock_image_decoder.cpp", 60 "$ace_root/test/mock/core/image_provider/mock_image_loader.cpp", 61 "$ace_root/test/mock/core/image_provider/mock_image_source_info.cpp", 62 "$ace_root/test/mock/core/image_provider/mock_image_utils.cpp", 63 "$ace_root/test/mock/core/image_provider/mock_skia_image_data.cpp", 64 "$ace_root/test/mock/core/pipeline/mock_element_register.cpp", 65 "$ace_root/test/mock/core/pipeline/mock_pipeline_context.cpp", 66 "$ace_root/test/mock/core/render/mock_animated_image.cpp", 67 "$ace_root/test/mock/core/render/mock_animation_utils.cpp", 68 "$ace_root/test/mock/core/render/mock_canvas_image.cpp", 69 "$ace_root/test/mock/core/render/mock_font_collection.cpp", 70 "$ace_root/test/mock/core/render/mock_modifier_adapter.cpp", 71 "$ace_root/test/mock/core/render/mock_paragraph.cpp", 72 "$ace_root/test/mock/core/render/mock_pixmap_image.cpp", 73 "$ace_root/test/mock/core/render/mock_render_context_creator.cpp", 74 "$ace_root/test/mock/core/render/mock_render_surface_creator.cpp", 75 "$ace_root/test/mock/core/render/mock_skia_image.cpp", 76 "$ace_root/test/mock/core/render/mock_svg_canvas_image.cpp", 77 "$ace_root/test/mock/interfaces/mock_ace_forward_compatibility.cpp", 78 "$ace_root/test/unittest/core/pattern/text/mock/mock_text_layout_adapter.cpp", 79 "$ace_root/test/unittest/core/pipeline/mock_input_method_manager.cpp", 80 "image_provider_test_ng.cpp", 81 ] 82 83 deps = [ 84 "$ace_root/frameworks/core/components/theme:build_theme_code", 85 "$ace_root/test/unittest:ace_base", 86 "$ace_root/test/unittest:ace_components_base", 87 "$ace_root/test/unittest:ace_components_event", 88 "$ace_root/test/unittest:ace_components_gestures", 89 "$ace_root/test/unittest:ace_components_layout", 90 "$ace_root/test/unittest:ace_components_manager", 91 "$ace_root/test/unittest:ace_components_pattern", 92 "$ace_root/test/unittest:ace_components_property", 93 "$ace_root/test/unittest:ace_components_render", 94 "$ace_root/test/unittest:ace_components_syntax", 95 "$ace_root/test/unittest:ace_core_animation", 96 "$ace_root/test/unittest:ace_core_extra", 97 "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 98 "$ace_root/test/unittest:ace_unittest_log", 99 "$ace_root/test/unittest:ace_unittest_trace", 100 "$graphic_2d_path/rosen/modules/render_service_base:librender_service_base", 101 "//third_party/googletest:gmock_main", 102 ] 103 external_deps = [ "cJSON:cjson" ] 104 105 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 106} 107 108ohos_unittest("image_file_cache_test_ng") { 109 module_out_path = image_test_output_path 110 111 sources = [ 112 "$ace_root/frameworks/core/image/image_file_cache.cpp", 113 "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp", 114 "$ace_root/test/mock/base/mock_image_packer.cpp", 115 "$ace_root/test/mock/base/mock_image_source.cpp", 116 "$ace_root/test/mock/base/mock_system_properties.cpp", 117 "$ace_root/test/mock/core/image_provider/mock_skia_image_data.cpp", 118 "image_file_cache_test_ng.cpp", 119 ] 120 121 deps = [ 122 "$ace_root/test/unittest:ace_base", 123 "$ace_root/test/unittest:ace_core_extra", 124 "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 125 "$ace_root/test/unittest:ace_unittest_log", 126 "$ace_root/test/unittest:ace_unittest_trace", 127 "//third_party/googletest:gmock_main", 128 ] 129 130 external_deps = [ "skia:skia_canvaskit" ] 131 132 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 133} 134