MB-19204: ep_testsuite: Use std::string for last_key/body 07/62907/4
authorDave Rigby <daver@couchbase.com>
Thu, 2 Jul 2015 15:25:10 +0000 (15:25 +0000)
committerChiyoung Seo <chiyoung@couchbase.com>
Sat, 23 Apr 2016 00:44:49 +0000 (00:44 +0000)
commiteb1e92537f03135cbb4cff7e0b47b9bfb898064f
tree61dfb9674c37cc93f151d1483e9506a847bbda17
parent1b1c0f40df63c8676280d624efb03a7f599858f0
MB-19204: ep_testsuite: Use std::string for last_key/body

Replace the manually-managed char* for last_body and last_key with
std::string. This solves the issue of leaving these two buffers
un-free'd at the end of a test; and gives simplifies managing and
testing the last body & key values.

Change-Id: Ic1c64032e34e7abbe5ba8de3e16c115a78a6632f
Reviewed-on: http://review.couchbase.org/62907
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>
tests/ep_test_apis.cc
tests/ep_test_apis.h
tests/ep_testsuite.cc