10704ebd2Sopenharmony_ci# Copyright (c) 2023-2024 Huawei Device Co., Ltd.
20704ebd2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30704ebd2Sopenharmony_ci# you may not use this file except in compliance with the License.
40704ebd2Sopenharmony_ci# You may obtain a copy of the License at
50704ebd2Sopenharmony_ci#
60704ebd2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70704ebd2Sopenharmony_ci#
80704ebd2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90704ebd2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100704ebd2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110704ebd2Sopenharmony_ci# See the License for the specific language governing permissions and
120704ebd2Sopenharmony_ci# limitations under the License.
130704ebd2Sopenharmony_ci
140704ebd2Sopenharmony_cibase_root = "../../../../../"
150704ebd2Sopenharmony_ciimport("//test/xts/tools/build/suite.gni")
160704ebd2Sopenharmony_cimodule_out_path = "dcts/distributedhardware"
170704ebd2Sopenharmony_ci
180704ebd2Sopenharmony_ciohos_moduletest_suite("DctsSubDistributedDpTest") {
190704ebd2Sopenharmony_ci  sanitize = {
200704ebd2Sopenharmony_ci    cfi = true
210704ebd2Sopenharmony_ci    cfi_cross_dso = true
220704ebd2Sopenharmony_ci    debug = false
230704ebd2Sopenharmony_ci  }
240704ebd2Sopenharmony_ci  module_out_path = module_out_path
250704ebd2Sopenharmony_ci  include_dirs = [
260704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include",
270704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/contentsensormanager",
280704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager",
290704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager/listener",
300704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/dfx",
310704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/dm_adapter",
320704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/permissionmanager",
330704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter",
340704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter/kvadapter",
350704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter/rdbadapter",
360704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/subscribeprofilemanager",
370704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/trustprofilemanager",
380704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/utils",
390704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/common/include/constants",
400704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/common/include/interfaces",
410704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/common/include/utils",
420704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/radar/include",
430704ebd2Sopenharmony_ci  ]
440704ebd2Sopenharmony_ci
450704ebd2Sopenharmony_ci  sources = [ "device_profile_test.cpp" ]
460704ebd2Sopenharmony_ci
470704ebd2Sopenharmony_ci  cflags = [
480704ebd2Sopenharmony_ci    "-Dprivate=public",
490704ebd2Sopenharmony_ci    "-Dprotected=public",
500704ebd2Sopenharmony_ci  ]
510704ebd2Sopenharmony_ci
520704ebd2Sopenharmony_ci  defines = [
530704ebd2Sopenharmony_ci    "HI_LOG_ENABLE",
540704ebd2Sopenharmony_ci    "DH_LOG_TAG=\"DctsSubDistributedDpTest\"",
550704ebd2Sopenharmony_ci    "LOG_DOMAIN=0xD004100",
560704ebd2Sopenharmony_ci  ]
570704ebd2Sopenharmony_ci
580704ebd2Sopenharmony_ci  deps = [
590704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/common:distributed_device_profile_common",
600704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core:distributed_device_profile_sdk",
610704ebd2Sopenharmony_ci    "$base_root/foundation/deviceprofile/device_info_manager/services/core:distributed_device_profile_svr",
620704ebd2Sopenharmony_ci    "$base_root/third_party/googletest:gtest_main",
630704ebd2Sopenharmony_ci  ]
640704ebd2Sopenharmony_ci
650704ebd2Sopenharmony_ci  external_deps = [
660704ebd2Sopenharmony_ci    "access_token:libaccesstoken_sdk",
670704ebd2Sopenharmony_ci    "access_token:libnativetoken",
680704ebd2Sopenharmony_ci    "access_token:libtoken_setproc",
690704ebd2Sopenharmony_ci    "cJSON:cjson",
700704ebd2Sopenharmony_ci    "c_utils:utils",
710704ebd2Sopenharmony_ci    "device_auth:deviceauth_sdk",
720704ebd2Sopenharmony_ci    "device_manager:devicemanagersdk",
730704ebd2Sopenharmony_ci    "dmsfwk:common_sdk",
740704ebd2Sopenharmony_ci    "eventhandler:libeventhandler",
750704ebd2Sopenharmony_ci    "hilog:libhilog",
760704ebd2Sopenharmony_ci    "hisysevent:libhisysevent",
770704ebd2Sopenharmony_ci    "hitrace:hitrace_meter",
780704ebd2Sopenharmony_ci    "init:libbegetutil",
790704ebd2Sopenharmony_ci    "ipc:ipc_core",
800704ebd2Sopenharmony_ci    "kv_store:distributeddata_inner",
810704ebd2Sopenharmony_ci    "relational_store:native_rdb",
820704ebd2Sopenharmony_ci    "safwk:system_ability_fwk",
830704ebd2Sopenharmony_ci    "samgr:samgr_proxy",
840704ebd2Sopenharmony_ci    "syscap_codec:syscap_interface_shared",
850704ebd2Sopenharmony_ci  ]
860704ebd2Sopenharmony_ci
870704ebd2Sopenharmony_ci  part_name = "device_info_manager"
880704ebd2Sopenharmony_ci  subsystem_name = "deviceprofile"
890704ebd2Sopenharmony_ci}
90