• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/config/features.gni")
15import("//build/ohos.gni")
16import("//build/test.gni")
17import(
18    "//foundation/distributedhardware/mechbody_controller/mechbody.gni")
19
20ohos_fuzztest("MechBodyControllerUtilsFuzzTest") {
21  module_out_path = "mechbody_controller/"
22  mechbody_path =
23      "//foundation/distributedhardware/mechbody_controller"
24  fuzz_config_file =
25      "${mechbody_path}/test/fuzztest/mechbodycontrollerutils_fuzzer"
26  include_dirs = [
27    "${mechbody_path}/services/include",
28    "${mechbody_path}/services/include/connect",
29    "${mechbody_path}/services/include/controller",
30    "${mechbody_path}/services/include/motion",
31    "${mechbody_path}/services/include/transport",
32    "${mechbody_path}/services/include/transport/command",
33    "${mechbody_path}/interface/inner_api",
34  ]
35  cflags = [
36    "-g",
37    "-O0",
38    "-Wno-unused-variable",
39    "-fno-omit-frame-pointer",
40  ]
41  sources = [
42    "${mechbody_path}/services/src/mechbody_controller_utils.cpp",
43    "${mechbody_path}/test/fuzztest/mechbodycontrollerutils_fuzzer/mechbodycontrollerutils_fuzzer.cpp",
44  ]
45
46  deps = [ "${mechbody_path}/services:mechbody_service" ]
47
48  external_deps = [
49    "access_token:libaccesstoken_sdk",
50    "access_token:libnativetoken",
51    "access_token:libtoken_setproc",
52    "bluetooth:btframework",
53    "camera_framework:camera_framework",
54    "cJSON:cjson_static",
55    "c_utils:utils",
56    "device_manager:devicemanagersdk",
57    "eventhandler:libeventhandler",
58    "graphic_surface:surface",
59    "hilog:libhilog",
60    "init:libbegetutil",
61    "input:libmmi-client",
62    "input:oh_input_manager",
63    "ipc:ipc_single",
64    "os_account:libaccountkits",
65    "os_account:os_account_innerkits",
66    "safwk:system_ability_fwk",
67    "samgr:samgr_proxy",
68    "selinux_adapter:librestorecon",
69    "sensor:sensor_interface_native",
70    "window_manager:libdm_lite",
71  ]
72}
73
74group("fuzztest") {
75  testonly = true
76  deps = [ ":MechBodyControllerUtilsFuzzTest" ]
77}
78