• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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")
15
16ohos_unittest("resmgr_test") {
17  module_out_path = "resmgr_standard/test"
18
19  defines = [ "CONFIG_HILOG" ]
20
21  sources = [
22    "unittest/common/hap_manager_test.cpp",
23    "unittest/common/hap_parser_test.cpp",
24    "unittest/common/hap_resource_test.cpp",
25    "unittest/common/locale_info_test.cpp",
26    "unittest/common/res_config_impl_test.cpp",
27    "unittest/common/res_config_test.cpp",
28    "unittest/common/res_desc_test.cpp",
29    "unittest/common/resource_manager_performance_test.cpp",
30    "unittest/common/resource_manager_test.cpp",
31    "unittest/common/string_utils_test.cpp",
32    "unittest/common/test_common.cpp",
33  ]
34
35  include_dirs = [
36    "unittest/common",
37    "//base/global/resmgr_standard/frameworks/resmgr/include",
38    "//base/global/resmgr_standard/interfaces/innerkits/include",
39    "//third_party/icu/icu4c/source",
40    "//third_party/icu/icu4c/source/common",
41    "//third_party/icu/icu4c/source/i18n",
42  ]
43
44  deps = [
45    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
46    "//third_party/googletest:gtest_main",
47  ]
48  external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
49
50  resource_config_file =
51      "//base/global/resmgr_standard/test/resource/ohos_test.xml"
52}
53
54group("unittest") {
55  testonly = true
56  deps = [ ":resmgr_test" ]
57}
58