summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2017-10-20 08:50:09 +0000
committerTor Egge <Tor.Egge@oath.com>2017-10-20 08:50:09 +0000
commitbd8b54938748810e435b1bf0e1c32953090768c0 (patch)
tree6306fec28ad7496e9c1ce457d81b0a5054450164 /storageapi
parent52f05c73d091ccf8c00024a3ca377987eec6d5ee (diff)
Move test function makeDocumentBucket to document module.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index f03c59f0887..bfd657c2f05 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -15,6 +15,7 @@
#include <vespa/document/document.h>
#include <vespa/document/repo/documenttyperepo.h>
#include <vespa/document/update/fieldpathupdates.h>
+#include <vespa/document/test/make_document_bucket.h>
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/vespalib/util/growablebytebuffer.h>
#include <vespa/vespalib/objects/nbostream.h>
@@ -28,21 +29,13 @@ using document::Document;
using document::DocumentId;
using document::DocumentType;
using document::DocumentTypeRepo;
+using document::test::makeDocumentBucket;
using storage::lib::ClusterState;
using vespalib::string;
namespace storage {
namespace api {
-namespace {
-
-document::Bucket makeDocumentBucket(document::BucketId bucketId)
-{
- return document::Bucket(BucketSpace::placeHolder(), bucketId);
-}
-
-}
-
struct StorageProtocolTest : public CppUnit::TestFixture {
document::TestDocMan _docMan;
document::Document::SP _testDoc;