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