face: eliminate Transport::Packet wrapper type
Refs: #4843
Change-Id: I5977be55e8bdac33c989e3b8523fea764f304c37
diff --git a/tests/daemon/fw/topology-tester.hpp b/tests/daemon/fw/topology-tester.hpp
index da4e488..233c216 100644
--- a/tests/daemon/fw/topology-tester.hpp
+++ b/tests/daemon/fw/topology-tester.hpp
@@ -108,10 +108,7 @@
private:
void
- transmit(TopologyNode i, Block&& packet);
-
- void
- scheduleReceive(face::InternalTransportBase* recipient, Block&& packet);
+ transmit(TopologyNode i, const Block& packet);
private:
bool m_isUp = true;
@@ -120,7 +117,7 @@
class ReceiveProxy : public face::InternalTransportBase
{
public:
- using Callback = std::function<void(Block&&)>;
+ using Callback = std::function<void(const Block&)>;
explicit
ReceiveProxy(Callback cb)
@@ -129,9 +126,9 @@
}
void
- receivePacket(Block&& packet) final
+ receivePacket(const Block& packet) final
{
- m_cb(std::move(packet));
+ m_cb(packet);
}
private: