# 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_manager") { 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/core/common/include/host", "$hdf_core_path/framework/core/shared/include", "$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/manager", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__" ] sources = [ "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_lite_manager_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_ioservice") { 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/core/common/include/host", "$hdf_core_path/framework/core/shared/include", "$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/manager", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__" ] sources = [ "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_ioservice_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_sbuf") { 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/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/manager", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__", "__LITEOS__", ] sources = [ "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_sbuf_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_door") { 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/core/common/include/host", "$hdf_core_path/framework/core/shared/include", "$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/manager", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__", "__LITEOS__", ] sources = [ "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_ioservice_test.cpp", "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_lite_manager_test.cpp", "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_sbuf_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_pm") { 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/core/common/include/host", "$hdf_core_path/framework/core/shared/include", "$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/manager", "$hdf_core_path/framework/test/unittest/pm", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ] defines = [ "__USER__" ] sources = [ "$hdf_core_path/framework/core/manager/test/unittest/common/hdf_pm_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" ] }