xref: /base/powermgr/battery_manager/test/BUILD.gn (revision f16e0440)
1#Copyright (c) 2021-2024 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.
13
14import("//build/test.gni")
15
16group("battery_systemtest") {
17  testonly = true
18  deps = [ "systemtest/:systemtest" ]
19}
20
21group("battery_fuzzertest") {
22  testonly = true
23  deps = [ "fuzztest:fuzztest" ]
24}
25
26group("battery_unittest") {
27  testonly = true
28  deps = [
29    "unittest:battery_common_event_test",
30    "unittest:test_battery_proxy_mock_iremoteobject",
31    "unittest:test_battery_proxy_mock_messageparcel_write_error",
32    "unittest:test_battery_proxy_mock_parcel_read_error",
33    "unittest:test_battery_proxy_mock_sendrequest_error",
34    "unittest:test_battery_service_inner",
35    "unittest:test_battery_service_interface",
36    "unittest:test_battery_service_scenario",
37    "unittest:test_battery_stub",
38    "unittest:test_batterywakeup",
39    "unittest:test_mock_battery_config",
40  ]
41}
42
43group("battery_apitest") {
44  testonly = true
45  deps = [ "apitest:apitest" ]
46}
47
48group("battery_benchmarktest") {
49  testonly = true
50  deps = [ "benchmarktest:BatteryBenchmarkTest" ]
51}
52
53group("battery_frameworks_unittest") {
54  testonly = true
55  deps = [
56    "unittest:test_batteryclient",
57    "unittest:test_batteryclient_death",
58  ]
59}
60