1f8af9c48Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
2f8af9c48Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f8af9c48Sopenharmony_ci# you may not use this file except in compliance with the License.
4f8af9c48Sopenharmony_ci# You may obtain a copy of the License at
5f8af9c48Sopenharmony_ci#
6f8af9c48Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f8af9c48Sopenharmony_ci#
8f8af9c48Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f8af9c48Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f8af9c48Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f8af9c48Sopenharmony_ci# See the License for the specific language governing permissions and
12f8af9c48Sopenharmony_ci# limitations under the License.
13f8af9c48Sopenharmony_ci
14f8af9c48Sopenharmony_ciimport("//build/ohos.gni")
15f8af9c48Sopenharmony_ciimport("//build/ohos_var.gni")
16f8af9c48Sopenharmony_ciimport("//build/test.gni")
17f8af9c48Sopenharmony_ciimport("//foundation/deviceprofile/device_info_manager/deviceprofile.gni")
18f8af9c48Sopenharmony_ci
19f8af9c48Sopenharmony_cimodule_output_path = "device_info_manager/commontest"
20f8af9c48Sopenharmony_ci
21f8af9c48Sopenharmony_ciohos_unittest("DeviceProfileTest") {
22f8af9c48Sopenharmony_ci  module_out_path = module_output_path
23f8af9c48Sopenharmony_ci
24f8af9c48Sopenharmony_ci  include_dirs = [
25f8af9c48Sopenharmony_ci    "include/interfaces",
26f8af9c48Sopenharmony_ci    "include/constants",
27f8af9c48Sopenharmony_ci    "include/utils",
28f8af9c48Sopenharmony_ci  ]
29f8af9c48Sopenharmony_ci
30f8af9c48Sopenharmony_ci  sources = [ "device_profile_test.cpp" ]
31f8af9c48Sopenharmony_ci
32f8af9c48Sopenharmony_ci  deps = [ "${device_profile_common}:distributed_device_profile_common" ]
33f8af9c48Sopenharmony_ci
34f8af9c48Sopenharmony_ci  defines = [
35f8af9c48Sopenharmony_ci    "HI_LOG_ENABLE",
36f8af9c48Sopenharmony_ci    "DH_LOG_TAG=\"DeviceProfileTest\"",
37f8af9c48Sopenharmony_ci    "LOG_DOMAIN=0xD004400",
38f8af9c48Sopenharmony_ci  ]
39f8af9c48Sopenharmony_ci
40f8af9c48Sopenharmony_ci  external_deps = [
41f8af9c48Sopenharmony_ci    "access_token:libaccesstoken_sdk",
42f8af9c48Sopenharmony_ci    "cJSON:cjson",
43f8af9c48Sopenharmony_ci    "c_utils:utils",
44f8af9c48Sopenharmony_ci    "device_manager:devicemanagersdk",
45f8af9c48Sopenharmony_ci    "dmsfwk:common_sdk",
46f8af9c48Sopenharmony_ci    "eventhandler:libeventhandler",
47f8af9c48Sopenharmony_ci    "hilog:libhilog",
48f8af9c48Sopenharmony_ci    "init:libbegetutil",
49f8af9c48Sopenharmony_ci    "ipc:ipc_core",
50f8af9c48Sopenharmony_ci    "relational_store:native_rdb",
51f8af9c48Sopenharmony_ci    "safwk:system_ability_fwk",
52f8af9c48Sopenharmony_ci    "samgr:samgr_proxy",
53f8af9c48Sopenharmony_ci  ]
54f8af9c48Sopenharmony_ci}
55f8af9c48Sopenharmony_ci
56f8af9c48Sopenharmony_cigroup("device_profile_test") {
57f8af9c48Sopenharmony_ci  testonly = true
58f8af9c48Sopenharmony_ci  deps = [ ":DeviceProfileTest" ]
59f8af9c48Sopenharmony_ci}
60