1# Copyright (c) 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.
13import("//build/test.gni")
14import("../../ecologicalrulemgrservice.gni")
15
16module_output_path = "ecological_rule_manager/clientTest"
17
18config("module_private_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [
22    "../../services/manager/include",
23    "include",
24    "${innerkits_path}/include",
25    "//utils/system/safwk/native/include",
26    "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include",
27    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
28    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
29  ]
30}
31
32ohos_unittest("EcologicalRuleMgrServiceClientTest") {
33  module_out_path = module_output_path
34
35  sources = [ "ecological_rule_mgr_service_client_test.cpp" ]
36
37  configs = [ ":module_private_config" ]
38
39  deps = [
40    "${ecologicalrulemgrservice_root_path}/interfaces/innerkits:erms_client",
41    "//third_party/googletest:gtest_main",
42  ]
43
44  external_deps = [
45    "ability_base:want",
46    "ability_runtime:runtime",
47    "access_token:libaccesstoken_sdk",
48    "access_token:libtokenid_sdk",
49    "bundle_framework:appexecfwk_base",
50    "bundle_framework:appexecfwk_core",
51    "c_utils:utils",
52    "hilog:libhilog",
53    "ipc:ipc_core",
54    "safwk:system_ability_fwk",
55  ]
56}
57
58group("unittest") {
59  testonly = true
60  deps = [ ":EcologicalRuleMgrServiceClientTest" ]
61}
62