| 2426 | } |
| 2427 | |
| 2428 | std::pair<google::protobuf::Message*, const google::protobuf::Reflection*> CreateTestMessage( |
| 2429 | const google::protobuf::DescriptorPool& descriptor_pool, |
| 2430 | google::protobuf::MessageFactory& message_factory, absl::string_view name) { |
| 2431 | const google::protobuf::Descriptor* desc = descriptor_pool.FindMessageTypeByName(name); |
| 2432 | const google::protobuf::Message* message_prototype = message_factory.GetPrototype(desc); |
| 2433 | google::protobuf::Message* message = message_prototype->New(); |
| 2434 | const google::protobuf::Reflection* refl = message->GetReflection(); |
| 2435 | return std::make_pair(message, refl); |
| 2436 | } |
| 2437 | |
| 2438 | struct CustomDescriptorPoolTestParam final { |
| 2439 | using SetterFunction = |
no test coverage detected