thrift/lib/cpp/test
David Reiss 35dc7695a9 THRIFT-929. cpp: Add unit test for transport functionality
Tests various transport types by writing data, and verifying it can be
read back successfully.  Tests both virtual calls (accessed as
TTransport*) and non-virtual calls (accessed as the appropriate pointer
type, or as TBufferBase* when appropriate).

This is similar to some of the tests already performed in
TMemoryBufferTest and ZlibTest.cpp.  However, this tests a few more
transport types, and it interleaves read and write calls more heavily.
(It currently exposes some bugs in flush() in a couple transports.) It
also exercises both the virtual and non-virtual code paths, now that
read() and write() only result in virtual calls when invoked on a
TTransport*.

TFileTransport currently has several race condition bugs, so most of the
TFileTransport tests ususally fail.  It also has some performance bugs,
causing the TFileTransport tests to take a long time.  Will fix those
issues separately.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005146 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 17:10:19 +00:00
..
AllProtocolTests.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
AllProtocolTests.tcc THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
Benchmark.cpp THRIFT-922. cpp: Templatize binary and compact protocol 2010-10-06 17:09:56 +00:00
DebugProtoTest_extras.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
DebugProtoTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
DenseProtoTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
GenericHelpers.h THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
JSONProtoTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
Makefile.am THRIFT-929. cpp: Add unit test for transport functionality 2010-10-06 17:10:19 +00:00
OptionalRequiredTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
SpecializationTest.cpp THRIFT-922. cpp: Templatize binary and compact protocol 2010-10-06 17:09:56 +00:00
TBufferBaseTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TFDTransportTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
ThriftTest_extras.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TMemoryBufferTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TPipedTransportTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TransportTest.cpp THRIFT-929. cpp: Add unit test for transport functionality 2010-10-06 17:10:19 +00:00
UnitTestMain.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
ZlibTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00