summaryrefslogtreecommitdiffstats
path: root/memfilepersistence/src/tests/device/devicemanagertest.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-07 20:23:42 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-23 13:49:07 +0200
commitd781938ec3beb5f8158333c0e46b6b1bb88156c5 (patch)
treed4ac50445af72530ef0d809a49c423cfd2b083d1 /memfilepersistence/src/tests/device/devicemanagertest.cpp
parent40bddbaac34ece542a057aa97eb63db6f1c5775e (diff)
Add override to memfilepersistence.
Diffstat (limited to 'memfilepersistence/src/tests/device/devicemanagertest.cpp')
-rw-r--r--memfilepersistence/src/tests/device/devicemanagertest.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/memfilepersistence/src/tests/device/devicemanagertest.cpp b/memfilepersistence/src/tests/device/devicemanagertest.cpp
index 15882663383..f5e16032361 100644
--- a/memfilepersistence/src/tests/device/devicemanagertest.cpp
+++ b/memfilepersistence/src/tests/device/devicemanagertest.cpp
@@ -1,10 +1,8 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include <vespa/memfilepersistence/device/devicemanager.h>
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/vespalib/util/exception.h>
-#include <sys/errno.h>
#include <vespa/storageframework/defaultimplementation/clock/fakeclock.h>
namespace storage {
@@ -70,19 +68,17 @@ namespace {
std::ostringstream ost;
Listener() : ost() { ost << "\n"; }
- virtual ~Listener() {}
+ ~Listener() {}
- virtual void handleDirectoryEvent(Directory& dir, const IOEvent& e) override {
+ void handleDirectoryEvent(Directory& dir, const IOEvent& e) override {
ost << "Dir " << dir.getPath() << ": " << e.toString(true) << "\n";
}
- virtual void handlePartitionEvent(Partition& part, const IOEvent& e) override {
- ost << "Partition " << part.getMountPoint() << ": "
- << e.toString(true) << "\n";
+ void handlePartitionEvent(Partition& part, const IOEvent& e) override {
+ ost << "Partition " << part.getMountPoint() << ": " << e.toString(true) << "\n";
}
- virtual void handleDiskEvent(Disk& disk, const IOEvent& e) override {
+ void handleDiskEvent(Disk& disk, const IOEvent& e) override {
ost << "Disk " << disk.getId() << ": " << e.toString(true) << "\n";
}
-
};
}