• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
16module_output_path = "aafwk/base_test"
17
18config("module_private_config") {
19  visibility = [ ":*" ]
20  include_dirs = [ "//utils/native/base/include" ]
21}
22
23baseImpl =
24    "//foundation/aafwk/standard/frameworks/kits/base/cpp/src/ohos/aafwk/base"
25
26ohos_unittest("base_test") {
27  module_out_path = module_output_path
28  sources = [
29    "${baseImpl}/array_wrapper.cpp",
30    "${baseImpl}/base.cpp",
31    "${baseImpl}/base_object.cpp",
32    "${baseImpl}/bool_wrapper.cpp",
33    "${baseImpl}/byte_wrapper.cpp",
34    "${baseImpl}/double_wrapper.cpp",
35    "${baseImpl}/float_wrapper.cpp",
36    "${baseImpl}/int_wrapper.cpp",
37    "${baseImpl}/long_wrapper.cpp",
38    "${baseImpl}/short_wrapper.cpp",
39    "${baseImpl}/string_wrapper.cpp",
40    "${baseImpl}/zchar_wrapper.cpp",
41    "unittest/common/base_test.cpp",
42  ]
43
44  configs = [
45    ":module_private_config",
46    "//foundation/aafwk/standard/interfaces/innerkits/base:base_public_config",
47  ]
48
49  deps = [
50    "//third_party/googletest:gtest_main",
51    "//utils/native/base:utils",
52  ]
53}
54
55group("unittest") {
56  testonly = true
57  deps = []
58
59  deps += [ ":base_test" ]
60}
61