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/test.gni") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17module_output_path = "hdf_core/srvmgr" 18 19###########################palTest########################### 20 21ohos_unittest("HdiServiceManagerTest") { 22 module_out_path = module_output_path 23 sources = [ "servmgr/service_manager_hdi_c_test.cpp" ] 24 25 deps = [ 26 "$hdf_uhdf_path/hdi:libhdi", 27 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 28 "$hdf_uhdf_path/utils:libhdf_utils", 29 "//third_party/googletest:gmock_main", 30 "//third_party/googletest:gtest_main", 31 ] 32 33 include_dirs = [ "$hdf_uhdf_path/host/test/unittest/sample_driver" ] 34 35 external_deps = [ 36 "c_utils:utils", 37 "hiviewdfx_hilog_native:libhilog", 38 "ipc:ipc_single", 39 ] 40} 41 42ohos_unittest("HdiServiceManagerTestCC") { 43 module_out_path = module_output_path 44 sources = [ "servmgr/service_manager_hdi_test.cpp" ] 45 46 deps = [ 47 "$hdf_uhdf_path/hdi:libhdi", 48 "$hdf_uhdf_path/utils:libhdf_utils", 49 "//third_party/googletest:gmock_main", 50 "//third_party/googletest:gtest_main", 51 ] 52 53 include_dirs = [ "$hdf_uhdf_path/host/test/unittest/sample_driver" ] 54 external_deps = [ 55 "c_utils:utils", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_single", 58 "samgr:samgr_proxy", 59 ] 60} 61 62###########################end########################### 63group("unittest") { 64 testonly = true 65 deps = [ 66 ":HdiServiceManagerTest", 67 ":HdiServiceManagerTestCC", 68 ] 69} 70