summaryrefslogtreecommitdiff
path: root/test/OptionalRequiredTest.thrift
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2007-09-11 22:09:42 +0000
committerDavid Reiss <dreiss@apache.org>2007-09-11 22:09:42 +0000
commitce161a96cddbea8916d0b20406b12d96772482ed (patch)
treedeb35caa60008c44d04468e3d8f3298e89e1fd11 /test/OptionalRequiredTest.thrift
parent8775c73db2729f85fd66e2c8443a3628fd55a972 (diff)
downloadthrift-ce161a96cddbea8916d0b20406b12d96772482ed.tar.gz
Thrift: Clean up and test TDenseProtocol
Summary: - TDenseProtocol now includes a part of the struct fingerprint in the serialized message, to protect from unserialzing trash. - A lot of cleanups and commenting for TDenseProtocol. - A lot of test cases for same. Reviewed By: mcslee Test Plan: test/DenseProtoTest.cpp Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/OptionalRequiredTest.thrift')
-rw-r--r--test/OptionalRequiredTest.thrift9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/OptionalRequiredTest.thrift b/test/OptionalRequiredTest.thrift
index b2652dd5c..431a0b006 100644
--- a/test/OptionalRequiredTest.thrift
+++ b/test/OptionalRequiredTest.thrift
@@ -40,3 +40,12 @@ struct Complex {
5: required Simple req_simp;
6: optional Simple opt_simp;
}
+
+struct ManyOpt {
+ 1: optional i32 opt1;
+ 2: optional i32 opt2;
+ 3: optional i32 opt3;
+ 4: i32 def4;
+ 5: optional i32 opt5;
+ 6: optional i32 opt6;
+}