From 0a49a8844a65698b11fe979441a97939dad80044 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 27 Nov 2019 21:36:46 -0800 Subject: 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. --- host/lib/rfnoc/registry_factory.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'host/lib/rfnoc/registry_factory.cpp') 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 -#include -#include #include +#include +#include +#include #include #include -#include #include +#include #include #include #include @@ -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); } + -- cgit v1.2.3