• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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("//base\telephony/data_storage/data_storage_ability_runtime.gni")
15import("//build/ohos.gni")
16SOURCE_DIR = "//base/telephony/data_storage"
17
18ohos_executable("tel_data_storage_test") {
19  sources = [ "$SOURCE_DIR/test/unittest/data_test/data_storage_test.cpp" ]
20
21  include_dirs = [
22    "$SOURCE_DIR/common/include",
23    "$SOURCE_DIR/sim/include",
24    "$SOURCE_DIR/pdp_profile/include",
25    "$SOURCE_DIR/sms_mms/include",
26    "$SOURCE_DIR/opkey/include",
27  ]
28
29  deps = [
30    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
31    "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native",
32    "${ability_runtime_path}/frameworks/native/ability/native:data_ability_helper",
33    "//base/global/system_resources/systemres:systemres_hap",
34  ]
35
36  external_deps = [
37    "ability_base:want",
38    "ability_base:zuri",
39    "c_utils:utils",
40    "common_event_service:cesfwk_innerkits",
41    "eventhandler:libeventhandler",
42    "hiviewdfx_hilog_native:libhilog",
43    "ipc:ipc_core",
44    "relational_store:native_appdatafwk",
45    "relational_store:native_dataability",
46    "relational_store:native_rdb",
47    "resource_management:global_resmgr",
48    "safwk:system_ability_fwk",
49    "samgr:samgr_proxy",
50  ]
51  defines = [
52    "TELEPHONY_LOG_TAG = \"DataStorageUTest\"",
53    "LOG_DOMAIN = 0xD000F00",
54  ]
55  part_name = "data_storage"
56  subsystem_name = "telephony"
57}
58