• 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/sms_mms/sms_mms_aafwk.gni")
15
16#import("//build/test.gni")
17import("//build/ohos.gni")
18ohos_executable("tel_sms_mms_test") {
19  sources = [
20    "gsm_sms_sender_test.cpp",
21    "mms_msg_test.cpp",
22    "short_message_test.cpp",
23    "sms_broadcast_subscriber.cpp",
24    "sms_cb_message_test.cpp",
25    "sms_delivery_callback_test.cpp",
26    "sms_mms_test.cpp",
27    "sms_send_callback_test.cpp",
28  ]
29
30  include_dirs = []
31
32  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
33
34  deps = [
35    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
36    "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native",
37    "//base/telephony/sms_mms:tel_sms_mms",
38    "//base/telephony/sms_mms/frameworks/native:tel_sms_mms_api",
39  ]
40
41  external_deps = [
42    "ability_base:want",
43    "ability_base:zuri",
44    "access_token:libaccesstoken_sdk",
45    "access_token:libnativetoken",
46    "access_token:libtoken_setproc",
47    "bundle_framework:appexecfwk_base",
48    "c_utils:utils",
49    "common_event_service:cesfwk_innerkits",
50    "common_event_service:cesfwk_services",
51    "core_service:tel_core_service_api",
52    "eventhandler:libeventhandler",
53    "ipc:ipc_core",
54    "relational_store:native_appdatafwk",
55    "relational_store:native_dataability",
56    "relational_store:native_rdb",
57    "safwk:system_ability_fwk",
58    "samgr:samgr_proxy",
59  ]
60
61  if (is_standard_system) {
62    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
63  } else {
64    external_deps += [ "hilog:libhilog" ]
65  }
66
67  defines = [
68    "TELEPHONY_LOG_TAG = \"SmsMmmsUTest\"",
69    "LOG_DOMAIN = 0xD000F00",
70  ]
71
72  part_name = "sms_mms"
73  subsystem_name = "telephony"
74}
75