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("//foundation/ability/ability_runtime/ability_runtime.gni")
15import("//foundation/ability/ability_runtime/service_router_framework/srms.gni")
16
17module_output_path = "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    "//third_party/googletest:gtest_main",
35  ]
36
37  external_deps = [
38    "ability_base:want",
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_core",
42  ]
43}
44group("unittest") {
45  testonly = true
46
47  deps = [ ":service_router_mgr_service_test" ]
48}
49