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