Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85bd8d7d authored by Myles Watson's avatar Myles Watson
Browse files

PDL: Limit RawBuilder to tests

Test: fuzz/run --host bluetooth_gd_hci_fuzz_test
Change-Id: I8d285164c4297a4d727a47e3ee71d84190351429
parent 2097bbd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4208,7 +4208,7 @@ packet RemoteHostSupportedFeaturesNotification : EventPacket (event_code = REMOT

packet LeMetaEvent : EventPacket (event_code = LE_META_EVENT) {
  subevent_code : SubeventCode,
  _payload_,
  _body_,
}

packet NumberOfCompletedDataBlocks : EventPacket (event_code = NUMBER_OF_COMPLETED_DATA_BLOCKS){
+4 −0
Original line number Diff line number Diff line
@@ -132,7 +132,9 @@ bool generate_cpp_headers_one_file(const Declarations& decls, const std::filesys
  out_file << "#include \"packet/packet_builder.h\"\n";
  out_file << "#include \"packet/packet_struct.h\"\n";
  out_file << "#include \"packet/packet_view.h\"\n";
  out_file << "\n#if defined(PACKET_FUZZ_TESTING) || defined(PACKET_TESTING) || defined(FUZZ_TARGET)\n";
  out_file << "#include \"packet/raw_builder.h\"\n";
  out_file << "\n#endif\n";
  out_file << "#include \"packet/parser/checksum_type_checker.h\"\n";
  out_file << "#include \"packet/parser/custom_type_checker.h\"\n";
  out_file << "\n\n";
@@ -166,7 +168,9 @@ bool generate_cpp_headers_one_file(const Declarations& decls, const std::filesys
  out_file << "using ::bluetooth::packet::PacketBuilder;";
  out_file << "using ::bluetooth::packet::PacketStruct;";
  out_file << "using ::bluetooth::packet::PacketView;";
  out_file << "\n#if defined(PACKET_FUZZ_TESTING) || defined(PACKET_TESTING) || defined(FUZZ_TARGET)\n";
  out_file << "using ::bluetooth::packet::RawBuilder;";
  out_file << "\n#endif\n";
  out_file << "using ::bluetooth::packet::parser::ChecksumTypeChecker;";
  out_file << "\n\n";