aboutsummaryrefslogtreecommitdiff
path: root/conformance/conformance.proto
diff options
context:
space:
mode:
Diffstat (limited to 'conformance/conformance.proto')
-rw-r--r--conformance/conformance.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/conformance/conformance.proto b/conformance/conformance.proto
index 525140e9..af89152d 100644
--- a/conformance/conformance.proto
+++ b/conformance/conformance.proto
@@ -57,6 +57,18 @@ enum WireFormat {
JSON = 2;
}
+enum TestCategory {
+ UNSPECIFIED_TEST = 0;
+ BINARY_TEST = 1; // Test binary wire format.
+ JSON_TEST = 2; // Test json wire format.
+ // Similar to JSON_TEST. However, during parsing json, testee should ignore
+ // unknown fields. This feature is optional. Each implementation can descide
+ // whether to support it. See
+ // https://developers.google.com/protocol-buffers/docs/proto3#json_options
+ // for more detail.
+ JSON_IGNORE_UNKNOWN_PARSING_TEST = 3;
+}
+
// Represents a single test case's input. The testee should:
//
// 1. parse this proto (which should always succeed)
@@ -82,6 +94,11 @@ message ConformanceRequest {
// protobuf_test_messages.proto3.TestAllTypesProto3 or
// protobuf_test_messages.proto2.TestAllTypesProto2.
string message_type = 4;
+
+ // Each test is given a specific test category. Some category may need
+ // spedific support in testee programs. Refer to the defintion of TestCategory
+ // for more information.
+ TestCategory test_category = 5;
}
// Represents a single test case's output.