• 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 = "../../.."
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  ]
31
32  deps = [ "$SOURCE_DIR/frameworks/native/observer:tel_state_registry_api" ]
33
34  external_deps = [
35    "access_token:libaccesstoken_sdk",
36    "access_token:libnativetoken",
37    "access_token:libtoken_setproc",
38    "c_utils:utils",
39    "core_service:libtel_common",
40    "core_service:tel_core_service_api",
41    "hilog:libhilog",
42    "init:libbegetutil",
43    "ipc:ipc_core",
44    "safwk:system_ability_fwk",
45    "samgr:samgr_proxy",
46  ]
47
48  defines = [
49    "TELEPHONY_LOG_TAG = \"StateRegistryTest\"",
50    "LOG_DOMAIN = 0xD000F00",
51  ]
52}
53
54group("unittest") {
55  testonly = true
56  deps = [ ":tel_state_registry_test" ]
57}
58