diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:25:13 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 876d4150aa3da531ddd687b48afada6e43f79146 (patch) | |
tree | fd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/tests/actions_test.cpp | |
parent | 1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff) | |
download | uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2 uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip |
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
Diffstat (limited to 'host/tests/actions_test.cpp')
-rw-r--r-- | host/tests/actions_test.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/host/tests/actions_test.cpp b/host/tests/actions_test.cpp index 20e2bdf6e..142e231cd 100644 --- a/host/tests/actions_test.cpp +++ b/host/tests/actions_test.cpp @@ -4,17 +4,16 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#include <uhd/rfnoc/node.hpp> +#include "rfnoc_graph_mock_nodes.hpp" #include <uhd/rfnoc/actions.hpp> +#include <uhd/rfnoc/node.hpp> #include <uhd/utils/log.hpp> +#include <uhdlib/rfnoc/graph.hpp> #include <uhdlib/rfnoc/node_accessor.hpp> #include <uhdlib/rfnoc/prop_accessor.hpp> -#include <uhdlib/rfnoc/graph.hpp> #include <boost/test/unit_test.hpp> #include <iostream> -#include "rfnoc_graph_mock_nodes.hpp" - const std::string STREAM_CMD_KEY = "stream_cmd"; @@ -80,9 +79,9 @@ BOOST_AUTO_TEST_CASE(test_actions_simple_graph) uhd::stream_cmd_t num_samps_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE); constexpr size_t NUM_SAMPS = 100; - num_samps_cmd.num_samps = NUM_SAMPS; + num_samps_cmd.num_samps = NUM_SAMPS; mock_streamer.issue_stream_cmd(num_samps_cmd, 0); - BOOST_CHECK_EQUAL(NUM_SAMPS * mock_ddc.get_property<int>("decim", 0), - mock_rx_radio.last_num_samps); + BOOST_CHECK_EQUAL( + NUM_SAMPS * mock_ddc.get_property<int>("decim", 0), mock_rx_radio.last_num_samps); } |