summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/messagesenderstub.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/messagesenderstub.h')
-rw-r--r--storage/src/tests/distributor/messagesenderstub.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/storage/src/tests/distributor/messagesenderstub.h b/storage/src/tests/distributor/messagesenderstub.h
index 629c1c6e346..7b552ec6883 100644
--- a/storage/src/tests/distributor/messagesenderstub.h
+++ b/storage/src/tests/distributor/messagesenderstub.h
@@ -2,7 +2,6 @@
#pragma once
#include <vespa/storage/distributor/distributormessagesender.h>
-#include <cassert>
namespace storage {
@@ -21,11 +20,13 @@ struct MessageSenderStub : distributor::DistributorMessageSender
replies.clear();
}
- virtual void sendCommand(const std::shared_ptr<api::StorageCommand>& cmd) {
+ virtual void sendCommand(const std::shared_ptr<api::StorageCommand>& cmd)
+ {
commands.push_back(cmd);
}
- virtual void sendReply(const std::shared_ptr<api::StorageReply>& reply) {
+ virtual void sendReply(const std::shared_ptr<api::StorageReply>& reply)
+ {
replies.push_back(reply);
}
@@ -66,3 +67,4 @@ private:
};
}
+