123b3eb3cSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 223b3eb3cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 323b3eb3cSopenharmony_ci# you may not use this file except in compliance with the License. 423b3eb3cSopenharmony_ci# You may obtain a copy of the License at 523b3eb3cSopenharmony_ci# 623b3eb3cSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 723b3eb3cSopenharmony_ci# 823b3eb3cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 923b3eb3cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1023b3eb3cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1123b3eb3cSopenharmony_ci# See the License for the specific language governing permissions and 1223b3eb3cSopenharmony_ci# limitations under the License. 1323b3eb3cSopenharmony_ci 1423b3eb3cSopenharmony_ciimport("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni") 1523b3eb3cSopenharmony_ci 1623b3eb3cSopenharmony_ciohos_unittest("html_convert_test") { 1723b3eb3cSopenharmony_ci module_out_path = adapter_test_output_path 1823b3eb3cSopenharmony_ci include_dirs = [ "$ace_root/adapter/ohos/capability/html" ] 1923b3eb3cSopenharmony_ci sources = [ 2023b3eb3cSopenharmony_ci "$ace_root/adapter/ohos/capability/html/html_to_span.cpp", 2123b3eb3cSopenharmony_ci "$ace_root/adapter/ohos/capability/html/span_to_html.cpp", 2223b3eb3cSopenharmony_ci "html_convert_test.cpp", 2323b3eb3cSopenharmony_ci ] 2423b3eb3cSopenharmony_ci 2523b3eb3cSopenharmony_ci configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 2623b3eb3cSopenharmony_ci 2723b3eb3cSopenharmony_ci deps = [ 2823b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_base", 2923b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_base", 3023b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_event", 3123b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_gestures", 3223b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_layout", 3323b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_manager", 3423b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_mock", 3523b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_pattern", 3623b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_property", 3723b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_render", 3823b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_components_syntax", 3923b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_core_animation", 4023b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_core_extra", 4123b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 4223b3eb3cSopenharmony_ci "$ace_root/test/unittest:ace_unittest_log", 4323b3eb3cSopenharmony_ci "$graphic_2d_path/rosen/modules/render_service_client:librender_service_client", 4423b3eb3cSopenharmony_ci "//third_party/googletest:gmock_main", 4523b3eb3cSopenharmony_ci ] 4623b3eb3cSopenharmony_ci 4723b3eb3cSopenharmony_ci external_deps = [ 4823b3eb3cSopenharmony_ci "ability_base:want", 4923b3eb3cSopenharmony_ci "ability_runtime:ability_context_native", 5023b3eb3cSopenharmony_ci "ability_runtime:ability_manager", 5123b3eb3cSopenharmony_ci "ability_runtime:runtime", 5223b3eb3cSopenharmony_ci "accessibility:accessibility_common", 5323b3eb3cSopenharmony_ci "ace_engine:ace_uicontent", 5423b3eb3cSopenharmony_ci "cJSON:cjson", 5523b3eb3cSopenharmony_ci "c_utils:utils", 5623b3eb3cSopenharmony_ci "eventhandler:libeventhandler", 5723b3eb3cSopenharmony_ci "form_fwk:form_manager", 5823b3eb3cSopenharmony_ci "graphic_surface:surface", 5923b3eb3cSopenharmony_ci "hilog:libhilog", 6023b3eb3cSopenharmony_ci "input:libmmi-client", 6123b3eb3cSopenharmony_ci "ipc:ipc_core", 6223b3eb3cSopenharmony_ci "libxml2:libxml2", 6323b3eb3cSopenharmony_ci "napi:ace_napi", 6423b3eb3cSopenharmony_ci ] 6523b3eb3cSopenharmony_ci} 6623b3eb3cSopenharmony_ci 6723b3eb3cSopenharmony_cigroup("capability_unittest") { 6823b3eb3cSopenharmony_ci testonly = true 6923b3eb3cSopenharmony_ci deps = [ ":html_convert_test" ] 7023b3eb3cSopenharmony_ci} 71