mirror of
https://github.com/openharmony/device_manager.git
synced 2026-07-19 18:13:32 -04:00
!603 device_manager模块整改部件名和部件目录名
Merge pull request !603 from renguang1116/master
This commit is contained in:
@@ -26,7 +26,7 @@ if (defined(ohos_lite)) {
|
||||
deps = []
|
||||
}
|
||||
} else {
|
||||
lite_component("device_manager_base") {
|
||||
lite_component("device_manager") {
|
||||
features = [
|
||||
"utils:devicemanagerutils",
|
||||
"services/devicemanagerservice:devicemanagerservice",
|
||||
@@ -40,7 +40,7 @@ if (defined(ohos_lite)) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
group("device_manager_base") {
|
||||
group("device_manager") {
|
||||
deps = [
|
||||
"ext:ext_modules",
|
||||
"interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
|
||||
@@ -11,7 +11,7 @@ The figure below shows the architecture and dependencies of DeviceManager:
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
foundation/distributedhardware/devicemanager
|
||||
foundation/distributedhardware/device_manager
|
||||
├── common # Header files of common capabilities
|
||||
│ └── include
|
||||
│ └── ipc
|
||||
@@ -215,7 +215,7 @@ This FA is called **DeviceManager_UI.hap**, which is preset as a system applicat
|
||||
|
||||
- Compilation and running
|
||||
|
||||
Import the **devicemanager/display** project to DevEco Studio 2.2 Beta1. Copy the **@ohos.distributedHardware.deviceManager.d.ts** file in the **display** directory to the **Sdk\js\2.2.0.1\api\common** directory for compilation, building, and debugging.
|
||||
Import the **device_manager/display** project to DevEco Studio 2.2 Beta1. Copy the **@ohos.distributedHardware.deviceManager.d.ts** file in the **display** directory to the **Sdk\js\2.2.0.1\api\common** directory for compilation, building, and debugging.
|
||||
|
||||
- Compilation environment: IDE 2.2 SDK6
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ DeviceManager组件在OpenHarmony上提供账号无关的分布式设备的认
|
||||
## 目录
|
||||
|
||||
```
|
||||
foundation/distributedhardware/devicemanager
|
||||
foundation/distributedhardware/device_manager
|
||||
├── common #公共能力头文件存放目录
|
||||
│ └── include
|
||||
│ └── ipc
|
||||
|
||||
+8
-8
@@ -1,20 +1,20 @@
|
||||
{
|
||||
"name": "@ohos/device_manager_base",
|
||||
"name": "@ohos/device_manager",
|
||||
"description": "device manager service",
|
||||
"version": "3.1",
|
||||
"license": "Apache License 2.0",
|
||||
"repository": "https://gitee.com/openharmony/device_manager",
|
||||
"publishAs": "code-segment",
|
||||
"segment": {
|
||||
"destPath": "foundation/distributedhardware/devicemanager"
|
||||
"destPath": "foundation/distributedhardware/device_manager"
|
||||
},
|
||||
"dirs": {},
|
||||
"scripts": {},
|
||||
"component": {
|
||||
"name": "device_manager_base",
|
||||
"name": "device_manager",
|
||||
"subsystem": "distributedhardware",
|
||||
"syscap":[ "SystemCapability.DistributedHardware.DeviceManager" ],
|
||||
"features":["device_manager_base_no_interaction_auth"],
|
||||
"features":["device_manager_no_interaction_auth"],
|
||||
"adapted_system_type": [ "standard", "small" ],
|
||||
"rom": "2M",
|
||||
"ram": "16M",
|
||||
@@ -42,12 +42,12 @@
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [
|
||||
"//foundation/distributedhardware/devicemanager:device_manager_base"
|
||||
"//foundation/distributedhardware/device_manager:device_manager"
|
||||
],
|
||||
"inner_kits": [
|
||||
{
|
||||
"type": "so",
|
||||
"name": "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"name": "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"header": {
|
||||
"header_files": [
|
||||
"device_manager.h",
|
||||
@@ -55,12 +55,12 @@
|
||||
"dm_device_info.h",
|
||||
"dm_subscribe_info.h"
|
||||
],
|
||||
"header_base": "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include"
|
||||
"header_base": "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include"
|
||||
}
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
"//foundation/distributedhardware/devicemanager:device_manager_test"
|
||||
"//foundation/distributedhardware/device_manager:device_manager_test"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//foundation/arkui/ace_engine/build/ace_gen_sa_dialog_js.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
gen_sa_dialog_js("dialog_js_files_etc") {
|
||||
project_path = "//foundation/distributedhardware/devicemanager/common/include/show_confirm_dialog/dialog_ui/js"
|
||||
project_path = "//foundation/distributedhardware/device_manager/common/include/show_confirm_dialog/dialog_ui/js"
|
||||
dialog_name = "config_dialog_service"
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
subsystem_name = "distributedhardware"
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
#------------------------device manager------------------------------#
|
||||
devicemanager_path = "//foundation/distributedhardware/devicemanager"
|
||||
devicemanager_path = "//foundation/distributedhardware/device_manager"
|
||||
|
||||
common_path = "${devicemanager_path}/common"
|
||||
utils_path = "${devicemanager_path}/utils"
|
||||
@@ -29,7 +29,7 @@ aaservices_path = "//foundation/ability/ability_runtime/services"
|
||||
#----------------------compilation options--------------------------#
|
||||
dm_ldflags = [ "-lpthread" ]
|
||||
declare_args() {
|
||||
device_manager_base_no_interaction_auth = false
|
||||
device_manager_no_interaction_auth = false
|
||||
|
||||
if (!defined(global_parts_info) ||
|
||||
defined(global_parts_info.account_os_account)) {
|
||||
+2
-2
@@ -12,13 +12,13 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
group("ext_modules") {
|
||||
deps = []
|
||||
if (support_jsapi) {
|
||||
deps += [ "./profile:devicemanagerext_profile" ]
|
||||
if (device_manager_base_no_interaction_auth) {
|
||||
if (device_manager_no_interaction_auth) {
|
||||
deps += [ "./no_interaction_auth:devicemanagerext_no_interaction_auth" ]
|
||||
} else {
|
||||
deps += [ "./pin_auth:devicemanagerext_pin_auth" ]
|
||||
|
||||
@@ -17,7 +17,7 @@ if (defined(ohos_lite)) {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
} else {
|
||||
@@ -70,7 +70,7 @@ if (defined(ohos_lite)) {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
@@ -97,6 +97,6 @@ if (defined(ohos_lite)) {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ if (defined(ohos_lite)) {
|
||||
} else {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
shared_library("devicemanagerext_pin_auth") {
|
||||
@@ -142,7 +142,7 @@ if (defined(ohos_lite)) {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager:ui_service_mgr",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
@@ -169,6 +169,6 @@ if (defined(ohos_lite)) {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//foundation/arkui/ace_engine/build/ace_gen_sa_dialog_js.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
gen_sa_dialog_js("dialog_js_files_etc") {
|
||||
project_path = "//foundation/distributedhardware/devicemanager/ext/pin_auth/input_pin_dialog/dialog_ui/js"
|
||||
project_path = "//foundation/distributedhardware/device_manager/ext/pin_auth/input_pin_dialog/dialog_ui/js"
|
||||
dialog_name = "input_pin_service"
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
subsystem_name = "distributedhardware"
|
||||
}
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//foundation/arkui/ace_engine/build/ace_gen_sa_dialog_js.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
gen_sa_dialog_js("dialog_js_files_etc") {
|
||||
if (!device_manager_base_no_interaction_auth) {
|
||||
project_path = "//foundation/distributedhardware/devicemanager/ext/pin_auth/show_pin_dialog/dialog_ui/js"
|
||||
if (!device_manager_no_interaction_auth) {
|
||||
project_path = "//foundation/distributedhardware/device_manager/ext/pin_auth/show_pin_dialog/dialog_ui/js"
|
||||
}
|
||||
dialog_name = "show_pin_service"
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
subsystem_name = "distributedhardware"
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ if (defined(ohos_lite)) {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
} else {
|
||||
@@ -70,6 +70,6 @@ if (defined(ohos_lite)) {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ if (defined(ohos_lite)) {
|
||||
} else {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
@@ -152,6 +152,6 @@ if (defined(ohos_lite)) {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
ohos_shared_library("devicemanager") {
|
||||
include_dirs = [
|
||||
@@ -38,7 +38,7 @@ ohos_shared_library("devicemanager") {
|
||||
deps = [
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/arkui/napi:ace_napi",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
@@ -59,5 +59,5 @@ ohos_shared_library("devicemanager") {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
relative_install_dir = "module/distributedhardware"
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ if (defined(ohos_lite)) {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
innerkits_path_mini = "${devicemanager_path}/interfaces/inner_kits"
|
||||
kits_path = "${devicemanager_path}/interfaces/kits"
|
||||
|
||||
|
||||
+1
-1
@@ -16,5 +16,5 @@ import("//build/ohos/sa_profile/sa_profile.gni")
|
||||
ohos_sa_profile("dm_sa_profile") {
|
||||
sources = [ "4802.xml" ]
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ if (defined(ohos_lite)) {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
@@ -68,7 +68,7 @@ if (defined(ohos_lite)) {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/transport",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice/include/dependency/multipleuser",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice/include/dependency/multipleuser",
|
||||
"//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
|
||||
]
|
||||
@@ -311,7 +311,7 @@ if (defined(ohos_lite)) {
|
||||
deps += [ "//base/account/os_account/frameworks/osaccount/native:os_account_innerkits" ]
|
||||
}
|
||||
|
||||
if (!device_manager_base_no_interaction_auth) {
|
||||
if (!device_manager_no_interaction_auth) {
|
||||
deps += [
|
||||
"${common_path}/include/show_confirm_dialog/dialog_ui/js:dialog_js_files_etc",
|
||||
"//foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager:ui_service_mgr",
|
||||
@@ -338,6 +338,6 @@ if (defined(ohos_lite)) {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
group("benchmarktest") {
|
||||
testonly = true
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
module_output_path = "device_manager_base/devicemanager"
|
||||
module_output_path = "device_manager/devicemanager"
|
||||
|
||||
ohos_benchmarktest("DeviceManagerFaTest") {
|
||||
module_out_path = module_output_path
|
||||
@@ -45,8 +45,8 @@ ohos_benchmarktest("DeviceManagerFaTest") {
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/arkui/napi:ace_napi",
|
||||
"//foundation/communication/dsoftbus/sdk:softbus_client",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//third_party/benchmark:benchmark",
|
||||
"//third_party/bounds_checking_function:libsec_shared",
|
||||
"//third_party/googletest:gtest_main",
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
module_output_path = "device_manager_base/devicemanager"
|
||||
module_output_path = "device_manager/devicemanager"
|
||||
|
||||
ohos_benchmarktest("DeviceManagerTest") {
|
||||
module_out_path = module_output_path
|
||||
@@ -31,7 +31,7 @@ ohos_benchmarktest("DeviceManagerTest") {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/arkui/napi:ace_napi",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//third_party/benchmark:benchmark",
|
||||
"//third_party/bounds_checking_function:libsec_shared",
|
||||
"//third_party/googletest:gtest_main",
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("DeviceManagerImplFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/devicemanagerimpl_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/devicemanagerimpl_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"${utils_path}/include",
|
||||
@@ -55,12 +55,12 @@ ohos_fuzztest("DeviceManagerImplFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -76,7 +76,7 @@ ohos_fuzztest("DeviceManagerImplFuzzTest") {
|
||||
"//third_party/jsframework/runtime/main/extend/systemplugin",
|
||||
"//third_party/node/benchmark",
|
||||
"//third_party/libuv/include",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js/include",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
@@ -93,7 +93,7 @@ ohos_fuzztest("DeviceManagerImplFuzzTest") {
|
||||
deps = [
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/arkui/napi:ace_napi",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("DeviceManagerNotifyFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/devicemanagernotify_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/devicemanagernotify_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//utils/native/base/include",
|
||||
@@ -53,12 +53,12 @@ ohos_fuzztest("DeviceManagerNotifyFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -72,8 +72,8 @@ ohos_fuzztest("DeviceManagerNotifyFuzzTest") {
|
||||
sources = [ "device_manager_notify_fuzzer.cpp" ]
|
||||
|
||||
deps = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("DeviceManagerServiceFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/devicemanagerservice_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/devicemanagerservice_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//utils/native/base/include",
|
||||
@@ -53,12 +53,12 @@ ohos_fuzztest("DeviceManagerServiceFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -72,8 +72,8 @@ ohos_fuzztest("DeviceManagerServiceFuzzTest") {
|
||||
sources = [ "device_manager_service_fuzzer.cpp" ]
|
||||
|
||||
deps = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("IpcClientManagerFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/ipcclientmanager_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/ipcclientmanager_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js/include",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
@@ -54,12 +54,12 @@ ohos_fuzztest("IpcClientManagerFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -93,8 +93,8 @@ ohos_fuzztest("IpcClientManagerFuzzTest") {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
@@ -124,7 +124,7 @@ ohos_fuzztest("IpcClientManagerFuzzTest") {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("IpcCmdRegisterFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/ipccmdregister_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/ipccmdregister_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js/include",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
@@ -54,12 +54,12 @@ ohos_fuzztest("IpcCmdRegisterFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -77,7 +77,7 @@ ohos_fuzztest("IpcCmdRegisterFuzzTest") {
|
||||
"//third_party/jsframework/runtime/main/extend/systemplugin",
|
||||
"//third_party/node/benchmark",
|
||||
"//third_party/libuv/include",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice/include/ipc/lite",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice/include/ipc/lite",
|
||||
]
|
||||
cflags = [
|
||||
"-g",
|
||||
@@ -94,8 +94,8 @@ ohos_fuzztest("IpcCmdRegisterFuzzTest") {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
@@ -125,7 +125,7 @@ ohos_fuzztest("IpcCmdRegisterFuzzTest") {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("IpcServerClientProxyFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/ipcserverclientproxy_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/ipcserverclientproxy_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js/include",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
@@ -54,12 +54,12 @@ ohos_fuzztest("IpcServerClientProxyFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -93,8 +93,8 @@ ohos_fuzztest("IpcServerClientProxyFuzzTest") {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
@@ -124,7 +124,7 @@ ohos_fuzztest("IpcServerClientProxyFuzzTest") {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("IpcServerListenerFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/ipcserverlistener_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/ipcserverlistener_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js/include",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
@@ -54,12 +54,12 @@ ohos_fuzztest("IpcServerListenerFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -93,8 +93,8 @@ ohos_fuzztest("IpcServerListenerFuzzTest") {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
@@ -124,7 +124,7 @@ ohos_fuzztest("IpcServerListenerFuzzTest") {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("IpcServerStubFuzzTest") {
|
||||
module_out_path = "device_manager_base/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/devicemanager/test/fuzztest/ipcserverstub_fuzzer"
|
||||
module_out_path = "device_manager/devicemanager"
|
||||
fuzz_config_file = "//foundation/distributedhardware/device_manager/test/fuzztest/ipcserverstub_fuzzer"
|
||||
|
||||
include_dirs = [
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js/include",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
@@ -54,12 +54,12 @@ ohos_fuzztest("IpcServerStubFuzzTest") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -93,8 +93,8 @@ ohos_fuzztest("IpcServerStubFuzzTest") {
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
"//base/security/deviceauth/services:deviceauth_sdk",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/devicemanager/services/devicemanagerservice:devicemanagerservice",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
|
||||
"//foundation/distributedhardware/device_manager/services/devicemanagerservice:devicemanagerservice",
|
||||
]
|
||||
|
||||
defines = [
|
||||
@@ -124,7 +124,7 @@ ohos_fuzztest("IpcServerStubFuzzTest") {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
|
||||
+17
-17
@@ -12,8 +12,8 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
module_out_path = "device_manager_base/component_loader_test"
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
module_out_path = "device_manager/component_loader_test"
|
||||
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
@@ -152,8 +152,8 @@ ohos_unittest("UTTest_softbus_connector") {
|
||||
"${services_path}/src/device_manager_service_listener.cpp",
|
||||
"${services_path}/src/devicestate/dm_device_state_manager.cpp",
|
||||
"${services_path}/src/discovery/dm_discovery_manager.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/parameter.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/parameter.cpp",
|
||||
"UTTest_softbus_connector.cpp",
|
||||
]
|
||||
|
||||
@@ -353,8 +353,8 @@ ohos_unittest("UTTest_dm_device_state_manager") {
|
||||
"${services_path}/src/device_manager_service_listener.cpp",
|
||||
"${services_path}/src/devicestate/dm_device_state_manager.cpp",
|
||||
"${services_path}/src/discovery/dm_discovery_manager.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/parameter.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/parameter.cpp",
|
||||
"UTTest_dm_device_state_manager.cpp",
|
||||
]
|
||||
|
||||
@@ -369,7 +369,7 @@ ohos_unittest("UTTest_device_manager_service_listener") {
|
||||
|
||||
sources = [
|
||||
"${services_path}/src/device_manager_service_listener.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"UTTest_device_manager_service_listener.cpp",
|
||||
]
|
||||
|
||||
@@ -442,8 +442,8 @@ ohos_unittest("UTTest_dm_discovery_manager") {
|
||||
"${services_path}/src/dependency/timer/dm_timer.cpp",
|
||||
"${services_path}/src/device_manager_service_listener.cpp",
|
||||
"${services_path}/src/discovery/dm_discovery_manager.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/parameter.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/ipc_server_listener.cpp",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/parameter.cpp",
|
||||
"UTTest_dm_discovery_manager.cpp",
|
||||
]
|
||||
|
||||
@@ -486,12 +486,12 @@ config("device_manager_test_common_public_config") {
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/common",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/discovery",
|
||||
"//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock",
|
||||
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/services/devicemanagerservice/include/dispatch",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile/include",
|
||||
"//foundation/deviceprofile/device_profile_core/interfaces/innerkits/core/include",
|
||||
"//foundation/distributedhardware/devicemanager/ext/mini/common/include",
|
||||
"//foundation/distributedhardware/device_manager/ext/mini/common/include",
|
||||
"//base/security/deviceauth/interfaces/innerkits",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
@@ -524,8 +524,8 @@ ohos_static_library("device_manager_test_common") {
|
||||
"${services_path}:devicemanagerservice",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/ext/profile:devicemanagerext_profile",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/ext/profile:devicemanagerext_profile",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
@@ -562,7 +562,7 @@ config("device_manager_test_common_public") {
|
||||
"${services_path}/include/discovery",
|
||||
"${services_path}/include/deviceinfo/",
|
||||
"${services_path}/include/devicestate",
|
||||
"//foundation/distributedhardware/devicemanager/test/unittest/mock/",
|
||||
"//foundation/distributedhardware/device_manager/test/unittest/mock/",
|
||||
"${services_path}/include/ability",
|
||||
"${services_path}/include/config",
|
||||
"//foundation/communication/dsoftbus/interfaces/kits/bus_center",
|
||||
@@ -612,7 +612,7 @@ ohos_static_library("device_manager_test") {
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/distributedhardware/devicemanager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedhardware/device_manager/interfaces/kits/js:devicemanager",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest",
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ if (defined(ohos_lite)) {
|
||||
import("//build/ohos.gni")
|
||||
}
|
||||
|
||||
import("//foundation/distributedhardware/devicemanager/devicemanager.gni")
|
||||
import("//foundation/distributedhardware/device_manager/device_manager.gni")
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
@@ -174,6 +174,6 @@ if (defined(ohos_lite)) {
|
||||
|
||||
subsystem_name = "distributedhardware"
|
||||
|
||||
part_name = "device_manager_base"
|
||||
part_name = "device_manager"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user