Down integrate to Github
diff --git a/conformance/conformance_cpp.cc b/conformance/conformance_cpp.cc
index ff70d5d..5a1f214 100644
--- a/conformance/conformance_cpp.cc
+++ b/conformance/conformance_cpp.cc
@@ -214,8 +214,10 @@
}
case conformance::TEXT_FORMAT: {
- GOOGLE_CHECK(TextFormat::PrintToString(*test_message,
- response->mutable_text_payload()));
+ TextFormat::Printer printer;
+ printer.SetHideUnknownFields(!request.print_unknown_fields());
+ GOOGLE_CHECK(printer.PrintToString(*test_message,
+ response->mutable_text_payload()));
break;
}