diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-03-02 09:49:42 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-03-13 14:17:30 -0500 |
commit | 39158d18bd757111bd8356b46a7d53b971867559 (patch) | |
tree | 41034548f62cbfcafeedc8f2d68ac1852efed10f /host/include | |
parent | feabc14cb5d5d26987d72b1a51638a83f8f39131 (diff) | |
download | uhd-39158d18bd757111bd8356b46a7d53b971867559.tar.gz uhd-39158d18bd757111bd8356b46a7d53b971867559.tar.bz2 uhd-39158d18bd757111bd8356b46a7d53b971867559.zip |
tests: Allow custom mock_reg_iface_t in mock block
Allow clients to pass a custom instance of a mock_reg_iface_t for use
with mock_block_container. This is especially useful when a block test
subclasses mock_reg_iface_t to implement specialized behaviors.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc/mock_block.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/include/uhd/rfnoc/mock_block.hpp b/host/include/uhd/rfnoc/mock_block.hpp index ab7a79f42..a388a9359 100644 --- a/host/include/uhd/rfnoc/mock_block.hpp +++ b/host/include/uhd/rfnoc/mock_block.hpp @@ -180,12 +180,12 @@ struct UHD_API mock_block_container /*! Factory function for mock block controllers */ UHD_API mock_block_container get_mock_block(const noc_id_t noc_id, - const size_t num_inputs = 1, - const size_t num_outputs = 1, - const uhd::device_addr_t& args = uhd::device_addr_t(), - const size_t mtu = 8000, - const device_type_t device_id = ANY_DEVICE); - + const size_t num_inputs = 1, + const size_t num_outputs = 1, + const uhd::device_addr_t& args = uhd::device_addr_t(), + const size_t mtu = 8000, + const device_type_t device_id = ANY_DEVICE, + std::shared_ptr<mock_reg_iface_t> client_reg_iface = nullptr); }}; // namespace uhd::rfnoc |