1# Copyright (c) 2022-2023 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")
15import("../../../device_status.gni")
16
17module_output_path = "${device_status_part_name}/"
18
19config("module_private_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [ "include" ]
23}
24
25ohos_systemtest("DeviceStatusClientTest") {
26  module_out_path = module_output_path
27
28  sources = [ "./src/devicestatus_client_test.cpp" ]
29
30  configs = [
31    "${device_status_utils_path}:devicestatus_utils_config",
32    ":module_private_config",
33  ]
34
35  deps = [
36    "${device_status_frameworks_path}/js/napi:stationary",
37    "${device_status_interfaces_path}/innerkits:devicestatus_client",
38  ]
39
40  external_deps = [
41    "ability_base:base",
42    "ability_base:want",
43    "access_token:libaccesstoken_sdk",
44    "bundle_framework:appexecfwk_base",
45    "bundle_framework:appexecfwk_core",
46    "c_utils:utils",
47    "common_event_service:cesfwk_innerkits",
48    "eventhandler:libeventhandler",
49    "googletest:gtest_main",
50    "hilog:libhilog",
51    "image_framework:image_native",
52    "ipc:ipc_single",
53    "safwk:system_ability_fwk",
54    "samgr:samgr_proxy",
55  ]
56}
57
58group("systemtest") {
59  testonly = true
60  deps = []
61
62  deps += [ ":DeviceStatusClientTest" ]
63}
64