diff options
author | Henning Baldersheim <balder@oath.com> | 2018-10-04 19:40:38 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-10-04 21:04:02 +0200 |
commit | 3f2b1a9230fbab12f2e8b5afcf1e0ad72f3d872a (patch) | |
tree | d442890dd2a84bd325eeb0465d7a11789cdf2900 /documentapi/src/tests/policies/testframe.h | |
parent | faa5b86be61ef5f3791f31d5da0d17ce2e807691 (diff) |
Remove the costly and unnecessary setSlobrokId interface.
Diffstat (limited to 'documentapi/src/tests/policies/testframe.h')
-rw-r--r-- | documentapi/src/tests/policies/testframe.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/documentapi/src/tests/policies/testframe.h b/documentapi/src/tests/policies/testframe.h index cc5101905a1..4f4dfa7e2a8 100644 --- a/documentapi/src/tests/policies/testframe.h +++ b/documentapi/src/tests/policies/testframe.h @@ -13,16 +13,14 @@ using documentapi::string; class TestFrame : public mbus::IReplyHandler { private: - string _identity; + string _identity; std::shared_ptr<mbus::Slobrok> _slobrok; - documentapi::LoadTypeSet _set; + documentapi::LoadTypeSet _set; std::shared_ptr<mbus::INetwork> _net; std::shared_ptr<mbus::MessageBus> _mbus; - mbus::Message::UP _msg; - mbus::HopSpec _hop; - mbus::Receptor _handler; - - TestFrame &operator=(const TestFrame &); // hide + mbus::Message::UP _msg; + mbus::HopSpec _hop; + mbus::Receptor _handler; public: /** @@ -38,6 +36,8 @@ public: TestFrame(const std::shared_ptr<const document::DocumentTypeRepo> &repo, const string &ident = "anonymous"); + TestFrame &operator=(const TestFrame &) = delete; + /** * Create a test frame running on the same slobrok and mbus as another. * @@ -45,10 +45,7 @@ public: */ TestFrame(TestFrame &frame); - /** - * Cleans up allocated resources. - */ - virtual ~TestFrame(); + ~TestFrame() override; /** * Routes the contained message based on the current setup, and returns the leaf send contexts. @@ -137,13 +134,6 @@ public: const string &getIdentity() { return _identity; } /** - * Returns the private slobrok server. - * - * @return The slobrok. - */ - mbus::Slobrok &getSlobrok() { return *_slobrok; } - - /** * Returns the private message bus. * * @return The bus. |