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/lite/config/test.gni") 15 16unittest("hdf_adapter_uhdf_test_osal") { 17 output_extension = "bin" 18 output_dir = "$root_out_dir/test/unittest/hdf" 19 include_dirs = [ 20 "//third_party/googletest/googletest/include", 21 "//third_party/bounds_checking_function/include", 22 "//drivers/hdf_core/framework/include/platform", 23 "//drivers/hdf_core/framework/include/core", 24 "//drivers/hdf_core/framework/include/osal", 25 "//drivers/hdf_core/adapter/uhdf/posix/include", 26 "//drivers/hdf_core/framework/include/utils", 27 "//drivers/hdf_core/framework/include", 28 "//drivers/hdf_core/framework/test/unittest/include", 29 "//drivers/hdf_core/framework/test/unittest/osal", 30 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 31 ] 32 33 defines = [ "__USER__" ] 34 sources = [ "//drivers/hdf_core/framework/support/posix/test/unittest/common/hdf_osal_test.cpp" ] 35 deps = [ 36 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 37 "//drivers/hdf_core/adapter/build/test_common:libhdf_test_common", 38 "//drivers/hdf_core/adapter/uhdf/manager:hdf_core", 39 "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal", 40 ] 41 public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 42} 43 44unittest("hdf_adapter_uhdf_test_osal_posix") { 45 output_extension = "bin" 46 output_dir = "$root_out_dir/test/unittest/hdf" 47 include_dirs = [ 48 "//third_party/googletest/googletest/include", 49 "//third_party/bounds_checking_function/include", 50 "//drivers/hdf_core/framework/include/platform", 51 "//drivers/hdf_core/framework/include/core", 52 "//drivers/hdf_core/framework/include/osal", 53 "//drivers/hdf_core/adapter/uhdf/posix/include", 54 "//drivers/hdf_core/framework/include/utils", 55 "//drivers/hdf_core/framework/include", 56 "//drivers/hdf_core/framework/test/unittest/include", 57 "//drivers/hdf_core/framework/test/unittest/osal", 58 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 59 ] 60 61 defines = [ "__USER__" ] 62 sources = [ 63 "//drivers/hdf_core/framework/support/posix/test/unittest/common/hdf_osal_test_posix.cpp", 64 "//drivers/hdf_core/framework/test/unittest/osal/osal_all_test.c", 65 "//drivers/hdf_core/framework/test/unittest/osal/osal_get_case_test.c", 66 "//drivers/hdf_core/framework/test/unittest/osal/osal_list_test.c", 67 ] 68 deps = [ 69 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 70 "//drivers/hdf_core/adapter/uhdf/manager:hdf_core", 71 "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal", 72 ] 73 public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 74} 75