• 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_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    "convert_test_tools.cpp",
23    "html_to_spanstring_test.cpp",
24    "spanstring_to_html_test.cpp",
25  ]
26
27  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
28
29  deps = [
30    "$ace_root/test/unittest:ace_base",
31    "$ace_root/test/unittest:ace_components_base",
32    "$ace_root/test/unittest:ace_components_event",
33    "$ace_root/test/unittest:ace_components_gestures",
34    "$ace_root/test/unittest:ace_components_layout",
35    "$ace_root/test/unittest:ace_components_manager",
36    "$ace_root/test/unittest:ace_components_mock",
37    "$ace_root/test/unittest:ace_components_pattern",
38    "$ace_root/test/unittest:ace_components_property",
39    "$ace_root/test/unittest:ace_components_render",
40    "$ace_root/test/unittest:ace_components_syntax",
41    "$ace_root/test/unittest:ace_core_animation",
42    "$ace_root/test/unittest:ace_core_extra",
43    "$ace_root/test/unittest:ace_engine_unittest_flutter_deps",
44    "$ace_root/test/unittest:ace_unittest_log",
45    "$graphic_2d_path/rosen/modules/render_service_client:librender_service_client",
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 = [ ":html_convert_test" ]
72}
73