• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023-2025 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("//foundation/ability/ability_runtime/ability_runtime.gni")
15import("//foundation/ability/ability_runtime/service_router_framework/srms.gni")
16
17module_output_path = "ability_runtime/ability_runtime/serviceroutermgrservice"
18
19ohos_unittest("service_router_mgr_service_test") {
20  module_out_path = module_output_path
21
22  configs = [
23    "${ability_runtime_innerkits_path}/ability_manager:ability_manager_public_config",
24    "${ability_runtime_path}/service_router_framework/interfaces/inner_api:srms_fwk_config",
25    "${ability_runtime_path}/service_router_framework/services/srms:srms_config",
26  ]
27  sources = [ "service_router_mgr_service_test.cpp" ]
28
29  cflags = []
30
31  deps = [
32    "${ability_runtime_path}/service_router_framework/services/srms:libsrms",
33    "${srms_inner_api_path}:srms_fwk",
34  ]
35
36  external_deps = [
37    "ability_base:session_info",
38    "ability_base:want",
39    "access_token:libaccesstoken_sdk",
40    "bundle_framework:appexecfwk_base",
41    "bundle_framework:libappexecfwk_common",
42    "c_utils:utils",
43    "common_event_service:cesfwk_innerkits",
44    "eventhandler:libeventhandler",
45    "googletest:gtest_main",
46    "hilog:libhilog",
47    "ipc:ipc_core",
48    "safwk:api_cache_manager",
49  ]
50}
51group("unittest") {
52  testonly = true
53
54  deps = [ ":service_router_mgr_service_test" ]
55}
56