summaryrefslogtreecommitdiffstats
path: root/documentapi/src/tests/policies/testframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'documentapi/src/tests/policies/testframe.h')
-rw-r--r--documentapi/src/tests/policies/testframe.h26
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.