diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-11-27 21:36:46 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-01-29 08:57:25 -0600 |
commit | 0a49a8844a65698b11fe979441a97939dad80044 (patch) | |
tree | 30bbd6fb82c17abf7db4627250f3586a8d6fb175 /host/lib/rfnoc/registry_factory.cpp | |
parent | 25b434ae858dd476e13738e0acaa9edeb019cee4 (diff) | |
download | uhd-0a49a8844a65698b11fe979441a97939dad80044.tar.gz uhd-0a49a8844a65698b11fe979441a97939dad80044.tar.bz2 uhd-0a49a8844a65698b11fe979441a97939dad80044.zip |
rfnoc: Create mock factory
This is an API that allows creating mock block controllers, to write
unit tests for block controllers. See rfnoc_blocks_test for an example
how to use them.
Diffstat (limited to 'host/lib/rfnoc/registry_factory.cpp')
-rw-r--r-- | host/lib/rfnoc/registry_factory.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/host/lib/rfnoc/registry_factory.cpp b/host/lib/rfnoc/registry_factory.cpp index bf1bc60a5..b251410bf 100644 --- a/host/lib/rfnoc/registry_factory.cpp +++ b/host/lib/rfnoc/registry_factory.cpp @@ -5,13 +5,14 @@ // #include <uhd/exception.hpp> -#include <uhd/rfnoc/registry.hpp> -#include <uhd/rfnoc/defaults.hpp> #include <uhd/rfnoc/constants.hpp> +#include <uhd/rfnoc/defaults.hpp> +#include <uhd/rfnoc/mock_block.hpp> +#include <uhd/rfnoc/registry.hpp> #include <uhd/utils/static.hpp> #include <uhdlib/rfnoc/factory.hpp> -#include <boost/functional/hash.hpp> #include <unordered_map> +#include <boost/functional/hash.hpp> #include <iomanip> #include <iostream> #include <sstream> @@ -106,3 +107,4 @@ block_factory_info_t factory::get_block_factory(noc_id_t noc_id, device_type_t d } return get_direct_block_registry().at(key); } + |