1378b89b0Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2378b89b0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3378b89b0Sopenharmony_ci# you may not use this file except in compliance with the License.
4378b89b0Sopenharmony_ci# You may obtain a copy of the License at
5378b89b0Sopenharmony_ci#
6378b89b0Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7378b89b0Sopenharmony_ci#
8378b89b0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9378b89b0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10378b89b0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11378b89b0Sopenharmony_ci# See the License for the specific language governing permissions and
12378b89b0Sopenharmony_ci# limitations under the License.
13378b89b0Sopenharmony_ciimport("//build/test.gni")
14378b89b0Sopenharmony_ciimport("../../ecologicalrulemgrservice.gni")
15378b89b0Sopenharmony_ci
16378b89b0Sopenharmony_cimodule_output_path = "ecological_rule_manager/clientTest"
17378b89b0Sopenharmony_ci
18378b89b0Sopenharmony_ciconfig("module_private_config") {
19378b89b0Sopenharmony_ci  visibility = [ ":*" ]
20378b89b0Sopenharmony_ci
21378b89b0Sopenharmony_ci  include_dirs = [
22378b89b0Sopenharmony_ci    "../../services/manager/include",
23378b89b0Sopenharmony_ci    "include",
24378b89b0Sopenharmony_ci    "${innerkits_path}/include",
25378b89b0Sopenharmony_ci    "//utils/system/safwk/native/include",
26378b89b0Sopenharmony_ci    "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include",
27378b89b0Sopenharmony_ci    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
28378b89b0Sopenharmony_ci    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
29378b89b0Sopenharmony_ci  ]
30378b89b0Sopenharmony_ci}
31378b89b0Sopenharmony_ci
32378b89b0Sopenharmony_ciohos_unittest("EcologicalRuleMgrServiceClientTest") {
33378b89b0Sopenharmony_ci  module_out_path = module_output_path
34378b89b0Sopenharmony_ci
35378b89b0Sopenharmony_ci  sources = [ "ecological_rule_mgr_service_client_test.cpp" ]
36378b89b0Sopenharmony_ci
37378b89b0Sopenharmony_ci  configs = [ ":module_private_config" ]
38378b89b0Sopenharmony_ci
39378b89b0Sopenharmony_ci  deps = [
40378b89b0Sopenharmony_ci    "${ecologicalrulemgrservice_root_path}/interfaces/innerkits:erms_client",
41378b89b0Sopenharmony_ci    "//third_party/googletest:gtest_main",
42378b89b0Sopenharmony_ci  ]
43378b89b0Sopenharmony_ci
44378b89b0Sopenharmony_ci  external_deps = [
45378b89b0Sopenharmony_ci    "ability_base:want",
46378b89b0Sopenharmony_ci    "ability_runtime:runtime",
47378b89b0Sopenharmony_ci    "access_token:libaccesstoken_sdk",
48378b89b0Sopenharmony_ci    "access_token:libtokenid_sdk",
49378b89b0Sopenharmony_ci    "bundle_framework:appexecfwk_base",
50378b89b0Sopenharmony_ci    "bundle_framework:appexecfwk_core",
51378b89b0Sopenharmony_ci    "c_utils:utils",
52378b89b0Sopenharmony_ci    "hilog:libhilog",
53378b89b0Sopenharmony_ci    "ipc:ipc_core",
54378b89b0Sopenharmony_ci    "safwk:system_ability_fwk",
55378b89b0Sopenharmony_ci    "samgr:samgr_proxy",
56378b89b0Sopenharmony_ci  ]
57378b89b0Sopenharmony_ci}
58378b89b0Sopenharmony_ci
59378b89b0Sopenharmony_cigroup("unittest") {
60378b89b0Sopenharmony_ci  testonly = true
61378b89b0Sopenharmony_ci  deps = [ ":EcologicalRuleMgrServiceClientTest" ]
62378b89b0Sopenharmony_ci}
63