From a87d1208e3b9e7b7e23a46ab2d9ed2a4f9258b88 Mon Sep 17 00:00:00 2001 From: zhuzhihui7 Date: Wed, 22 Jan 2025 10:57:43 +0800 Subject: [PATCH] =?UTF-8?q?distributed=5Fhardware=5Ffwk=E9=83=A8=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuzhihui7 --- .../test/av_trans_output/output_control_test/BUILD.gn | 3 ++- bundle.json | 3 ++- .../unittest/common/distributedhardwarefwkkit/BUILD.gn | 4 +++- .../common/ipc/distributed_hardware_proxy/BUILD.gn | 3 ++- .../test/fuzztest/accessmanager_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/accessmanageroffline_fuzzer/BUILD.gn | 3 +++ .../test/fuzztest/capabilityinfomanager_fuzzer/BUILD.gn | 3 +++ .../test/fuzztest/componentdisable_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/componentenable_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/componentloader_fuzzer/BUILD.gn | 9 +++++++-- .../test/fuzztest/componentmanager_fuzzer/BUILD.gn | 4 +++- .../test/fuzztest/dhcommtool_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/dhmanagerfactory_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/dhtransport_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/distributedfwkservices_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/enabledcompsdump_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/metainfomgr_fuzzer/BUILD.gn | 4 +++- .../test/fuzztest/publisher_fuzzer/BUILD.gn | 3 ++- .../test/fuzztest/publisheritem_fuzzer/BUILD.gn | 3 ++- .../test/fuzztest/resourcemanager_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/task_fuzzer/BUILD.gn | 5 ++++- .../test/fuzztest/versioninfomanager_fuzzer/BUILD.gn | 4 +++- .../test/unittest/common/componentloader/BUILD.gn | 6 +++++- .../common/componentmanager/component_manager/BUILD.gn | 2 ++ .../common/componentmanager/component_monitior/BUILD.gn | 3 ++- .../test/unittest/common/dbadapter/BUILD.gn | 3 ++- .../unittest/common/distributedhardwaremanager/BUILD.gn | 3 ++- .../unittest/common/distributedhardwareservice/BUILD.gn | 3 ++- .../unittest/common/hidumphelper/hidumphelper/BUILD.gn | 4 +++- .../localhardwaremanager/localhardwaremanager/BUILD.gn | 5 ++++- .../localhardwaremanager/pluginlistenerimpl/BUILD.gn | 3 ++- .../test/unittest/common/lowlatency/lowlatency/BUILD.gn | 3 ++- .../common/lowlatency/lowlatencylistener/BUILD.gn | 3 ++- .../test/unittest/common/publisher/BUILD.gn | 3 ++- .../test/unittest/common/resourcemanager/BUILD.gn | 8 +++++++- .../test/unittest/common/task/BUILD.gn | 2 +- .../test/unittest/common/transport/BUILD.gn | 2 ++ .../test/unittest/common/versioninfomanager/BUILD.gn | 3 ++- 38 files changed, 117 insertions(+), 35 deletions(-) diff --git a/av_transport/av_trans_engine/plugin/test/av_trans_output/output_control_test/BUILD.gn b/av_transport/av_trans_engine/plugin/test/av_trans_output/output_control_test/BUILD.gn index e3d5c6a4..580d80cb 100644 --- a/av_transport/av_trans_engine/plugin/test/av_trans_output/output_control_test/BUILD.gn +++ b/av_transport/av_trans_engine/plugin/test/av_trans_output/output_control_test/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2023-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -58,6 +58,7 @@ ohos_unittest("OutputControllerTest") { "cJSON:cjson", "c_utils:utils", "dsoftbus:softbus_client", + "eventhandler:libeventhandler", "googletest:gtest", "hilog:libhilog", ] diff --git a/bundle.json b/bundle.json index 313deb80..6395fa7b 100644 --- a/bundle.json +++ b/bundle.json @@ -58,7 +58,8 @@ "openssl", "ffmpeg", "zlib", - "ffrt" + "ffrt", + "libevdev" ] }, "build": { diff --git a/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/BUILD.gn b/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/BUILD.gn index 76e8592b..8f392692 100644 --- a/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/BUILD.gn +++ b/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -49,8 +49,10 @@ ohos_unittest("DistributedHardwareFwkKitTest") { external_deps = [ "cJSON:cjson", "c_utils:utils", + "hilog:libhilog", "ipc:ipc_core", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/BUILD.gn b/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/BUILD.gn index df8fb411..c64e8835 100644 --- a/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/BUILD.gn +++ b/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2025 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -64,6 +64,7 @@ ohos_unittest("DistributedHardwareProxyTest") { "cJSON:cjson", "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", "hilog:libhilog", "ipc:ipc_core", ] diff --git a/services/distributedhardwarefwkservice/test/fuzztest/accessmanager_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/accessmanager_fuzzer/BUILD.gn index 5c9e9606..4df296c7 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/accessmanager_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/accessmanager_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,8 +51,11 @@ ohos_fuzztest("AccessManagerFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/accessmanageroffline_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/accessmanageroffline_fuzzer/BUILD.gn index 189c8f81..317846a8 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/accessmanageroffline_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/accessmanageroffline_fuzzer/BUILD.gn @@ -51,8 +51,11 @@ ohos_fuzztest("AccessManagerOfflineFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/capabilityinfomanager_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/capabilityinfomanager_fuzzer/BUILD.gn index 7292c57d..5ab6c5b3 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/capabilityinfomanager_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/capabilityinfomanager_fuzzer/BUILD.gn @@ -53,9 +53,12 @@ ohos_fuzztest("CapabilityInfoManagerFuzzTest") { "cJSON:cjson", "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/componentdisable_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/componentdisable_fuzzer/BUILD.gn index 6aeb76ca..d4226586 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/componentdisable_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/componentdisable_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,8 +51,11 @@ ohos_fuzztest("ComponentDisableFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/componentenable_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/componentenable_fuzzer/BUILD.gn index 3b839b89..cb3e9e1a 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/componentenable_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/componentenable_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,8 +51,11 @@ ohos_fuzztest("ComponentEnableFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/componentloader_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/componentloader_fuzzer/BUILD.gn index d1ddf93c..f4376cf1 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/componentloader_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/componentloader_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -53,7 +53,12 @@ ohos_fuzztest("ComponentLoaderFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ "cJSON:cjson" ] + external_deps = [ + "cJSON:cjson", + "eventhandler:libeventhandler", + "hilog:libhilog", + "samgr:samgr_proxy", + ] } ############################################################################### diff --git a/services/distributedhardwarefwkservice/test/fuzztest/componentmanager_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/componentmanager_fuzzer/BUILD.gn index 37f6d670..254f56b2 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/componentmanager_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/componentmanager_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -53,7 +53,9 @@ ohos_fuzztest("ComponentManagerFuzzTest") { "c_utils:utils", "dsoftbus:softbus_client", "eventhandler:libeventhandler", + "hilog:libhilog", "ipc:ipc_single", + "samgr:samgr_proxy", ] defines = [ diff --git a/services/distributedhardwarefwkservice/test/fuzztest/dhcommtool_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/dhcommtool_fuzzer/BUILD.gn index e086dae9..79b94926 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/dhcommtool_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/dhcommtool_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -61,8 +61,11 @@ ohos_fuzztest("DhCommToolFuzzTest") { "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/dhmanagerfactory_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/dhmanagerfactory_fuzzer/BUILD.gn index bf8e970c..8577bc13 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/dhmanagerfactory_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/dhmanagerfactory_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,8 +51,11 @@ ohos_fuzztest("DhManagerFactoryFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/dhtransport_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/dhtransport_fuzzer/BUILD.gn index a4280940..336f975d 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/dhtransport_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/dhtransport_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -62,8 +62,11 @@ ohos_fuzztest("DhTransportFuzzTest") { "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/distributedfwkservices_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/distributedfwkservices_fuzzer/BUILD.gn index 8bf58eb0..0df53991 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/distributedfwkservices_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/distributedfwkservices_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -56,9 +56,12 @@ ohos_fuzztest("DistributedFwkServicesFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "ipc:ipc_single", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/enabledcompsdump_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/enabledcompsdump_fuzzer/BUILD.gn index eca2c1a5..a31f7cd3 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/enabledcompsdump_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/enabledcompsdump_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,8 +51,11 @@ ohos_fuzztest("EnabledCompsDumpFuzzTest") { external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", + "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/metainfomgr_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/metainfomgr_fuzzer/BUILD.gn index e46e730c..a3553e6a 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/metainfomgr_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/metainfomgr_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -58,9 +58,11 @@ ohos_fuzztest("MetaInfoMgrFuzzTest") { "c_utils:utils", "device_manager:devicemanagersdk", "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/publisher_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/publisher_fuzzer/BUILD.gn index abb7baa5..21ce98eb 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/publisher_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/publisher_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -57,6 +57,7 @@ ohos_fuzztest("PublisherFuzzTest") { "c_utils:utils", "device_manager:devicemanagersdk", "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "ipc:ipc_core", "kv_store:distributeddata_inner", diff --git a/services/distributedhardwarefwkservice/test/fuzztest/publisheritem_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/publisheritem_fuzzer/BUILD.gn index 94128f52..bcf40e43 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/publisheritem_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/publisheritem_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -55,6 +55,7 @@ ohos_fuzztest("PublisherItemFuzzTest") { "c_utils:utils", "device_manager:devicemanagersdk", "eventhandler:libeventhandler", + "hilog:libhilog", "init:libbegetutil", "ipc:ipc_core", "kv_store:distributeddata_inner", diff --git a/services/distributedhardwarefwkservice/test/fuzztest/resourcemanager_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/resourcemanager_fuzzer/BUILD.gn index 6f9c4bf0..bd1fed31 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/resourcemanager_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/resourcemanager_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -54,8 +54,11 @@ ohos_fuzztest("ResourceManagerFuzzTest") { "cJSON:cjson", "c_utils:utils", "eventhandler:libeventhandler", + "eventhandler:libeventhandler", + "hilog:libhilog", "ipc:ipc_single", "kv_store:distributeddata_inner", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/fuzztest/task_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/task_fuzzer/BUILD.gn index 4d3bce46..db98bfad 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/task_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/task_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -48,6 +48,9 @@ ohos_fuzztest("TaskFuzzTest") { external_deps = [ "cJSON:cjson", "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + "samgr:samgr_proxy", ] defines = [ diff --git a/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/BUILD.gn b/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/BUILD.gn index f81aa8fe..829df032 100644 --- a/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -54,7 +54,9 @@ ohos_fuzztest("VersioninfoManagerFuzzTest") { "cJSON:cjson", "c_utils:utils", "eventhandler:libeventhandler", + "hilog:libhilog", "kv_store:distributeddata_inner", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/unittest/common/componentloader/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/componentloader/BUILD.gn index 661d996c..63bb2a41 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/componentloader/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/componentloader/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -50,9 +50,13 @@ ohos_unittest("ComponentLoaderTest") { external_deps = [ "cJSON:cjson", + "c_utils:utils", "config_policy:configpolicy_util", + "eventhandler:libeventhandler", "hilog:libhilog", + "hisysevent:libhisysevent", "hitrace:hitrace_meter", + "ipc:ipc_core", "kv_store:distributeddata_inner", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/BUILD.gn index 2a780cf9..1f5dcda5 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/BUILD.gn @@ -67,8 +67,10 @@ ohos_unittest("ComponentManagerTest") { "c_utils:utils", "dsoftbus:softbus_client", "eventhandler:libeventhandler", + "hilog:libhilog", "ipc:ipc_single", "kv_store:distributeddata_inner", + "samgr:samgr_proxy", ] defines = [ diff --git a/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_monitior/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_monitior/BUILD.gn index 53bb179e..8bd9498c 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_monitior/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_monitior/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,6 +51,7 @@ ohos_unittest("ComponentMonitorTest") { "cJSON:cjson", "c_utils:utils", "eventhandler:libeventhandler", + "hilog:libhilog", "ipc:ipc_core", "ipc:ipc_single", "samgr:samgr_proxy", diff --git a/services/distributedhardwarefwkservice/test/unittest/common/dbadapter/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/dbadapter/BUILD.gn index eb772702..367ee35a 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/dbadapter/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/dbadapter/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -60,6 +60,7 @@ ohos_unittest("DbAdapterTest") { "c_utils:utils", "eventhandler:libeventhandler", "hilog:libhilog", + "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwaremanager/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwaremanager/BUILD.gn index 0e3ab803..0a828bfd 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwaremanager/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwaremanager/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -45,6 +45,7 @@ ohos_unittest("DistributedHardwareManagerTest") { "cJSON:cjson", "c_utils:utils", "eventhandler:libeventhandler", + "hilog:libhilog", ] defines = [ diff --git a/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwareservice/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwareservice/BUILD.gn index e01b6aa9..65724ea2 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwareservice/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwareservice/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -63,6 +63,7 @@ ohos_unittest("DistributedHardwareServiceTest") { "cJSON:cjson", "c_utils:utils", "eventhandler:libeventhandler", + "hilog:libhilog", "ipc:ipc_core", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/hidumphelper/hidumphelper/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/hidumphelper/hidumphelper/BUILD.gn index 98aaccb2..7ae99035 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/hidumphelper/hidumphelper/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/hidumphelper/hidumphelper/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -69,9 +69,11 @@ ohos_unittest("HidumpHelperTest") { "c_utils:utils", "dsoftbus:softbus_client", "eventhandler:libeventhandler", + "hilog:libhilog", "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", + "samgr:samgr_proxy", ] } diff --git a/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/localhardwaremanager/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/localhardwaremanager/BUILD.gn index e6dcd6a9..ed36ee68 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/localhardwaremanager/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/localhardwaremanager/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2025 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -48,8 +48,11 @@ ohos_unittest("LocalHardwareManagerTest") { external_deps = [ "cJSON:cjson", + "c_utils:utils", "eventhandler:libeventhandler", + "hilog:libhilog", "hisysevent:libhisysevent", + "ipc:ipc_core", "kv_store:distributeddata_inner", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/pluginlistenerimpl/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/pluginlistenerimpl/BUILD.gn index 3ddbcd92..70b1ad38 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/pluginlistenerimpl/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/pluginlistenerimpl/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2025 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -49,6 +49,7 @@ ohos_unittest("PluginListenerImplTest") { external_deps = [ "cJSON:cjson", "eventhandler:libeventhandler", + "hilog:libhilog", "hisysevent:libhisysevent", "kv_store:distributeddata_inner", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatency/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatency/BUILD.gn index d23f47cf..fc6373bf 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatency/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatency/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -55,6 +55,7 @@ ohos_unittest("LowLatencyTest") { external_deps = [ "cJSON:cjson", "c_utils:utils", + "eventhandler:libeventhandler", "ipc:ipc_core", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatencylistener/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatencylistener/BUILD.gn index 544ff386..99aee536 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatencylistener/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatencylistener/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -55,6 +55,7 @@ ohos_unittest("LowLatencyListenerTest") { external_deps = [ "cJSON:cjson", "c_utils:utils", + "eventhandler:libeventhandler", "ipc:ipc_core", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/publisher/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/publisher/BUILD.gn index faa074a7..e753d5d6 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/publisher/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/publisher/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -46,6 +46,7 @@ ohos_unittest("PublisherItemTest") { external_deps = [ "c_utils:utils", + "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/BUILD.gn index cd278971..b41eb246 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2025 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -83,6 +83,9 @@ ohos_unittest("DBAdapterTest") { external_deps = [ "cJSON:cjson", "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + "ipc:ipc_core", "kv_store:distributeddata_inner", ] } @@ -138,6 +141,7 @@ ohos_unittest("MetaCapInfoTest") { external_deps = [ "cJSON:cjson", "c_utils:utils", + "eventhandler:libeventhandler", "hilog:libhilog", "kv_store:distributeddata_inner", ] @@ -167,6 +171,7 @@ ohos_unittest("MetaInfoMgrTest") { "c_utils:utils", "eventhandler:libeventhandler", "hilog:libhilog", + "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", ] @@ -196,6 +201,7 @@ ohos_unittest("ResourceManagerTest") { "c_utils:utils", "eventhandler:libeventhandler", "hilog:libhilog", + "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/task/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/task/BUILD.gn index b875d815..1109ff0a 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/task/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/task/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/services/distributedhardwarefwkservice/test/unittest/common/transport/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/transport/BUILD.gn index c42acf36..8eb188ea 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/transport/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/transport/BUILD.gn @@ -58,6 +58,8 @@ ohos_unittest("TransportTest") { "c_utils:utils", "dsoftbus:softbus_client", "eventhandler:libeventhandler", + "hilog:libhilog", + "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", ] diff --git a/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/BUILD.gn b/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/BUILD.gn index cec0ba0b..120dac92 100644 --- a/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/BUILD.gn +++ b/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -51,6 +51,7 @@ ohos_unittest("VersioninfoManagerTest") { "c_utils:utils", "eventhandler:libeventhandler", "hilog:libhilog", + "ipc:ipc_core", "kv_store:distributeddata_inner", "safwk:system_ability_fwk", ] -- Gitee