1# Copyright (C) 2021-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/test.gni")
15SOURCE_DIR = "../../.."
16
17ohos_unittest("tel_state_registry_test") {
18  part_name = "state_registry"
19  subsystem_name = "telephony"
20  test_module = "tel_state_registry_test"
21  module_out_path = part_name + "/" + test_module
22
23  sources = [ "$SOURCE_DIR/test/unittest/state_test/state_registry_test.cpp" ]
24
25  include_dirs = [
26    "$SOURCE_DIR/interfaces/innerkits/notify",
27    "$SOURCE_DIR/frameworks/native/observer/include",
28    "$SOURCE_DIR/frameworks/native/common/include",
29    "$SOURCE_DIR/services/include",
30    "$SOURCE_DIR/services/telephony_ext_wrapper/include",
31  ]
32
33  deps = [
34    "$SOURCE_DIR:tel_state_registry",
35    "$SOURCE_DIR/frameworks/native/observer:tel_state_registry_api",
36  ]
37
38  external_deps = [
39    "ability_base:want",
40    "access_token:libaccesstoken_sdk",
41    "access_token:libnativetoken",
42    "access_token:libtoken_setproc",
43    "c_utils:utils",
44    "core_service:libtel_common",
45    "core_service:tel_core_service_api",
46    "hilog:libhilog",
47    "init:libbegetutil",
48    "ipc:ipc_core",
49    "safwk:system_ability_fwk",
50    "samgr:samgr_proxy",
51  ]
52
53  defines = [
54    "TELEPHONY_LOG_TAG = \"StateRegistryTest\"",
55    "LOG_DOMAIN = 0xD000F00",
56  ]
57}
58
59group("unittest") {
60  testonly = true
61  deps = [ ":tel_state_registry_test" ]
62}
63