diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2019-04-05 14:38:15 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2019-04-05 14:38:15 +0000 |
commit | 75cb5f0dc21e54be37fd5e0bada2fb93cac0b049 (patch) | |
tree | 8e3a77e8efb947c13eb26493f7c16cfaac0f2ca6 /storageapi/src/tests | |
parent | b2eb61ee0eec53d41a112c3679478c725bfc67aa (diff) |
Faster protobuf serialization without `std::string` indirection
Diffstat (limited to 'storageapi/src/tests')
-rw-r--r-- | storageapi/src/tests/mbusprot/storageprotocoltest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp index 5a5d53ce950..fd375fd6e74 100644 --- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp +++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp @@ -16,6 +16,7 @@ #include <vespa/document/test/make_bucket_space.h> #include <vespa/vespalib/util/growablebytebuffer.h> #include <vespa/vespalib/objects/nbostream.h> + #include <iomanip> #include <sstream> @@ -35,6 +36,15 @@ using document::test::makeBucketSpace; using storage::lib::ClusterState; using vespalib::string; +namespace vespalib { + +// Needed for GTest to properly understand how to print Version values. +void PrintTo(const vespalib::Version& v, std::ostream* os) { + *os << v.toString(); +} + +} + namespace storage::api { struct StorageProtocolTest : TestWithParam<vespalib::Version> { |