1# Copyright (c) 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("html_convert_test") { 17 module_out_path = adapter_test_output_path 18 include_dirs = [ "$ace_root/adapter/ohos/capability/html" ] 19 sources = [ 20 "$ace_root/adapter/ohos/capability/html/html_to_span.cpp", 21 "$ace_root/adapter/ohos/capability/html/span_to_html.cpp", 22 "html_convert_test.cpp", 23 ] 24 25 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 26 27 deps = [ 28 "$ace_root/test/unittest:ace_base", 29 "$ace_root/test/unittest:ace_components_base", 30 "$ace_root/test/unittest:ace_components_event", 31 "$ace_root/test/unittest:ace_components_gestures", 32 "$ace_root/test/unittest:ace_components_layout", 33 "$ace_root/test/unittest:ace_components_manager", 34 "$ace_root/test/unittest:ace_components_mock", 35 "$ace_root/test/unittest:ace_components_pattern", 36 "$ace_root/test/unittest:ace_components_property", 37 "$ace_root/test/unittest:ace_components_render", 38 "$ace_root/test/unittest:ace_components_syntax", 39 "$ace_root/test/unittest:ace_core_animation", 40 "$ace_root/test/unittest:ace_core_extra", 41 "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 42 "$ace_root/test/unittest:ace_unittest_log", 43 "$graphic_2d_path/rosen/modules/render_service_client:librender_service_client", 44 "//third_party/googletest:gmock_main", 45 ] 46 47 external_deps = [ 48 "ability_base:want", 49 "ability_runtime:ability_context_native", 50 "ability_runtime:ability_manager", 51 "ability_runtime:runtime", 52 "accessibility:accessibility_common", 53 "ace_engine:ace_uicontent", 54 "cJSON:cjson", 55 "c_utils:utils", 56 "eventhandler:libeventhandler", 57 "form_fwk:form_manager", 58 "graphic_surface:surface", 59 "hilog:libhilog", 60 "input:libmmi-client", 61 "ipc:ipc_core", 62 "libxml2:libxml2", 63 "napi:ace_napi", 64 ] 65} 66 67group("capability_unittest") { 68 testonly = true 69 deps = [ ":html_convert_test" ] 70} 71