# Copyright (c) 2021-2023 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/lite/config/test.gni") hdf_core_path = "./../../../../.." unittest("hdf_adapter_uhdf_test_osal") { output_extension = "bin" output_dir = "$root_out_dir/test/unittest/hdf" include_dirs = [ "//third_party/googletest/googletest/include", "//third_party/bounds_checking_function/include", "$hdf_core_path/framework/include/platform", "$hdf_core_path/framework/include/core", "$hdf_core_path/framework/include/osal", "$hdf_core_path/adapter/uhdf/posix/include", "$hdf_core_path/framework/include/utils", "$hdf_core_path/framework/include", "$hdf_core_path/framework/test/unittest/include", "$hdf_core_path/framework/test/unittest/osal", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__" ] sources = [ "$hdf_core_path/framework/support/posix/test/unittest/common/hdf_osal_test.cpp" ] deps = [ "$hdf_core_path/adapter/build/test_common:libhdf_test_common", "$hdf_core_path/adapter/uhdf/manager:hdf_core", "$hdf_core_path/adapter/uhdf/posix:hdf_posix_osal", "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", ] public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] } unittest("hdf_adapter_uhdf_test_osal_posix") { output_extension = "bin" output_dir = "$root_out_dir/test/unittest/hdf" include_dirs = [ "//third_party/googletest/googletest/include", "//third_party/bounds_checking_function/include", "$hdf_core_path/framework/include/platform", "$hdf_core_path/framework/include/core", "$hdf_core_path/framework/include/osal", "$hdf_core_path/adapter/uhdf/posix/include", "$hdf_core_path/framework/include/utils", "$hdf_core_path/framework/include", "$hdf_core_path/framework/test/unittest/include", "$hdf_core_path/framework/test/unittest/osal", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__" ] sources = [ "$hdf_core_path/framework/support/posix/test/unittest/common/hdf_osal_test_posix.cpp", "$hdf_core_path/framework/test/unittest/osal/osal_all_test.c", "$hdf_core_path/framework/test/unittest/osal/osal_get_case_test.c", "$hdf_core_path/framework/test/unittest/osal/osal_list_test.c", ] deps = [ "$hdf_core_path/adapter/uhdf/manager:hdf_core", "$hdf_core_path/adapter/uhdf/posix:hdf_posix_osal", "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", ] public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] }