1# Copyright (c) 2024 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.gni") 15import("//build/ohos_var.gni") 16import("//build/test.gni") 17import("//foundation/deviceprofile/device_info_manager/deviceprofile.gni") 18 19module_output_path = "device_info_manager/device_info_manager" 20 21ohos_unittest("DeviceProfileTest") { 22 module_out_path = module_output_path 23 cflags = [ 24 "-Dprivate=public", 25 "-Dprotected=public", 26 ] 27 include_dirs = [ 28 "include/interfaces", 29 "include/constants", 30 "include/utils", 31 ] 32 33 sources = [ "device_profile_test.cpp" ] 34 35 deps = [ "${device_profile_common}:distributed_device_profile_common" ] 36 37 defines = [ 38 "HI_LOG_ENABLE", 39 "DH_LOG_TAG=\"DeviceProfileTest\"", 40 "LOG_DOMAIN=0xD004400", 41 ] 42 43 external_deps = [ 44 "access_token:libaccesstoken_sdk", 45 "cJSON:cjson", 46 "c_utils:utils", 47 "device_manager:devicemanagersdk", 48 "dmsfwk:common_sdk", 49 "eventhandler:libeventhandler", 50 "hilog:libhilog", 51 "init:libbegetutil", 52 "ipc:ipc_core", 53 "relational_store:native_rdb", 54 "safwk:system_ability_fwk", 55 "samgr:samgr_proxy", 56 ] 57} 58 59group("device_profile_test") { 60 testonly = true 61 deps = [ ":DeviceProfileTest" ] 62} 63