aboutsummaryrefslogtreecommitdiff
path: root/conformance/conformance_test.h
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-10-26 14:41:43 -0700
committerGitHub <noreply@github.com>2017-10-26 14:41:43 -0700
commit23adfeb00327fbdccacc99806acb1a9a073bd8e0 (patch)
treef56e93003569b065b7c2fd191e97763e9c1738ab /conformance/conformance_test.h
parenta08b03d4c00a5793b88b494f672513f6ad46a681 (diff)
downloadprotobuf-23adfeb00327fbdccacc99806acb1a9a073bd8e0.tar.gz
protobuf-23adfeb00327fbdccacc99806acb1a9a073bd8e0.tar.bz2
protobuf-23adfeb00327fbdccacc99806acb1a9a073bd8e0.zip
Reserve unknown in Ruby (#3763)
* Reserve unknown in ruby * Revert ruby tests. Wait for cpp impl for conformance test * Add conformance test for preserving unknown * Add unknown field conformance test to csharp failure list. * Fix comments * Fix comment * Fix comments * Fix typo * Use stringsink_string directly * Mark hd unused * Remove unused encodeunknown_handlerfunc
Diffstat (limited to 'conformance/conformance_test.h')
-rw-r--r--conformance/conformance_test.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/conformance/conformance_test.h b/conformance/conformance_test.h
index d1a822eb..4882412c 100644
--- a/conformance/conformance_test.h
+++ b/conformance/conformance_test.h
@@ -167,6 +167,13 @@ class ConformanceTestSuite {
const string& equivalent_text_format,
conformance::WireFormat requested_output,
bool isProto3);
+ void RunValidBinaryInputTest(const string& test_name,
+ ConformanceLevel level,
+ const string& input,
+ conformance::WireFormat input_format,
+ const string& equivalent_wire_format,
+ conformance::WireFormat requested_output,
+ bool isProto3);
void RunValidJsonTest(const string& test_name,
ConformanceLevel level,
const string& input_json,
@@ -180,6 +187,10 @@ class ConformanceTestSuite {
const string& input_protobuf,
const string& equivalent_text_format,
bool isProto3);
+ void RunValidBinaryProtobufTest(const string& test_name,
+ ConformanceLevel level,
+ const string& input_protobuf,
+ bool isProto3);
void RunValidProtobufTestWithMessage(
const string& test_name, ConformanceLevel level,
const Message *input,
@@ -212,6 +223,9 @@ class ConformanceTestSuite {
template <class MessageType>
void TestOneofMessage (MessageType &message,
bool isProto3);
+ template <class MessageType>
+ void TestUnknownMessage (MessageType &message,
+ bool isProto3);
void TestValidDataForType(
google::protobuf::FieldDescriptor::Type,
std::vector<std::pair<std::string, std::string>> values);