1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "system_bt_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_bt_license"], 8} 9 10cc_fuzz { 11 name: "avrcp_browse_packet_fuzzer", 12 defaults: ["fluoride_defaults"], 13 host_supported: true, 14 15 include_dirs: [ 16 "system/bt/", 17 "system/bt/include", 18 "system/bt/packet/include", 19 "system/bt/packet/tests", 20 "system/bt/packet/tests/avrcp", 21 "system/bt/packet/base", 22 ], 23 srcs: [ 24 "avrcp_browse_packet_fuzzer.cc", 25 26 ], 27 28 corpus: ["corpus/avrcp_browse_packets_corpus/*"], 29 30 static_libs: [ 31 "libgmock", 32 "lib-bt-packets", 33 ], 34 cflags: [ 35 "-DBUILDCFG", 36 ], 37} 38 39cc_fuzz { 40 name: "change_path_req_fuzzer", 41 defaults: ["fluoride_defaults"], 42 host_supported: true, 43 44 include_dirs: [ 45 "system/bt/", 46 "system/bt/include", 47 "system/bt/packet/include", 48 "system/bt/packet/tests", 49 "system/bt/packet/tests/avrcp", 50 "system/bt/packet/base", 51 ], 52 //system/libbase/include/android-base" 53 srcs: [ 54 "change_path_req_fuzzer.cc", 55 56 ], 57 58 corpus: ["corpus/change_path_req_corpus/*"], 59 60 static_libs: [ 61 "libgmock", 62 "lib-bt-packets", 63 ], 64 cflags: [ 65 "-DBUILDCFG", 66 ], 67} 68 69cc_fuzz { 70 name: "get_capabilities_req_fuzzer", 71 defaults: ["fluoride_defaults"], 72 host_supported: true, 73 74 include_dirs: [ 75 "system/bt/", 76 "system/bt/include", 77 "system/bt/packet/include", 78 "system/bt/packet/tests", 79 "system/bt/packet/tests/avrcp", 80 "system/bt/packet/base", 81 ], 82 83 srcs: [ 84 "get_capabilities_req_fuzzer.cc", 85 86 ], 87 88 corpus: ["corpus/get_capabilities_req_corpus/*"], 89 90 static_libs: [ 91 "libgmock", 92 "lib-bt-packets", 93 ], 94 cflags: [ 95 "-DBUILDCFG", 96 ], 97} 98 99cc_fuzz { 100 name: "get_capabilities_res_fuzzer", 101 defaults: ["fluoride_defaults"], 102 host_supported: true, 103 104 include_dirs: [ 105 "system/bt/", 106 "system/bt/include", 107 "system/bt/packet/include", 108 "system/bt/packet/tests", 109 "system/bt/packet/tests/avrcp", 110 "system/bt/packet/base", 111 ], 112 113 srcs: [ 114 "get_capabilities_res_fuzzer.cc", 115 116 ], 117 118 corpus: ["corpus/get_capabilities_res_corpus/*"], 119 120 static_libs: [ 121 "libgmock", 122 "lib-bt-packets", 123 ], 124 cflags: [ 125 "-DBUILDCFG", 126 ], 127} 128 129cc_fuzz { 130 name: "get_item_attributes_req_fuzzer", 131 defaults: ["fluoride_defaults"], 132 host_supported: true, 133 134 include_dirs: [ 135 "system/bt/", 136 "system/bt/include", 137 "system/bt/packet/include", 138 "system/bt/packet/tests", 139 "system/bt/packet/tests/avrcp", 140 "system/bt/packet/base", 141 ], 142 143 srcs: [ 144 "get_item_attributes_req_fuzzer.cc", 145 146 ], 147 148 corpus: ["corpus/get_item_attributes_req_corpus/*"], 149 150 static_libs: [ 151 "libgmock", 152 "lib-bt-packets", 153 ], 154 cflags: [ 155 "-DBUILDCFG", 156 ], 157} 158 159cc_fuzz { 160 name: "get_play_status_req_fuzzer", 161 defaults: ["fluoride_defaults"], 162 host_supported: true, 163 164 include_dirs: [ 165 "system/bt/", 166 "system/bt/include", 167 "system/bt/packet/include", 168 "system/bt/packet/tests", 169 "system/bt/packet/tests/avrcp", 170 "system/bt/packet/base", 171 ], 172 173 srcs: [ 174 "get_play_status_req_fuzzer.cc", 175 176 ], 177 178 corpus: ["get_play_status_req_corpus/*"], 179 180 static_libs: [ 181 "libgmock", 182 "lib-bt-packets", 183 ], 184 cflags: [ 185 "-DBUILDCFG", 186 ], 187} 188 189cc_fuzz { 190 name: "get_total_number_of_items_req_fuzzer", 191 defaults: ["fluoride_defaults"], 192 host_supported: true, 193 194 include_dirs: [ 195 "system/bt/", 196 "system/bt/include", 197 "system/bt/packet/include", 198 "system/bt/packet/tests", 199 "system/bt/packet/tests/avrcp", 200 "system/bt/packet/base", 201 ], 202 203 srcs: [ 204 "get_total_number_of_items_req_fuzzer.cc", 205 206 ], 207 208 corpus: ["corpus/get_total_number_of_items_req_corpus/*"], 209 210 static_libs: [ 211 "libgmock", 212 "lib-bt-packets", 213 ], 214 cflags: [ 215 "-DBUILDCFG", 216 ], 217} 218 219cc_fuzz { 220 name: "pass_through_packet_fuzzer", 221 defaults: ["fluoride_defaults"], 222 host_supported: true, 223 224 include_dirs: [ 225 "system/bt/", 226 "system/bt/include", 227 "system/bt/packet/include", 228 "system/bt/packet/tests", 229 "system/bt/packet/tests/avrcp", 230 "system/bt/packet/base", 231 ], 232 233 srcs: [ 234 "pass_through_packet_fuzzer.cc", 235 236 ], 237 238 corpus: ["corpus/pass_through_packet_corpus/*"], 239 240 static_libs: [ 241 "libgmock", 242 "lib-bt-packets", 243 ], 244 cflags: [ 245 "-DBUILDCFG", 246 ], 247} 248 249cc_fuzz { 250 name: "play_item_packet_fuzzer", 251 defaults: ["fluoride_defaults"], 252 host_supported: true, 253 254 include_dirs: [ 255 "system/bt/", 256 "system/bt/include", 257 "system/bt/packet/include", 258 "system/bt/packet/tests", 259 "system/bt/packet/tests/avrcp", 260 "system/bt/packet/base", 261 ], 262 263 srcs: [ 264 "play_item_packet_fuzzer.cc", 265 266 ], 267 268 corpus: ["corpus/play_item_packet_corpus/*"], 269 270 static_libs: [ 271 "libgmock", 272 "lib-bt-packets", 273 ], 274 cflags: [ 275 "-DBUILDCFG", 276 ], 277} 278 279cc_fuzz { 280 name: "register_notification_packet_fuzzer", 281 defaults: ["fluoride_defaults"], 282 host_supported: true, 283 284 include_dirs: [ 285 "system/bt/", 286 "system/bt/include", 287 "system/bt/packet/include", 288 "system/bt/packet/tests", 289 "system/bt/packet/tests/avrcp", 290 "system/bt/packet/base", 291 ], 292 293 srcs: [ 294 "register_notification_packet_fuzzer.cc", 295 296 ], 297 298 corpus: ["corpus/register_notification_packet_corpus/*"], 299 300 static_libs: [ 301 "libgmock", 302 "lib-bt-packets", 303 ], 304 cflags: [ 305 "-DBUILDCFG", 306 ], 307} 308 309cc_fuzz { 310 name: "set_absolute_volume_packet_fuzzer", 311 defaults: ["fluoride_defaults"], 312 host_supported: true, 313 314 include_dirs: [ 315 "system/bt/", 316 "system/bt/include", 317 "system/bt/packet/include", 318 "system/bt/packet/tests", 319 "system/bt/packet/tests/avrcp", 320 "system/bt/packet/base", 321 ], 322 323 srcs: [ 324 "set_absolute_volume_packet_fuzzer.cc", 325 326 ], 327 328 corpus: ["corpus/set_absolute_volume_packet_corpus/*"], 329 330 static_libs: [ 331 "libgmock", 332 "lib-bt-packets", 333 ], 334 cflags: [ 335 "-DBUILDCFG", 336 ], 337} 338 339cc_fuzz { 340 name: "set_addressed_player_packet_fuzzer", 341 defaults: ["fluoride_defaults"], 342 host_supported: true, 343 344 include_dirs: [ 345 "system/bt/", 346 "system/bt/include", 347 "system/bt/packet/include", 348 "system/bt/packet/tests", 349 "system/bt/packet/tests/avrcp", 350 "system/bt/packet/base", 351 ], 352 353 srcs: [ 354 "set_addressed_player_packet_fuzzer.cc", 355 356 ], 357 358 corpus: ["corpus/set_addressed_player_packet_corpus/*"], 359 360 static_libs: [ 361 "libgmock", 362 "lib-bt-packets", 363 ], 364 cflags: [ 365 "-DBUILDCFG", 366 ], 367} 368 369cc_fuzz { 370 name: "set_browsed_player_req_fuzzer", 371 defaults: ["fluoride_defaults"], 372 host_supported: true, 373 374 include_dirs: [ 375 "system/bt/", 376 "system/bt/include", 377 "system/bt/packet/include", 378 "system/bt/packet/tests", 379 "system/bt/packet/tests/avrcp", 380 "system/bt/packet/base", 381 ], 382 383 srcs: [ 384 "set_browsed_player_req_fuzzer.cc", 385 386 ], 387 388 corpus: ["corpus/set_browsed_player_req_corpus/*"], 389 390 static_libs: [ 391 "libgmock", 392 "lib-bt-packets", 393 ], 394 cflags: [ 395 "-DBUILDCFG", 396 ], 397} 398 399cc_fuzz { 400 name: "vendor_packet_fuzzer", 401 defaults: ["fluoride_defaults"], 402 host_supported: true, 403 404 include_dirs: [ 405 "system/bt/", 406 "system/bt/include", 407 "system/bt/packet/include", 408 "system/bt/packet/tests", 409 "system/bt/packet/tests/avrcp", 410 "system/bt/packet/base", 411 ], 412 413 srcs: [ 414 "vendor_packet_fuzzer.cc", 415 416 ], 417 418 corpus: ["corpus/vendor_packet_corpus/*"], 419 420 static_libs: [ 421 "libgmock", 422 "lib-bt-packets", 423 ], 424 cflags: [ 425 "-DBUILDCFG", 426 ], 427} 428 429cc_fuzz { 430 name: "avrcp_packet_fuzzer", 431 defaults: ["fluoride_defaults"], 432 host_supported: true, 433 434 include_dirs: [ 435 "system/bt/", 436 "system/bt/include", 437 "system/bt/packet/include", 438 "system/bt/packet/tests", 439 "system/bt/packet/tests/avrcp", 440 "system/bt/packet/base", 441 ], 442 443 srcs: [ 444 "avrcp_packet_fuzzer.cc", 445 446 ], 447 448 corpus: ["corpus/avrcp_packet_corpus/*"], 449 450 static_libs: [ 451 "libgmock", 452 "lib-bt-packets", 453 ], 454 cflags: [ 455 "-DBUILDCFG", 456 ], 457} 458 459cc_fuzz { 460 name: "reject_packet_fuzzer", 461 defaults: ["fluoride_defaults"], 462 host_supported: true, 463 464 include_dirs: [ 465 "system/bt/", 466 "system/bt/include", 467 "system/bt/packet/include", 468 "system/bt/packet/tests", 469 "system/bt/packet/tests/avrcp", 470 "system/bt/packet/base", 471 ], 472 473 srcs: [ 474 "reject_packet_fuzzer.cc", 475 476 ], 477 478 corpus: ["corpus/reject_packet_corpus/*"], 479 480 static_libs: [ 481 "libgmock", 482 "lib-bt-packets", 483 ], 484 cflags: [ 485 "-DBUILDCFG", 486 ], 487} 488 489cc_fuzz { 490 name: "get_element_attributes_req_fuzzer", 491 defaults: ["fluoride_defaults"], 492 host_supported: true, 493 494 include_dirs: [ 495 "system/bt/", 496 "system/bt/include", 497 "system/bt/packet/include", 498 "system/bt/packet/tests", 499 "system/bt/packet/tests/avrcp", 500 "system/bt/packet/base", 501 ], 502 503 srcs: [ 504 "get_element_attributes_req_packet_fuzzer.cc", 505 506 ], 507 508 corpus: ["corpus/get_element_attributes_req_corpus/*"], 509 510 static_libs: [ 511 "libgmock", 512 "lib-bt-packets", 513 ], 514 cflags: [ 515 "-DBUILDCFG", 516 ], 517} 518 519cc_fuzz { 520 name: "change_path_res_fuzzer", 521 defaults: ["fluoride_defaults"], 522 host_supported: true, 523 524 include_dirs: [ 525 "system/bt/", 526 "system/bt/include", 527 "system/bt/packet/include", 528 "system/bt/packet/tests", 529 "system/bt/packet/tests/avrcp", 530 "system/bt/packet/base", 531 ], 532 533 srcs: [ 534 "change_path_res_fuzzer.cc", 535 536 ], 537 538 corpus: ["corpus/change_path_res_corpus/*"], 539 540 static_libs: [ 541 "libgmock", 542 "lib-bt-packets", 543 ], 544 cflags: [ 545 "-DBUILDCFG", 546 ], 547} 548 549cc_fuzz { 550 name: "get_element_attributes_res_fuzzer", 551 defaults: ["fluoride_defaults"], 552 host_supported: true, 553 554 include_dirs: [ 555 "system/bt/", 556 "system/bt/include", 557 "system/bt/packet/include", 558 "system/bt/packet/tests", 559 "system/bt/packet/tests/avrcp", 560 "system/bt/packet/base", 561 ], 562 563 srcs: [ 564 "get_element_attributes_res_packet_fuzzer.cc", 565 566 ], 567 568 corpus: ["corpus/get_element_attributes_res_corpus/*"], 569 570 static_libs: [ 571 "libgmock", 572 "lib-bt-packets", 573 ], 574 cflags: [ 575 "-DBUILDCFG", 576 ], 577} 578 579cc_fuzz { 580 name: "get_folder_items_res_fuzzer", 581 defaults: ["fluoride_defaults"], 582 host_supported: true, 583 584 include_dirs: [ 585 "system/bt/", 586 "system/bt/include", 587 "system/bt/packet/include", 588 "system/bt/packet/tests", 589 "system/bt/packet/tests/avrcp", 590 "system/bt/packet/base", 591 ], 592 593 srcs: [ 594 "get_folder_items_res_fuzzer.cc", 595 596 ], 597 598 corpus: ["corpus/get_folder_items_res_corpus/*"], 599 600 static_libs: [ 601 "libgmock", 602 "lib-bt-packets", 603 ], 604 cflags: [ 605 "-DBUILDCFG", 606 ], 607} 608 609cc_fuzz { 610 name: "get_folder_items_req_fuzzer", 611 defaults: ["fluoride_defaults"], 612 host_supported: true, 613 614 include_dirs: [ 615 "system/bt/", 616 "system/bt/include", 617 "system/bt/packet/include", 618 "system/bt/packet/tests", 619 "system/bt/packet/tests/avrcp", 620 "system/bt/packet/base", 621 ], 622 623 srcs: [ 624 "get_folder_items_req_fuzzer.cc", 625 626 ], 627 628 corpus: ["corpus/get_folder_items_req_corpus/*"], 629 630 static_libs: [ 631 "libgmock", 632 "lib-bt-packets", 633 ], 634 cflags: [ 635 "-DBUILDCFG", 636 ], 637} 638 639cc_fuzz { 640 name: "get_item_attributes_res_fuzzer", 641 defaults: ["fluoride_defaults"], 642 host_supported: true, 643 644 include_dirs: [ 645 "system/bt/", 646 "system/bt/include", 647 "system/bt/packet/include", 648 "system/bt/packet/tests", 649 "system/bt/packet/tests/avrcp", 650 "system/bt/packet/base", 651 ], 652 653 srcs: [ 654 "get_item_attributes_res_fuzzer.cc", 655 656 ], 657 658 corpus: ["corpus/get_item_attributes_res_corpus/*"], 659 660 static_libs: [ 661 "libgmock", 662 "lib-bt-packets", 663 ], 664 cflags: [ 665 "-DBUILDCFG", 666 ], 667} 668 669cc_fuzz { 670 name: "get_play_status_res_fuzzer", 671 defaults: ["fluoride_defaults"], 672 host_supported: true, 673 674 include_dirs: [ 675 "system/bt/", 676 "system/bt/include", 677 "system/bt/packet/include", 678 "system/bt/packet/tests", 679 "system/bt/packet/tests/avrcp", 680 "system/bt/packet/base", 681 ], 682 683 srcs: [ 684 "get_play_status_res_fuzzer.cc", 685 686 ], 687 688 corpus: ["corpus/get_play_status_res_corpus/*"], 689 690 static_libs: [ 691 "libgmock", 692 "lib-bt-packets", 693 ], 694 cflags: [ 695 "-DBUILDCFG", 696 ], 697} 698 699cc_fuzz { 700 name: "get_total_number_of_items_res_fuzzer", 701 defaults: ["fluoride_defaults"], 702 host_supported: true, 703 704 include_dirs: [ 705 "system/bt/", 706 "system/bt/include", 707 "system/bt/packet/include", 708 "system/bt/packet/tests", 709 "system/bt/packet/tests/avrcp", 710 "system/bt/packet/base", 711 ], 712 713 srcs: [ 714 "get_total_number_of_items_res_fuzzer.cc", 715 716 ], 717 718 corpus: ["corpus/get_total_number_of_items_res_corpus/*"], 719 720 static_libs: [ 721 "libgmock", 722 "lib-bt-packets", 723 ], 724 cflags: [ 725 "-DBUILDCFG", 726 ], 727} 728 729cc_fuzz { 730 name: "set_browsed_player_res_fuzzer", 731 defaults: ["fluoride_defaults"], 732 host_supported: true, 733 734 include_dirs: [ 735 "system/bt/", 736 "system/bt/include", 737 "system/bt/packet/include", 738 "system/bt/packet/tests", 739 "system/bt/packet/tests/avrcp", 740 "system/bt/packet/base", 741 ], 742 743 srcs: [ 744 "set_browsed_player_res_fuzzer.cc", 745 746 ], 747 748 corpus: ["corpus/set_browsed_player_res_fuzzer/*"], 749 750 static_libs: [ 751 "libgmock", 752 "lib-bt-packets", 753 ], 754 cflags: [ 755 "-DBUILDCFG", 756 ], 757} 758