diff --git a/src/google/protobuf/generated_message_reflection_unittest.cc b/src/google/protobuf/generated_message_reflection_unittest.cc index 7879dafeab..c1ebd58dd7 100644 --- a/src/google/protobuf/generated_message_reflection_unittest.cc +++ b/src/google/protobuf/generated_message_reflection_unittest.cc @@ -69,6 +69,11 @@ class GeneratedMessageReflectionTestHelper { const FieldDescriptor* field) { return msg.GetReflection()->IsLazilyVerifiedLazyField(field); } + template + static const T& GetRaw(const Message& msg, const FieldDescriptor* field) { + const Reflection* reflection = msg.GetReflection(); + return reflection->GetRaw(msg, field); + } }; namespace {