diff --git a/conformance/conformance.proto b/conformance/conformance.proto index a9edbab823..d2c533d1ba 100644 --- a/conformance/conformance.proto +++ b/conformance/conformance.proto @@ -29,8 +29,11 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. syntax = "proto3"; + package conformance; + option java_package = "com.google.protobuf.conformance"; +option objc_class_prefix = "Conformance"; // This defines the conformance testing protocol. This protocol exists between // the conformance test suite itself and the code being tested. For each test, diff --git a/conformance/conformance_objc.m b/conformance/conformance_objc.m index 12f06c9324..909768ba5c 100644 --- a/conformance/conformance_objc.m +++ b/conformance/conformance_objc.m @@ -110,13 +110,13 @@ static ConformanceResponse *DoTest(ConformanceRequest *request) { if (testMessage) { switch (request.requestedOutputFormat) { - case WireFormat_GPBUnrecognizedEnumeratorValue: - case WireFormat_Unspecified: + case ConformanceWireFormat_GPBUnrecognizedEnumeratorValue: + case ConformanceWireFormat_Unspecified: response.runtimeError = [NSString stringWithFormat:@"Unrecognized/unspecified output format: %@", request]; break; - case WireFormat_Protobuf: + case ConformanceWireFormat_Protobuf: response.protobufPayload = testMessage.data; if (!response.protobufPayload) { response.serializeError = @@ -124,17 +124,17 @@ static ConformanceResponse *DoTest(ConformanceRequest *request) { } break; - case WireFormat_Json: + case ConformanceWireFormat_Json: response.skipped = @"ObjC doesn't support generating JSON"; break; - case WireFormat_Jspb: + case ConformanceWireFormat_Jspb: response.skipped = @"ConformanceRequest had a requested_output_format of JSPB WireFormat; that" " isn't supposed to happen with opensource."; break; - case WireFormat_TextFormat: + case ConformanceWireFormat_TextFormat: // ObjC only has partial objc generation, so don't attempt any tests that need // support. response.skipped = @"ObjC doesn't support generating TextFormat";