# 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") import("//drivers/adapter/uhdf2/uhdf.gni") import("../../camera.gni") module_output_path = "hdf/buffer_manager_test" config("buffer_manager_utest_config") { visibility = [ ":*" ] cflags_cc = [ "-Wno-unused-parameter" ] ldflags = [ "--coverage" ] } ohos_unittest("buffer_manager_unittest") { testonly = true module_out_path = module_output_path sources = [ "unittest/buffer_manager_utest.cpp" ] include_dirs = [ "$camera_path/include", "$camera_path/buffer_manager/include", "//third_party/googletest/googletest/include", "//third_party/googletest/googletest/include", "//utils/native/base/include", "//foundation/communication/interfaces/innerkits/ipc_core/include", "//base/hiviewdfx/interfaces/innerkits/libhilog/include", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", "//drivers/framework/include/utils", "//drivers/adapter/uhdf2/osal/include", ] deps = [ "$camera_path/buffer_manager:camera_buffer_manager", "//foundation/graphic/standard:libsurface", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest", "//third_party/googletest:gtest_main", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } external_deps += [ "ipc:ipc_core", "samgr_L2:samgr_proxy", ] public_configs = [ ":buffer_manager_utest_config" ] }