diff options
Diffstat (limited to 'storageframework/src/tests/memory/memorystatetest.cpp')
-rw-r--r-- | storageframework/src/tests/memory/memorystatetest.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/storageframework/src/tests/memory/memorystatetest.cpp b/storageframework/src/tests/memory/memorystatetest.cpp index 5a047a5c790..40d102199d6 100644 --- a/storageframework/src/tests/memory/memorystatetest.cpp +++ b/storageframework/src/tests/memory/memorystatetest.cpp @@ -2,6 +2,7 @@ #include <vespa/storageframework/defaultimplementation/clock/realclock.h> #include <vespa/storageframework/defaultimplementation/memory/memorystate.h> +#include <vespa/storageframework/generic/memory/memorymanagerinterface.h> #include <vespa/vdstestlib/cppunit/macros.h> #include <vespa/vespalib/util/exceptions.h> @@ -11,6 +12,8 @@ namespace defaultimplementation { struct MemoryStateTest : public CppUnit::TestFixture { + void setUp() override {} + void tearDown() override {} void testBasics(); @@ -27,15 +30,15 @@ private: std::map<std::string, framework::MemoryAllocationType> _types; public: - void setMaximumMemoryUsage(uint64_t max) override { (void) max; } + virtual void setMaximumMemoryUsage(uint64_t max) override { (void) max; } - const framework::MemoryAllocationType& + virtual const framework::MemoryAllocationType& registerAllocationType(const framework::MemoryAllocationType& type) override { _types[type.getName()] = type; return _types[type.getName()]; } - const framework::MemoryAllocationType& + virtual const framework::MemoryAllocationType& getAllocationType(const std::string& name) const override { std::map<std::string, framework::MemoryAllocationType>::const_iterator iter = _types.find(name); @@ -47,7 +50,8 @@ public: return iter->second; } - std::vector<const MemoryAllocationType*> getAllocationTypes() const override { + virtual std::vector<const MemoryAllocationType*> getAllocationTypes() const override + { std::vector<const MemoryAllocationType*> types; for(std::map<std::string, framework::MemoryAllocationType> ::const_iterator it = _types.begin(); it != _types.end(); ++it) |