1# Copyright (c) 2022 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("../../thermalmgr.gni")
14
15config("module_private_config") {
16  visibility = [ ":*" ]
17  include_dirs = [
18    "include",
19    "${thermal_service_zidl}/include",
20    "${thermal_inner_api}/native/include",
21  ]
22}
23
24ohos_shared_library("mock_thermalsrv_client") {
25  sources = [ "src/mock_thermal_mgr_client.cpp" ]
26
27  configs = [
28    "${utils_path}:utils_config",
29    "${utils_path}:coverage_flags",
30    ":module_private_config",
31  ]
32
33  deps = [ "${thermal_service_zidl}:thermalmgr_proxy" ]
34
35  external_deps = [
36    "ability_runtime:app_manager",
37    "bundle_framework:appexecfwk_base",
38    "c_utils:utils",
39    "hilog:libhilog",
40    "ipc:ipc_core",
41    "samgr:samgr_proxy",
42  ]
43  subsystem_name = "powermgr"
44  part_name = "thermal_manager"
45}
46