fix: code improve

Signed-off-by: youshugen <youshugen@huawei.com>
This commit is contained in:
youshugen
2025-08-26 10:45:46 +08:00
parent d60cc2a299
commit ef8dd39ece
18 changed files with 22 additions and 0 deletions
@@ -50,6 +50,7 @@ ohos_fuzztest("GetBatteryConfigFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetBatteryTemperatureFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -49,6 +49,7 @@ ohos_fuzztest("GetCapacityFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetCapacityLevelFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetChargingStatusFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetCurrentAverageFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetHealthStatusFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetNowCurrentFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetPluggedTypeFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
+1
View File
@@ -49,6 +49,7 @@ ohos_fuzztest("GetPresentFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetRemainEnergyFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetRemainingChargeTimeFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetTechnologyFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("GetTotalEnergyFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
+1
View File
@@ -49,6 +49,7 @@ ohos_fuzztest("GetVoltageFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("IsBatteryConfigSupportedFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
@@ -50,6 +50,7 @@ ohos_fuzztest("SetBatteryConfigFuzzTest") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"hdf_core:libhdi",
"hdf_core:libpub_utils",
"hilog:libhilog",
+5
View File
@@ -86,6 +86,7 @@ ohos_unittest("test_battery_service_interface") {
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"googletest:gtest_main",
"hdf_core:libhdi",
"hicollie:libhicollie",
@@ -278,6 +279,7 @@ ohos_unittest("test_battery_callback") {
"ability_base:want",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"googletest:gtest_main",
"hdf_core:libhdi",
"hilog:libhilog",
@@ -327,6 +329,7 @@ ohos_unittest("test_battery_dump") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"googletest:gtest_main",
"hdf_core:libhdi",
"hilog:libhilog",
@@ -370,6 +373,7 @@ ohos_unittest("test_battery_stub") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"googletest:gtest_main",
"hdf_core:libhdi",
"hilog:libhilog",
@@ -576,6 +580,7 @@ ohos_unittest("test_batterywakeup") {
"cJSON:cjson",
"c_utils:utils",
"drivers_interface_battery:libbattery_proxy_2.0",
"eventhandler:libeventhandler",
"googletest:gtest_main",
"hdf_core:libhdi",
"hilog:libhilog",