From 0c95791509ec0fe4e6973ccf885ad0055eb35b82 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Mon, 14 Jan 2019 10:28:21 -0500 Subject: [PATCH] [ObjC] add support for the TextFormat constants. ObjC doesn't support them, but this ensure when tests are added they will be handled correctly. The conformance.proto was updated in PR #5566 --- conformance/conformance_objc.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conformance/conformance_objc.m b/conformance/conformance_objc.m index 42b17bce30..60b2ac59ed 100644 --- a/conformance/conformance_objc.m +++ b/conformance/conformance_objc.m @@ -98,6 +98,10 @@ static ConformanceResponse *DoTest(ConformanceRequest *request) { @"ConformanceRequest had a jspb_payload ConformanceRequest.payload;" " those aren't supposed to happen with opensource."; break; + + case ConformanceRequest_Payload_OneOfCase_TextPayload: + response.skipped = @"ObjC doesn't support parsing TextFormat"; + break; } if (testMessage) { @@ -124,6 +128,12 @@ static ConformanceResponse *DoTest(ConformanceRequest *request) { @"ConformanceRequest had a requested_output_format of JSPB WireFormat; that" " isn't supposed to happen with opensource."; break; + + case WireFormat_TextFormat: + // ObjC only has partial objc generation, so don't attempt any tests that need + // support. + response.skipped = @"ObjC doesn't support generating TextFormat"; + break; } }