1# Copyright (c) 2023 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("//base/inputmethod/imf/inputmethod.gni") 15 16#####################hydra-fuzz################### 17import("//build/config/features.gni") 18import("//build/ohos.gni") 19import("//build/test.gni") 20group("system_ability_stub_fuzztest") { 21 testonly = true 22 deps = [ 23 ":ConnectSystemCmdFuzzTest", 24 ":DisplayOptionalInputMethodFuzzTest", 25 ":ExitCurrentInputTypeFuzzTest", 26 ":GetCurrentInputmethodFuzzTest", 27 ":GetCurrentInputmethodSubtypeFuzzTest", 28 ":GetDefaultInputmethodFuzzTest", 29 ":GetInputMethodConfigFuzzTest", 30 ":GetSecurityModeFuzzTest", 31 ":HideCurrentInputDeprecatedFuzzTest", 32 ":HideCurrentInputFuzzTest", 33 ":HideInputFuzzTest", 34 ":ImsCmdLastFuzzTest", 35 ":IsCurrentImeFuzzTest", 36 ":IsDefaultImeFuzzTest", 37 ":IsInputTypeSupportedFuzzTest", 38 ":IsPanelShownFuzzTest", 39 ":ListCurrentInputmethodSubtypeFuzzTest", 40 ":ListInputmethodFuzzTest", 41 ":ListInputmethodSubtypeFuzzTest", 42 ":PanelStatusChangeFuzzTest", 43 ":ReleaseInputFuzzTest", 44 ":RequestHideInputFuzzTest", 45 ":RequestShowInputFuzzTest", 46 ":SetCoreAndAgentFuzzTest", 47 ":ShowCurrentInputDeprecatedFuzzTest", 48 ":ShowCurrentInputFuzzTest", 49 ":ShowInputFuzzTest", 50 ":StartInputFuzzTest", 51 ":StartInputTypeFuzzTest", 52 ":StopInputSessionFuzzTest", 53 ":SwitchInputMethodFuzzTest", 54 ":UnRegisteredProxyImeFuzzTest", 55 ":UpdateListenEventFlagFuzzTest", 56 ] 57} 58 59common_external_deps = [ 60 "ability_runtime:ability_manager", 61 "access_token:libaccesstoken_sdk", 62 "bundle_framework:appexecfwk_core", 63 "data_share:datashare_common", 64 "data_share:datashare_consumer", 65 "hilog:libhilog", 66 "input:libmmi-client", 67] 68 69common_deps = [ 70 "${inputmethod_path}/services/adapter/settings_data_provider:settings_data_static", 71 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common:imf_sa_stub_fuzztest_common_static", 72 "//third_party/cJSON:cjson", 73] 74 75##############################fuzztest########################################## 76ohos_fuzztest("GetCurrentInputmethodFuzzTest") { 77 module_out_path = "imf/imf" 78 79 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getcurrentinputmethod_fuzzer" 80 81 sources = [ "getcurrentinputmethod_fuzzer/getcurrentinputmethod_fuzzer.cpp" ] 82 83 include_dirs = [ 84 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getcurrentinputmethod_fuzzer", 85 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 86 ] 87 88 deps = common_deps 89 90 external_deps = common_external_deps 91} 92 93ohos_fuzztest("GetCurrentInputmethodSubtypeFuzzTest") { 94 module_out_path = "imf/imf" 95 96 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getcurrentinputmethodsubtype_fuzzer" 97 98 include_dirs = [ 99 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getcurrentinputmethodsubtype_fuzzer", 100 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 101 ] 102 103 sources = [ "getcurrentinputmethodsubtype_fuzzer/getcurrentinputmethodsubtype_fuzzer.cpp" ] 104 105 deps = common_deps 106 107 external_deps = common_external_deps 108} 109 110ohos_fuzztest("HideCurrentInputFuzzTest") { 111 module_out_path = "imf/imf" 112 113 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/hidecurrentinput_fuzzer" 114 115 include_dirs = [ 116 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/hidecurrentinput_fuzzer", 117 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 118 ] 119 120 sources = [ "hidecurrentinput_fuzzer/hidecurrentinput_fuzzer.cpp" ] 121 122 deps = common_deps 123 124 external_deps = common_external_deps 125} 126 127ohos_fuzztest("HideCurrentInputDeprecatedFuzzTest") { 128 module_out_path = "imf/imf" 129 130 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/hidecurrentinputdeprecated_fuzzer" 131 132 include_dirs = [ 133 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/hidecurrentinputdeprecated_fuzzer", 134 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 135 ] 136 137 sources = [ 138 "hidecurrentinputdeprecated_fuzzer/hidecurrentinputdeprecated_fuzzer.cpp", 139 ] 140 141 deps = common_deps 142 143 external_deps = common_external_deps 144} 145 146ohos_fuzztest("ListCurrentInputmethodSubtypeFuzzTest") { 147 module_out_path = "imf/imf" 148 149 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/listcurrentinputmethodsubtype_fuzzer" 150 151 include_dirs = [ 152 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/listcurrentinputmethodsubtype_fuzzer", 153 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 154 ] 155 156 sources = [ "listcurrentinputmethodsubtype_fuzzer/listcurrentinputmethodsubtype_fuzzer.cpp" ] 157 158 deps = common_deps 159 160 external_deps = common_external_deps 161} 162 163ohos_fuzztest("ListInputmethodFuzzTest") { 164 module_out_path = "imf/imf" 165 166 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/listinputmethod_fuzzer" 167 168 include_dirs = [ 169 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/listinputmethod_fuzzer", 170 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 171 ] 172 173 sources = [ "listinputmethod_fuzzer/listinputmethod_fuzzer.cpp" ] 174 175 deps = common_deps 176 177 external_deps = common_external_deps 178} 179 180ohos_fuzztest("ListInputmethodSubtypeFuzzTest") { 181 module_out_path = "imf/imf" 182 183 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/listinputmethodsubtype_fuzzer" 184 185 include_dirs = [ 186 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/listinputmethodsubtype_fuzzer", 187 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 188 ] 189 190 sources = 191 [ "listinputmethodsubtype_fuzzer/listinputmethodsubtype_fuzzer.cpp" ] 192 193 deps = common_deps 194 195 external_deps = common_external_deps 196} 197 198ohos_fuzztest("PanelStatusChangeFuzzTest") { 199 module_out_path = "imf/imf" 200 201 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/panelstatuschange_fuzzer" 202 203 include_dirs = [ 204 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/panelstatuschange_fuzzer", 205 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 206 ] 207 208 sources = [ "panelstatuschange_fuzzer/panelstatuschange_fuzzer.cpp" ] 209 210 deps = common_deps 211 212 external_deps = common_external_deps 213} 214 215ohos_fuzztest("ReleaseInputFuzzTest") { 216 module_out_path = "imf/imf" 217 218 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/releaseinput_fuzzer" 219 220 include_dirs = [ 221 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/releaseinput_fuzzer", 222 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 223 ] 224 225 sources = [ "releaseinput_fuzzer/releaseinput_fuzzer.cpp" ] 226 227 deps = common_deps 228 229 external_deps = common_external_deps 230} 231 232ohos_fuzztest("SetCoreAndAgentFuzzTest") { 233 module_out_path = "imf/imf" 234 235 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/setcoreandagent_fuzzer" 236 237 include_dirs = [ 238 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/setcoreandagent_fuzzer", 239 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 240 ] 241 242 sources = [ "setcoreandagent_fuzzer/setcoreandagent_fuzzer.cpp" ] 243 244 deps = common_deps 245 246 external_deps = common_external_deps 247} 248 249ohos_fuzztest("ShowCurrentInputFuzzTest") { 250 module_out_path = "imf/imf" 251 252 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/showcurrentinput_fuzzer" 253 254 include_dirs = [ 255 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/showcurrentinput_fuzzer", 256 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 257 ] 258 259 sources = [ "showcurrentinput_fuzzer/showcurrentinput_fuzzer.cpp" ] 260 261 deps = common_deps 262 263 external_deps = common_external_deps 264} 265 266ohos_fuzztest("ShowCurrentInputDeprecatedFuzzTest") { 267 module_out_path = "imf/imf" 268 269 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/showcurrentinputdeprecated_fuzzer" 270 271 include_dirs = [ 272 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/showcurrentinputdeprecated_fuzzer", 273 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 274 ] 275 276 sources = [ 277 "showcurrentinputdeprecated_fuzzer/showcurrentinputdeprecated_fuzzer.cpp", 278 ] 279 280 deps = common_deps 281 282 external_deps = common_external_deps 283} 284 285ohos_fuzztest("StartInputFuzzTest") { 286 module_out_path = "imf/imf" 287 288 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/startinput_fuzzer" 289 290 include_dirs = [ 291 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/startinput_fuzzer", 292 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 293 ] 294 295 sources = [ "startinput_fuzzer/startinput_fuzzer.cpp" ] 296 297 deps = common_deps 298 299 external_deps = common_external_deps 300} 301 302ohos_fuzztest("ImsCmdLastFuzzTest") { 303 module_out_path = "imf/imf" 304 305 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/imscmdlast_fuzzer" 306 307 include_dirs = [ 308 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/imscmdlast_fuzzer", 309 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 310 ] 311 312 sources = [ "imscmdlast_fuzzer/imscmdlast_fuzzer.cpp" ] 313 314 deps = common_deps 315 316 external_deps = common_external_deps 317} 318 319ohos_fuzztest("StopInputSessionFuzzTest") { 320 module_out_path = "imf/imf" 321 322 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/stopinputsession_fuzzer" 323 324 include_dirs = [ 325 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/stopinputsession_fuzzer", 326 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 327 ] 328 329 sources = [ "stopinputsession_fuzzer/stopinputsession_fuzzer.cpp" ] 330 331 deps = common_deps 332 333 external_deps = common_external_deps 334} 335 336ohos_fuzztest("UpdateListenEventFlagFuzzTest") { 337 module_out_path = "imf/imf" 338 339 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/updatelisteneventflag_fuzzer" 340 341 include_dirs = [ 342 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/updatelisteneventflag_fuzzer", 343 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 344 ] 345 346 sources = [ "updatelisteneventflag_fuzzer/updatelisteneventflag_fuzzer.cpp" ] 347 348 deps = common_deps 349 350 external_deps = common_external_deps 351} 352 353ohos_fuzztest("SwitchInputMethodFuzzTest") { 354 module_out_path = "imf/imf" 355 356 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/switchinputmethod_fuzzer" 357 358 include_dirs = [ 359 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/switchinputmethod_fuzzer", 360 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 361 ] 362 363 sources = [ "switchinputmethod_fuzzer/switchinputmethod_fuzzer.cpp" ] 364 365 deps = common_deps 366 367 external_deps = common_external_deps 368} 369 370ohos_fuzztest("DisplayOptionalInputMethodFuzzTest") { 371 module_out_path = "imf/imf" 372 373 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/displayoptionalinputmethod_fuzzer" 374 375 include_dirs = [ 376 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/displayoptionalinputmethod_fuzzer", 377 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 378 ] 379 380 sources = [ 381 "displayoptionalinputmethod_fuzzer/displayoptionalinputmethod_fuzzer.cpp", 382 ] 383 384 deps = common_deps 385 386 external_deps = common_external_deps 387} 388 389ohos_fuzztest("ExitCurrentInputTypeFuzzTest") { 390 module_out_path = "imf/imf" 391 392 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/exitcurrentinputtype_fuzzer" 393 394 include_dirs = [ 395 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/exitcurrentinputtype_fuzzer", 396 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 397 ] 398 399 sources = [ "exitcurrentinputtype_fuzzer/exitcurrentinputtype_fuzzer.cpp" ] 400 401 deps = common_deps 402 403 external_deps = common_external_deps 404} 405 406ohos_fuzztest("IsCurrentImeFuzzTest") { 407 module_out_path = "imf/imf" 408 409 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/iscurrentime_fuzzer" 410 411 include_dirs = [ 412 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/iscurrentime_fuzzer", 413 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 414 ] 415 416 sources = [ "iscurrentime_fuzzer/iscurrentime_fuzzer.cpp" ] 417 418 deps = common_deps 419 420 external_deps = common_external_deps 421} 422 423ohos_fuzztest("IsInputTypeSupportedFuzzTest") { 424 module_out_path = "imf/imf" 425 426 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/isinputtypesupported_fuzzer" 427 428 include_dirs = [ 429 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/isinputtypesupported_fuzzer", 430 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 431 ] 432 433 sources = [ "isinputtypesupported_fuzzer/isinputtypesupported_fuzzer.cpp" ] 434 435 deps = common_deps 436 437 external_deps = common_external_deps 438} 439 440ohos_fuzztest("IsPanelShownFuzzTest") { 441 module_out_path = "imf/imf" 442 443 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/ispanelshown_fuzzer" 444 445 include_dirs = [ 446 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/ispanelshown_fuzzer", 447 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 448 ] 449 450 sources = [ "ispanelshown_fuzzer/ispanelshown_fuzzer.cpp" ] 451 452 deps = common_deps 453 454 external_deps = common_external_deps 455} 456 457ohos_fuzztest("UnRegisteredProxyImeFuzzTest") { 458 module_out_path = "imf/imf" 459 460 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/unregisteredproxyime_fuzzer" 461 462 include_dirs = [ 463 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/unregisteredproxyime_fuzzer", 464 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 465 ] 466 467 sources = [ "unregisteredproxyime_fuzzer/unregisteredproxyime_fuzzer.cpp" ] 468 469 deps = common_deps 470 471 external_deps = common_external_deps 472} 473 474ohos_fuzztest("StartInputTypeFuzzTest") { 475 module_out_path = "imf/imf" 476 477 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/startinputtype_fuzzer" 478 479 include_dirs = [ 480 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/startinputtype_fuzzer", 481 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 482 ] 483 484 sources = [ "startinputtype_fuzzer/startinputtype_fuzzer.cpp" ] 485 486 deps = common_deps 487 488 external_deps = common_external_deps 489} 490 491ohos_fuzztest("GetDefaultInputmethodFuzzTest") { 492 module_out_path = "imf/imf" 493 494 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getdefaultinputmethod_fuzzer" 495 496 include_dirs = [ 497 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getdefaultinputmethod_fuzzer", 498 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 499 ] 500 501 sources = [ "getdefaultinputmethod_fuzzer/getdefaultinputmethod_fuzzer.cpp" ] 502 503 deps = common_deps 504 505 external_deps = common_external_deps 506} 507 508ohos_fuzztest("GetInputMethodConfigFuzzTest") { 509 module_out_path = "imf/imf" 510 511 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getinputmethodconfig_fuzzer" 512 513 include_dirs = [ 514 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getinputmethodconfig_fuzzer", 515 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 516 ] 517 518 sources = [ "getinputmethodconfig_fuzzer/getinputmethodconfig_fuzzer.cpp" ] 519 520 deps = common_deps 521 522 external_deps = common_external_deps 523} 524 525ohos_fuzztest("HideInputFuzzTest") { 526 module_out_path = "imf/imf" 527 528 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/hideinput_fuzzer" 529 530 include_dirs = [ 531 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/hideinput_fuzzer", 532 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 533 ] 534 535 sources = [ "hideinput_fuzzer/hideinput_fuzzer.cpp" ] 536 537 deps = common_deps 538 539 external_deps = common_external_deps 540} 541 542ohos_fuzztest("ShowInputFuzzTest") { 543 module_out_path = "imf/imf" 544 545 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/showinput_fuzzer" 546 547 include_dirs = [ 548 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/showinput_fuzzer", 549 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 550 ] 551 552 sources = [ "showinput_fuzzer/showinput_fuzzer.cpp" ] 553 554 deps = common_deps 555 556 external_deps = common_external_deps 557} 558 559ohos_fuzztest("RequestShowInputFuzzTest") { 560 module_out_path = "imf/imf" 561 562 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/requestshowinput_fuzzer" 563 564 include_dirs = [ 565 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/requestshowinput_fuzzer", 566 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 567 ] 568 569 sources = [ "requestshowinput_fuzzer/requestshowinput_fuzzer.cpp" ] 570 571 deps = common_deps 572 573 external_deps = common_external_deps 574} 575 576ohos_fuzztest("RequestHideInputFuzzTest") { 577 module_out_path = "imf/imf" 578 579 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/requesthideinput_fuzzer" 580 581 include_dirs = [ 582 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/requesthideinput_fuzzer", 583 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 584 ] 585 586 sources = [ "requesthideinput_fuzzer/requesthideinput_fuzzer.cpp" ] 587 588 deps = common_deps 589 590 external_deps = common_external_deps 591} 592 593ohos_fuzztest("GetSecurityModeFuzzTest") { 594 module_out_path = "imf/imf" 595 596 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getsecuritymode_fuzzer" 597 598 include_dirs = [ 599 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/getsecuritymode_fuzzer", 600 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 601 ] 602 603 sources = [ "getsecuritymode_fuzzer/getsecuritymode_fuzzer.cpp" ] 604 605 deps = common_deps 606 607 external_deps = common_external_deps 608} 609 610ohos_fuzztest("IsDefaultImeFuzzTest") { 611 module_out_path = "imf/imf" 612 613 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/isdefaultime_fuzzer" 614 615 include_dirs = [ 616 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/isdefaultime_fuzzer", 617 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 618 ] 619 620 sources = [ "isdefaultime_fuzzer/isdefaultime_fuzzer.cpp" ] 621 622 deps = common_deps 623 624 external_deps = common_external_deps 625} 626 627ohos_fuzztest("ConnectSystemCmdFuzzTest") { 628 module_out_path = "imf/imf" 629 630 fuzz_config_file = "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/connectsystemcmd_fuzzer" 631 632 include_dirs = [ 633 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/connectsystemcmd_fuzzer", 634 "${inputmethod_path}/test/fuzztest/systemabilitystubfuzztest/common", 635 ] 636 637 sources = [ "connectsystemcmd_fuzzer/connectsystemcmd_fuzzer.cpp" ] 638 639 deps = common_deps 640 641 external_deps = common_external_deps 642} 643