Thrift: Clean up and test TDenseProtocol
authorDavid Reiss <dreiss@apache.org>
Tue, 11 Sep 2007 22:09:42 +0000 (22:09 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 11 Sep 2007 22:09:42 +0000 (22:09 +0000)
commitce161a96cddbea8916d0b20406b12d96772482ed
treedeb35caa60008c44d04468e3d8f3298e89e1fd11
parent8775c73db2729f85fd66e2c8443a3628fd55a972
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
compiler/cpp/src/generate/t_cpp_generator.cc
compiler/cpp/src/generate/t_cpp_generator.h
lib/cpp/src/TReflectionLocal.h
lib/cpp/src/protocol/TDenseProtocol.cpp
lib/cpp/src/protocol/TDenseProtocol.h
test/DenseProtoTest.cpp
test/OptionalRequiredTest.thrift