• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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("//build/test.gni")
15import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
16
17config("arkui_feature_param_manager_config") {
18  visibility = [ "*:*" ]
19}
20
21ohos_unittest("arkui_feature_param_manager_test") {
22  module_out_path = frameworks_test_output_path
23
24  public_configs = [ ":arkui_feature_param_manager_config" ]
25  sources = [
26    "arkui_feature_param_manager_test.cpp",
27    # xml parser
28    "$ace_root/adapter/ohos/capability/feature_config/feature_param_manager.cpp",
29    "$ace_root/adapter/ohos/capability/feature_config/config_xml_parser_base.cpp",
30    "$ace_root/adapter/ohos/capability/feature_config/features/ui_node_gc_params_parser.cpp",
31    "$ace_root/adapter/ohos/capability/feature_config/features/sync_load_parser.cpp",
32
33    # mock
34    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
35    "$ace_root/test/mock/base/mock_system_properties.cpp",
36    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
37  ]
38
39  external_deps = [
40    "googletest:gmock",
41    "googletest:gtest_main",
42    "hilog:libhilog",
43    "libxml2:libxml2",
44  ]
45  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
46}
47
48ohos_unittest("parser_test") {
49  module_out_path = frameworks_test_output_path
50
51  public_configs = [ ":arkui_feature_param_manager_config" ]
52  sources = [
53    "parser_test.cpp",
54    # xml parser
55    "$ace_root/adapter/ohos/capability/feature_config/feature_param_manager.cpp",
56    "$ace_root/adapter/ohos/capability/feature_config/config_xml_parser_base.cpp",
57    "$ace_root/adapter/ohos/capability/feature_config/features/ui_node_gc_params_parser.cpp",
58    "$ace_root/adapter/ohos/capability/feature_config/features/sync_load_parser.cpp",
59
60    # mock
61    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
62    "$ace_root/test/mock/base/mock_system_properties.cpp",
63    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
64  ]
65  external_deps = [
66    "googletest:gmock",
67    "googletest:gtest_main",
68    "hilog:libhilog",
69    "libxml2:libxml2",
70  ]
71  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
72}