summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/documentdb_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/documentdb_test.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdb_test.cpp b/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
index 473fcba8051..f18029a6449 100644
--- a/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
@@ -57,16 +57,19 @@ public:
struct MyDBOwner : public DummyDBOwner
{
std::shared_ptr<DocumentDBReferenceRegistry> _registry;
- MyDBOwner()
- : DummyDBOwner(),
- _registry(std::make_shared<DocumentDBReferenceRegistry>())
- {
- }
+ MyDBOwner();
+ ~MyDBOwner();
std::shared_ptr<IDocumentDBReferenceRegistry> getDocumentDBReferenceRegistry() const override {
return _registry;
}
};
+MyDBOwner::MyDBOwner()
+ : DummyDBOwner(),
+ _registry(std::make_shared<DocumentDBReferenceRegistry>())
+{}
+MyDBOwner::~MyDBOwner() {}
+
struct Fixture {
DummyWireService _dummy;
MyDBOwner _myDBOwner;
@@ -79,6 +82,7 @@ struct Fixture {
vespalib::Clock _clock;
Fixture();
+ ~Fixture();
};
Fixture::Fixture()
@@ -119,6 +123,8 @@ Fixture::Fixture()
_db->waitForOnlineState();
}
+Fixture::~Fixture() {}
+
const IFlushTarget *
extractRealFlushTarget(const IFlushTarget *target)
{