diff options
author | Henning Baldersheim <balder@oath.com> | 2018-10-04 22:05:19 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-10-04 22:05:19 +0200 |
commit | 0bdd3c5fa4326ed4106b9aee0585d57c7193bd97 (patch) | |
tree | 2b519cf259eb30ab28d85fc560a589457f54ed17 /messagebus/src/tests/sendadapter/sendadapter.cpp | |
parent | 3f2b1a9230fbab12f2e8b5afcf1e0ad72f3d872a (diff) |
Remove the costly and unnecessary setSlobrokId interface.
Diffstat (limited to 'messagebus/src/tests/sendadapter/sendadapter.cpp')
-rw-r--r-- | messagebus/src/tests/sendadapter/sendadapter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/messagebus/src/tests/sendadapter/sendadapter.cpp b/messagebus/src/tests/sendadapter/sendadapter.cpp index 6860453cf54..c4fc0f908e0 100644 --- a/messagebus/src/tests/sendadapter/sendadapter.cpp +++ b/messagebus/src/tests/sendadapter/sendadapter.cpp @@ -65,36 +65,36 @@ TestData::TestData() : _slobrok(), _srcProtocol(new TestProtocol()), _srcServer(MessageBusParams().setRetryPolicy(IRetryPolicy::SP()).addProtocol(_srcProtocol), - RPCNetworkParams().setSlobrokConfig(_slobrok.config())), + RPCNetworkParams(_slobrok.config())), _srcSession(), _srcHandler(), _itrProtocol(new TestProtocol()), _itrServer(MessageBusParams().addProtocol(_itrProtocol), - RPCNetworkParams().setIdentity(Identity("itr")).setSlobrokConfig(_slobrok.config())), + RPCNetworkParams(_slobrok.config()).setIdentity(Identity("itr"))), _itrSession(), _itrHandler(), _dstProtocol(new TestProtocol()), _dstServer(MessageBusParams().addProtocol(_dstProtocol), - RPCNetworkParams().setIdentity(Identity("dst")).setSlobrokConfig(_slobrok.config())), + RPCNetworkParams(_slobrok.config()).setIdentity(Identity("dst"))), _dstSession(), _dstHandler() { } -TestData::~TestData() {} +TestData::~TestData() = default; bool TestData::start() { _srcSession = _srcServer.mb.createSourceSession(SourceSessionParams().setReplyHandler(_srcHandler)); - if (_srcSession.get() == NULL) { + if ( ! _srcSession) { return false; } _itrSession = _itrServer.mb.createIntermediateSession(IntermediateSessionParams().setName("session").setMessageHandler(_itrHandler).setReplyHandler(_itrHandler)); - if (_itrSession.get() == NULL) { + if ( ! _itrSession) { return false; } _dstSession = _dstServer.mb.createDestinationSession(DestinationSessionParams().setName("session").setMessageHandler(_dstHandler)); - if (_dstSession.get() == NULL) { + if ( ! _dstSession) { return false; } if (!_srcServer.waitSlobrok("*/session", 2u)) { |