# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") module_output_path = "aafwk/base_test" config("module_private_config") { visibility = [ ":*" ] include_dirs = [ "//utils/native/base/include" ] } baseImpl = "//foundation/aafwk/standard/frameworks/kits/base/cpp/src/ohos/aafwk/base" ohos_unittest("base_test") { module_out_path = module_output_path sources = [ "${baseImpl}/array_wrapper.cpp", "${baseImpl}/base.cpp", "${baseImpl}/base_object.cpp", "${baseImpl}/bool_wrapper.cpp", "${baseImpl}/byte_wrapper.cpp", "${baseImpl}/double_wrapper.cpp", "${baseImpl}/float_wrapper.cpp", "${baseImpl}/int_wrapper.cpp", "${baseImpl}/long_wrapper.cpp", "${baseImpl}/short_wrapper.cpp", "${baseImpl}/string_wrapper.cpp", "${baseImpl}/zchar_wrapper.cpp", "unittest/common/base_test.cpp", ] configs = [ ":module_private_config", "//foundation/aafwk/standard/interfaces/innerkits/base:base_public_config", ] deps = [ "//third_party/googletest:gtest_main", "//utils/native/base:utils", ] } group("unittest") { testonly = true deps = [] deps += [ ":base_test" ] }