aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/common/teststorageapp.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-08-14 16:08:20 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-08-14 16:08:20 +0000
commitbbc768d6ef92f166717d65e67689f6aa15c98952 (patch)
treee8c891cb5e4a45df93a58eb39c5e10988b0afe7d /storage/src/tests/common/teststorageapp.cpp
parente98b5a77300eda52f082b9c17b9cf4915b3fe4b0 (diff)
Change api so that we can drop clone from the interface and prepare for using a true repo.
Diffstat (limited to 'storage/src/tests/common/teststorageapp.cpp')
-rw-r--r--storage/src/tests/common/teststorageapp.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/storage/src/tests/common/teststorageapp.cpp b/storage/src/tests/common/teststorageapp.cpp
index 9fcf1049e1b..1847de0e84f 100644
--- a/storage/src/tests/common/teststorageapp.cpp
+++ b/storage/src/tests/common/teststorageapp.cpp
@@ -171,19 +171,17 @@ TestServiceLayerApp::TestServiceLayerApp(DiskCount dc, NodeIndex index,
assert(dc > 0);
}
-TestServiceLayerApp::~TestServiceLayerApp() {}
+TestServiceLayerApp::~TestServiceLayerApp() = default;
void
TestServiceLayerApp::setupDummyPersistence()
{
- spi::PersistenceProvider::UP provider(new spi::dummy::DummyPersistence(
- getTypeRepo(), _compReg.getDiskCount()));
+ auto provider = std::make_unique<spi::dummy::DummyPersistence>(getTypeRepo(), _compReg.getDiskCount());
setPersistenceProvider(std::move(provider));
}
void
-TestServiceLayerApp::setPersistenceProvider(
- spi::PersistenceProvider::UP provider)
+TestServiceLayerApp::setPersistenceProvider(PersistenceProviderUP provider)
{
_partitions = provider->getPartitionStates().getList();
assert(spi::PartitionId(_compReg.getDiskCount()) == _partitions.size());