• 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("//build/test.gni")
15SOURCE_DIR = "//base/telephony/data_storage"
16
17ohos_unittest("tel_data_storage_gtest") {
18  part_name = "data_storage"
19  subsystem_name = "telephony"
20  test_module = "tel_data_storage_gtest"
21  module_out_path = part_name + "/" + test_module
22
23  sources = [ "$SOURCE_DIR/test/unittest/data_gtest/data_storage_gtest.cpp" ]
24
25  include_dirs = [
26    "$SOURCE_DIR/common/include",
27    "$SOURCE_DIR/sim/include",
28    "$SOURCE_DIR/pdp_profile/include",
29    "$SOURCE_DIR/sms_mms/include",
30  ]
31
32  if ("${product_name}" == "rk3568" || "${product_name}" == "DAYU") {
33    defines = [ "TEL_TEST_UNSUPPORT" ]
34  }
35
36  deps = [
37    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
38    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
39    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
40    "//utils/native/base:utils",
41  ]
42
43  external_deps = [
44    "ability_base:want",
45    "ces_standard:cesfwk_innerkits",
46    "eventhandler:libeventhandler",
47    "hiviewdfx_hilog_native:libhilog",
48    "ipc:ipc_core",
49    "native_appdatamgr:native_appdatafwk",
50    "native_appdatamgr:native_dataability",
51    "native_appdatamgr:native_rdb",
52    "safwk:system_ability_fwk",
53    "samgr_standard:samgr_proxy",
54  ]
55}
56
57group("unittest") {
58  testonly = true
59  deps = [ ":tel_data_storage_gtest" ]
60}
61