• 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/test.gni")
16SOURCE_DIR = "//base/telephony/data_storage"
17
18ohos_unittest("tel_data_storage_gtest") {
19  part_name = "data_storage"
20  subsystem_name = "telephony"
21  test_module = "tel_data_storage_gtest"
22  module_out_path = part_name + "/" + test_module
23
24  sources = [ "$SOURCE_DIR/test/unittest/data_gtest/data_storage_gtest.cpp" ]
25
26  include_dirs = [
27    "$SOURCE_DIR/common/include",
28    "$SOURCE_DIR/sim/include",
29    "$SOURCE_DIR/pdp_profile/include",
30    "$SOURCE_DIR/sms_mms/include",
31    "$SOURCE_DIR/opkey/include",
32  ]
33  defines = [
34    "TELEPHONY_LOG_TAG = \"DataStorageGtest\"",
35    "LOG_DOMAIN = 0xD000F00",
36  ]
37
38  deps = [
39    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
40    "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native",
41    "${ability_runtime_path}/frameworks/native/ability/native:data_ability_helper",
42  ]
43
44  external_deps = [
45    "ability_base:want",
46    "ability_base:zuri",
47    "access_token:libaccesstoken_sdk",
48    "access_token:libnativetoken",
49    "access_token:libtoken_setproc",
50    "c_utils:utils",
51    "common_event_service:cesfwk_innerkits",
52    "eventhandler:libeventhandler",
53    "hiviewdfx_hilog_native:libhilog",
54    "ipc:ipc_core",
55    "relational_store:native_appdatafwk",
56    "relational_store:native_dataability",
57    "relational_store:native_rdb",
58    "safwk:system_ability_fwk",
59    "samgr:samgr_proxy",
60  ]
61}
62
63group("unittest") {
64  testonly = true
65  deps = [ ":tel_data_storage_gtest" ]
66}
67