aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp')
-rw-r--r--messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp b/messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp
index e90cf0dd7a8..4475851e94a 100644
--- a/messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp
+++ b/messagebus/src/vespa/messagebus/testlib/simpleprotocol.cpp
@@ -30,8 +30,11 @@ public:
IRoutingPolicy::UP create(const string &) override {
return IRoutingPolicy::UP(new AllPolicy());
}
+ ~AllPolicyFactory() override;
};
+AllPolicyFactory::~AllPolicyFactory() = default;
+
class HashPolicy : public IRoutingPolicy {
public:
void select(RoutingContext &ctx) override {
@@ -53,8 +56,11 @@ public:
IRoutingPolicy::UP create(const string &) override {
return IRoutingPolicy::UP(new HashPolicy());
}
+ ~HashPolicyFactory() override;
};
+HashPolicyFactory::~HashPolicyFactory() = default;
+
SimpleProtocol::SimpleProtocol() :
_policies()
{