1# Copyright (c) 2021-2022 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/ohos_var.gni") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16import("//test/xts/tools/build/suite.gni") 17 18module_output_path = "hdf/location/agnss" 19ohos_moduletest_suite("HatsHdfLocationagnssTest") { 20 module_out_path = module_output_path 21 include_dirs = [ 22 "include", 23 "//test/xts/hats/hdf/location/gnss", 24 "//drivers/peripheral/location/agnss/hdi_service", 25 "//drivers/peripheral/location/gnss/hdi_service", 26 ] 27 sources = [ "agnss_hdi_test.cpp" ] 28 29 cflags = [ 30 "-Wall", 31 "-Wextra", 32 "-Werror", 33 "-fsigned-char", 34 "-fno-common", 35 "-fno-strict-aliasing", 36 ] 37 deps = [ 38 "//third_party/googletest:gmock_main", 39 "//third_party/googletest:gtest_main", 40 ] 41 if (is_standard_system) { 42 external_deps = [ 43 "c_utils:utils", 44 "cellular_data:tel_cellular_data_api", 45 "core_service:tel_core_service_api", 46 47 #"drivers_interface_location_agnss:location_agnss_idl_headers", 48 "drivers_interface_location_agnss:liblocation_agnss_proxy_1.0", 49 "drivers_interface_location_geofence:liblocation_geofence_proxy_1.0", 50 "drivers_interface_location_gnss:liblocation_gnss_proxy_1.0", 51 "hdf_core:libhdf_host", 52 "hdf_core:libhdf_ipc_adapter", 53 "hdf_core:libhdi", 54 "hiviewdfx_hilog_native:libhilog", 55 "ipc:ipc_single", 56 ] 57 } else { 58 external_deps = [ 59 "hilog:libhilog", 60 "ipc:ipc_single", 61 ] 62 } 63 64 subsystem_name = "hdf" 65 part_name = "drivers_peripheral_location_agnss" 66} 67