From 01284980b1d7227f1c11496d2be939bb4b23adb1 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Fri, 9 Aug 2019 11:18:35 -0700 Subject: transport: Add modeling of physical adapters Now link instances must have the ability to report the corresponding physical adapter that is used for the local side of the link. This information can be used to help identify when multiple links share the same adapter. --- host/tests/common/mock_link.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'host/tests') diff --git a/host/tests/common/mock_link.hpp b/host/tests/common/mock_link.hpp index 73a65916c..a62aa49c7 100644 --- a/host/tests/common/mock_link.hpp +++ b/host/tests/common/mock_link.hpp @@ -128,6 +128,11 @@ public: _simulate_io_timeout = simulate_io_timeout; } + adapter_id_t get_send_adapter_id() const + { + return NULL_ADAPTER_ID; + } + private: // Friend declaration to allow base class to call private methods friend base_t; @@ -223,6 +228,11 @@ public: _rx_lens.push_back(len); } + adapter_id_t get_recv_adapter_id() const + { + return NULL_ADAPTER_ID; + } + private: // Friend declaration to allow base class to call private methods friend base_t; -- cgit v1.2.3