summaryrefslogtreecommitdiff
path: root/cpp/broker/test/RouterTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/broker/test/RouterTest.cpp')
-rw-r--r--cpp/broker/test/RouterTest.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/cpp/broker/test/RouterTest.cpp b/cpp/broker/test/RouterTest.cpp
index 284a28f583..b1d4b9739f 100644
--- a/cpp/broker/test/RouterTest.cpp
+++ b/cpp/broker/test/RouterTest.cpp
@@ -20,10 +20,7 @@
#include "ExchangeRegistry.h"
#include "Message.h"
#include "Router.h"
-#include <cppunit/TestCase.h>
-#include <cppunit/TextTestRunner.h>
-#include <cppunit/extensions/HelperMacros.h>
-#include <cppunit/plugin/TestPlugIn.h>
+#include <qpid_test_plugin.h>
#include <iostream>
#include <memory>
@@ -38,16 +35,14 @@ struct TestExchange : public Exchange{
TestExchange() : Exchange("test"), args(0) {}
- void bind(Queue::shared_ptr queue, const string& routingKey, FieldTable* args){
- }
+ void bind(Queue::shared_ptr /*queue*/, const string& /*routingKey*/, FieldTable* /*args*/){}
- void unbind(Queue::shared_ptr queue, const string& routingKey, FieldTable* args){
- }
+ void unbind(Queue::shared_ptr /*queue*/, const string& /*routingKey*/, FieldTable* /*args*/){ }
- void route(Message::shared_ptr& msg, const string& routingKey, FieldTable* args){
- this->msg = msg;
- this->routingKey = routingKey;
- this->args = args;
+ void route(Message::shared_ptr& _msg, const string& _routingKey, FieldTable* _args){
+ msg = _msg;
+ routingKey = _routingKey;
+ args = _args;
}
};