diff options
Diffstat (limited to 'host/tests/common')
| -rw-r--r-- | host/tests/common/mock_link.hpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/host/tests/common/mock_link.hpp b/host/tests/common/mock_link.hpp index 34ea15540..73a65916c 100644 --- a/host/tests/common/mock_link.hpp +++ b/host/tests/common/mock_link.hpp @@ -94,6 +94,14 @@ public:      }      /*! +     * Return the number of packets stored in the mock link. +     */ +    size_t get_num_packets() const +    { +        return _tx_mems.size(); +    } + +    /*!       * Retrieve the contents of a packet sent by the link. The link       * stores packets in a queue in the order they were sent.       */ | 
