| #include "google/protobuf/descriptor.proto.h" |
| #include "testing/fuzzing/fuzztest.h" |
| #include "upb/util/def_to_proto_test.h" |
| FUZZ_TEST(FuzzTest, RoundTripDescriptor) |
| ::fuzztest::Arbitrary<google::protobuf::FileDescriptorSet>().WithProtobufField( |
| ::fuzztest::Arbitrary<google::protobuf::FileDescriptorProto>() |
| // upb_FileDef_ToProto() does not attempt to preserve |
| .WithFieldUnset("source_code_info") |
| ::fuzztest::Arbitrary<google::protobuf::ServiceDescriptorProto>() |
| // streams are google3-only, and we do not currently |
| // attempt to preserve them. |
| .WithFieldUnset("stream")))); |