1f16e0440Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2f16e0440Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f16e0440Sopenharmony_ci# you may not use this file except in compliance with the License.
4f16e0440Sopenharmony_ci# You may obtain a copy of the License at
5f16e0440Sopenharmony_ci#
6f16e0440Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f16e0440Sopenharmony_ci#
8f16e0440Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f16e0440Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f16e0440Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f16e0440Sopenharmony_ci# See the License for the specific language governing permissions and
12f16e0440Sopenharmony_ci# limitations under the License.
13f16e0440Sopenharmony_ci
14f16e0440Sopenharmony_ciimport("//build/test.gni")
15f16e0440Sopenharmony_ciimport("../../batterymgr.gni")
16f16e0440Sopenharmony_ci
17f16e0440Sopenharmony_ciohos_benchmarktest("BatteryBenchmarkTest") {
18f16e0440Sopenharmony_ci  module_out_path = "${module_output_path}"
19f16e0440Sopenharmony_ci  sources = [ "battery_benchmark_test.cpp" ]
20f16e0440Sopenharmony_ci  deps = [
21f16e0440Sopenharmony_ci    "${battery_inner_api}:batterysrv_client",
22f16e0440Sopenharmony_ci    "//third_party/benchmark",
23f16e0440Sopenharmony_ci    "//third_party/googletest:gtest_main",
24f16e0440Sopenharmony_ci  ]
25f16e0440Sopenharmony_ci
26f16e0440Sopenharmony_ci  cflags = [
27f16e0440Sopenharmony_ci    "-Wall",
28f16e0440Sopenharmony_ci    "-Wextra",
29f16e0440Sopenharmony_ci    "-Werror",
30f16e0440Sopenharmony_ci    "-fsigned-char",
31f16e0440Sopenharmony_ci    "-fno-common",
32f16e0440Sopenharmony_ci    "-fno-strict-aliasing",
33f16e0440Sopenharmony_ci  ]
34f16e0440Sopenharmony_ci
35f16e0440Sopenharmony_ci  subsystem_name = "powermgr"
36f16e0440Sopenharmony_ci  part_name = "battery_manager"
37f16e0440Sopenharmony_ci}
38