diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-10 14:24:51 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-10 14:24:51 -0800 |
commit | 08bad571b7e535bf665aec78d4468dbb231474a7 (patch) | |
tree | 1a3e10137b4c39d0890ebc21340dbdd6ba79dcab /host/tests | |
parent | 1be2590962669f307dce24ccb0b0011b3f3f25f5 (diff) | |
download | uhd-08bad571b7e535bf665aec78d4468dbb231474a7.tar.gz uhd-08bad571b7e535bf665aec78d4468dbb231474a7.tar.bz2 uhd-08bad571b7e535bf665aec78d4468dbb231474a7.zip |
uhd: use ref vector class for the conversion routines I/O
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/convert_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/tests/convert_test.cpp b/host/tests/convert_test.cpp index d3c235e9b..d1c2b7625 100644 --- a/host/tests/convert_test.cpp +++ b/host/tests/convert_test.cpp @@ -49,8 +49,8 @@ template <typename Range> static void loopback( //item32 is largest device type std::vector<boost::uint32_t> interm(nsamps); - convert::input_type input0(1, &input[0]), input1(1, &interm[0]); - convert::output_type output0(1, &interm[0]), output1(1, &output[0]); + std::vector<const void *> input0(1, &input[0]), input1(1, &interm[0]); + std::vector<void *> output0(1, &interm[0]), output1(1, &output[0]); //convert to intermediate type convert::get_converter_cpu_to_otw( @@ -201,8 +201,8 @@ BOOST_AUTO_TEST_CASE(test_convert_types_fc32_to_sc16){ std::vector<boost::uint32_t> interm(nsamps); std::vector<sc16_t> output(nsamps); - convert::input_type input0(1, &input[0]), input1(1, &interm[0]); - convert::output_type output0(1, &interm[0]), output1(1, &output[0]); + std::vector<const void *> input0(1, &input[0]), input1(1, &interm[0]); + std::vector<void *> output0(1, &interm[0]), output1(1, &output[0]); //convert float to intermediate convert::get_converter_cpu_to_otw( @@ -241,8 +241,8 @@ BOOST_AUTO_TEST_CASE(test_convert_types_sc16_to_fc32){ std::vector<boost::uint32_t> interm(nsamps); std::vector<fc32_t> output(nsamps); - convert::input_type input0(1, &input[0]), input1(1, &interm[0]); - convert::output_type output0(1, &interm[0]), output1(1, &output[0]); + std::vector<const void *> input0(1, &input[0]), input1(1, &interm[0]); + std::vector<void *> output0(1, &interm[0]), output1(1, &output[0]); //convert short to intermediate convert::get_converter_cpu_to_otw( |